<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
GenerateDefaultConfigValues Method (IEdmFile14)
See Also Example

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace > IEdmFile14 Interface : GenerateDefaultConfigValues Method (IEdmFile14)

Visual Basic
C#
C++/CLI

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

Generate Configuration Values (C#)
Generate Configuration Values (VB.NET)

# 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

####

IEdmFile14 Interface
IEdmFile14 Members
IEdmFile8::GenerateDefaultValuesForNewConfiguration Method ()

# Availability

SOLIDWORKS PDM Professional 2018 SP03