Is it possible to get the API to set whether to use the configuration or document name in a BOM? I can't seem to find this in the docs anywhere and recording a macro doesn't offer much more enlightenment.
API-Before I go Bonkers about Configs in BOM
Jul 08, 2005
7 Replies
To further elaborate my question:
What are the API calls to set everything seen in the Configuration Properties Dialog box?
- Configuation name (this I can do)
- Configuration description (this API seems to be missing)
- Configuration comment (this API seems to be missing)
- BOM Options for using Document Name, Configuration Name or User Specified Name.
- Advanced Options suppress feature toggle?
- Advanced Options configuration specific color?
- Custom Properties (this I know how to do.)
retVal = Configuration.Description (VB Get property)
Comment = Configuration.Comment (VB Get property)
and so on, pretty much everything is under Configuration...
I think this covers most of it I am not quite sure of the toggle for the color.
Config.alternateName = "Some Alternate" Config.Description = "This sets description" Config.Comment = "This sets Comment" Config.HideNewComponentModels = True Config.BOMPartNoSource = swBOMPartNumberSource_e.swBOMPartNumber_ConfigurationName Config.SetColor (RGB(0, 255, 0))
Sorry to ask such a dumb question. I found them. Thanks.
Thanks. I failed to look in the obvious place: Config.Properties.
Now if I could just change custom properties without invoking the X in the configuration manager tree.
What do you mean? You can change those too.
OldValue = Modeldoc2.customInfo2(config, custominfoname) Modeldoc2.CustomInfo2 (Config, CustomInfoName) = CustomInfoValue
If it is a new field you will need to use
ModelDoc2.AddCustomInfo3 ( Config, CustomInfoName, swCustomInfoType_e.swCustomInfoText, CustomInfoValue)
And to delete
ModelDoc2.DeleteCustomInfo2(Config, CustomInfoName)
To add them to the general document pass an empty string "" as the config.
Look at the comments for this example in help: Extract Configuration-Specific Parameters Example (VB)
My goal is to not have the Excel X show up as the icon in the configuration tree after changing a CP. I want to keep the little yellow cube unless I really have a design table.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required