Variable Name
Variable Name
(OP)
Hi all.
Is there anyway to find the variable names for SW features?
Im looking for the Variable Name for the 'Part Number Column' in the Configuration Toolbox?
Thanks again.
what a day.....
Is there anyway to find the variable names for SW features?
Im looking for the Variable Name for the 'Part Number Column' in the Configuration Toolbox?
Thanks again.
what a day.....
Thee Ox...thanks you.....and has left the building.






RE: Variable Name
Eric
RE: Variable Name
Thee Ox...thanks you.....and has left the building.
RE: Variable Name
One way to find out how to do it with the API is to manually do it while recording a macro and look at the code that is generated. Basically two things need to be done to the configuration: the part number source needs to be set to the alternative name, and the alternative name needs to be set. The following subroutines do this for the current configuration.
CODE
Dim cfg As SldWorks.Configuration
Set cfg = document.ConfigurationManager.ActiveConfiguration
cfg.BOMPartNoSource = swBOMPartNumber_UserSpecified
End Sub
CODE
Dim cfg As SldWorks.Configuration
Set cfg = document.ConfigurationManager.ActiveConfiguration
cfg.AlternateName = alternativeName
End Sub
I have had some problems with the part number source not always taking, but have not bothered to track it down. This should get you started though.
Eric
RE: Variable Name
Yer Pal,
Thee......
Thee Ox...thanks you.....and has left the building.