GetActiveDocConfigurationInfos

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem >

GetActiveDocConfigurationInfos

Description

Gets the name of the configuration of the currently opened model.
Returns also if this configuration can be managed by DBWorks, depending from the state of the filters in the Configurations parameters.

Syntax

call DBWShell("GetActiveDocConfigurationInfos")

Return values

@CONFIGURATION_NAME

name of the configuration

@OK_MANAGE_CONFIGURATION

0: no manage
1: ok manage

Remarks

This command is available for Solidworks integration only

Example

Sub Main()

 DBWInit(TRUE)
 call DBWShell("GetActiveDocConfigurationInfos")
 active_conf = DBWResult("@CONFIGURATION_NAME")
 you_can_manage = DBWResult("@OK_MANAGE_CONFIGURATION")
end sub