Hide Table of Contents
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.


Visual Basic (Declaration) 
Public Structure EdmRefVar 
   Inherits System.ValueType
public struct EdmRefVar : System.ValueType 
public value class EdmRefVar : public System.ValueType 


struct EdmRefVar

  integer mlVarID;
  integer mlParentFileID;
  integer mlParentVersion;
  integer mlChildFileID;
  string mbsChildCfgName;
  string mbsParentCfgName;
  object moValue;
  integer mhResult;



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 Enterprise PDM 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


SolidWorks Enterprise PDM 2010

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   EdmRefVar Structure
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2014 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.