SOLIDWORKS PDM Professional API Help Send Feedback
EdmRefVar Structure
See Also  Members  
EPDM.Interop.epdm Namespace : EdmRefVar Structure


Holds information about a single file reference variable; i.e., a variable stored on the reference relationship between an assembly file and one of its part files.

Syntax

Visual Basic 
Public Structure EdmRefVar 
   Inherits System.ValueType
C# 
public struct EdmRefVar : System.ValueType 
C++/CLI 
public value class EdmRefVar : public System.ValueType 

Example

struct EdmRefVar{
  integer mlVarID;
  integer mlParentFileID;
  integer mlParentVersion;
  integer mlChildFileID;
  string mbsChildCfgName;
  string mbsParentCfgName;
  object moValue;
  integer mhResult;
};

Example

Remarks

Reference variables are used in Bill of Materials columns that are configured to look for reference-specific values. To create a reference variable:

  1. Open the SOLIDWORKS PDM Professional Administration tool.
  2. Log into a vault.
  3. Double-click Bill of Materials > BOM.
  4. Click a column in the Columns list.
  5. Select Look for variable in reference specific values.
  6. Click OK.
  7. In a vault view, check out an assembly.
  8. Click the Bill of Materials tab.
  9. In the column configured to use reference-specific values, type text.
  10. Click Save in the Bill of Materials toolbar.

Each component of the assembly is in a separate reference relationship with the assembly. The BOM column configured to Look for variable in reference specific values contains reference variable values. Use IEdmBatchRefVars to get and set these reference variable values.

See Also

Availability

SOLIDWORKS PDM Professional 2010