Hello, I am trying to create a macro to add numbers and an empty description field to cut list items. The problem is I am not being able to make these properties configuration specific. Is there a way to do this?
Dim MgrConfig As SldWorks.CustomPropertyManager
Dim swCutListFeat As SldWorks.Feature
(I then get the cut list folders to swCutListFeat one by one)
Set MgrConfig = swCutListFeat.CustomPropertyManager()
bool = MgrConfig.Add2("Código", 30, number)
This is adding the custom property fine, but as soon as i add the configuration name:
Set MgrConfig = swCutListFeat.CustomPropertyManager("<Configuration Name>")
it won't work.
Any help would be much appreciated.
Thanks.
You need to activate (Show2) the culprit configuration first, traverse the feature tree to get the cut-list feature. The CustomPropertyManager from that feature should do what you need it to.
Let me know if that works.
Best,
Amen
SOLIDWORKS API Programming services