Hide Table of Contents
GetVersionVars Method (IEdmEnumeratorVariable7)

Gets the values of variables of the specified version directly from the database.


Visual Basic (Declaration) 
Sub GetVersionVars( _
   ByVal oVersion As System.Object, _
   ByVal lFolderID As System.Integer, _
   ByRef ppoRetVariables As System.Object(), _
   ByRef ppoRetConfigs As System.String(), _
   ByRef poRetData As EdmGetVarData _
void GetVersionVars( 
   System.object oVersion,
   System.int lFolderID,
   out System.object[] ppoRetVariables,
   out System.string[] ppoRetConfigs,
   out EdmGetVarData poRetData
void GetVersionVars( 
&   System.Object^ oVersion,
&   System.int lFolderID,
&   [Out] System.array<Object^> ppoRetVariables,
&   [Out] System.array<String^> ppoRetConfigs,
&   [Out] EdmGetVarData poRetData


Version number of variables to get; 0 to get the latest version
ID of the file's parent folder; 0 if the file is not shared
Array of IEdmVariableValue6 interfaces; one interface for each variable value
Array of configuration or layout names
EdmGetVarData; extra information about the file



In previous versions of the API, you had to call IEdmFile5::GetFileCopy get a local copy of a file and then call IEdmFile5::GetEnumeratorVariable to read variables. This method is more efficient, because it retrieves the variable values directly from the database, removing the need to retrieve the file first.

When retrieving several variables, it is more efficient to use this method instead of multiple calls to IEdmEnumeratorVariable5::GetVar.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: An argument is invalid.

See Also


SolidWorks Enterprise PDM Version 6.4

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:   GetVersionVars Method (IEdmEnumeratorVariable7)
*   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.