Welcome
Expand Getting StartedGetting Started
Expand SOLIDWORKS API HelpSOLIDWORKS API Help
Expand SOLIDWORKS Electrical API HelpSOLIDWORKS Electrical API Help
Collapse SOLIDWORKS PDM Professional API HelpSOLIDWORKS PDM Professional API Help
Expand FeatureWorks API HelpFeatureWorks API Help
Expand SOLIDWORKS Costing API HelpSOLIDWORKS Costing API Help
Expand SOLIDWORKS Document Manager API HelpSOLIDWORKS Document Manager API Help
Expand SOLIDWORKS Routing API HelpSOLIDWORKS Routing API Help
Expand SOLIDWORKS Simulation API HelpSOLIDWORKS Simulation API Help
Expand SOLIDWORKS Sustainability API HelpSOLIDWORKS Sustainability API Help
Expand SOLIDWORKS Toolbox API HelpSOLIDWORKS Toolbox API Help
Expand SOLIDWORKS Utilities API HelpSOLIDWORKS Utilities API Help
Expand eDrawings API HelpeDrawings API Help
Expand DraftSight API HelpDraftSight API Help
Expand Lisp Programming BasicsLisp Programming Basics
Expand Lisp Functions OverviewLisp Functions Overview
Expand Lisp Functions ReferenceLisp Functions Reference
Expand Visual Lisp Compatible FunctionsVisual Lisp Compatible Functions
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.

Syntax

Visual Basic (Declaration) 
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


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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   EdmRefVar Structure
*Comment:  
*   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:

x

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
x

Web Help Content Version: API Help (English only) 2021 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.