AnsweredAssumed Answered

Is it possible to write configuration specific custom properties to a cut list item using VBA?

Question asked by Manuel Barbosa on Dec 22, 2020
Latest reply on Jan 3, 2021 by Artem Taturevych

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.