SOLIDWORKS PDM Professional API Help Send Feedback
GetVersionVars Method (IEdmEnumeratorVariable7)
See Also  Example
EPDM.Interop.epdm Namespace > IEdmEnumeratorVariable7 Interface : GetVersionVars Method (IEdmEnumeratorVariable7)


oVersion
Version number of variables to get; 0 to get the latest version
lFolderID
ID of the file's parent folder; 0 if the file is not shared
ppoRetVariables
Array of IEdmVariableValue6 interfaces; one interface for each variable value
ppoRetConfigs
Array of configuration or layout names
poRetData
EdmGetVarData; extra information about the file
Gets the values of variables of the specified version directly from the database.

Syntax

Visual Basic 
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 _
) 
C# 
void GetVersionVars( 
   System.object oVersion,
   System.int lFolderID,
   out System.object[] ppoRetVariables,
   out System.string[] ppoRetConfigs,
   out EdmGetVarData poRetData
)
C++/CLI 
void GetVersionVars( 
&   System.Object^ oVersion,
&   System.int lFolderID,
&   [Out] System.array<Object^>^ ppoRetVariables,
&   [Out] System.array<String^>^ ppoRetConfigs,
&   [Out] EdmGetVarData poRetData
) 

Parameters

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

Example

Remarks

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

Availability

SOLIDWORKS PDM Professional Version 6.4