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


lOldFileID
ID of drawing or file that lacks properties at the configuration level
bsOldConfigName
Name of configuration whose values to copy (see Remarks)
bsNewConfigName
Name of the configuration to which to copy values (see Remarks)
bsActiveConfig
Name of the active configuration (see Remarks)
bOnlyForUpdateAllFlag
True to copy values only for controls for which IEdmCardControl6::UpdatesAllConfigurations is set to true, false to copy values for all variables associated with this file
Generates default configuration data for the specified drawing or file that lacks properties at the configuration level.

Syntax

Visual Basic 
Sub GenerateDefaultConfigValues( _
   ByVal lOldFileID As System.Integer, _
   ByVal bsOldConfigName As System.String, _
   ByVal bsNewConfigName As System.String, _
   ByVal bsActiveConfig As System.String, _
   ByVal bOnlyForUpdateAllFlag As System.Boolean _
) 
C# 
void GenerateDefaultConfigValues( 
   System.int lOldFileID,
   System.string bsOldConfigName,
   System.string bsNewConfigName,
   System.string bsActiveConfig,
   System.bool bOnlyForUpdateAllFlag
)
C++/CLI 
void GenerateDefaultConfigValues( 
&   System.int lOldFileID,
&   System.String^ bsOldConfigName,
&   System.String^ bsNewConfigName,
&   System.String^ bsActiveConfig,
&   System.bool bOnlyForUpdateAllFlag
) 

Parameters

lOldFileID
ID of drawing or file that lacks properties at the configuration level
bsOldConfigName
Name of configuration whose values to copy (see Remarks)
bsNewConfigName
Name of the configuration to which to copy values (see Remarks)
bsActiveConfig
Name of the active configuration (see Remarks)
bOnlyForUpdateAllFlag
True to copy values only for controls for which IEdmCardControl6::UpdatesAllConfigurations is set to true, false to copy values for all variables associated with this file

Example

Remarks

This method:

  • is valid only for files with data card variables.
  • copies values from bsOldConfigName to bsNewConfigName. If it encounters a null control variable in bsOldConfigName, it takes the value from bsActiveConfig instead.

Use IEdmFile5::GetConfigurations to populate the configuration parameters.

 

See Also

Availability

SOLIDWORKS PDM Professional 2018 SP03