Hi there,
I'm a bit confused...
I'm using "AddCustomInfo3" to add configuration-specific custom properties and "CustomInfo2" to write into configuration-specific custom properties.
Dim myCmp As Component2
...
CmpDoc = myCmp.GetModelDoc
Cfg = myCmp.ReferencedConfiguration
CmpDoc.AddCustomInfo3 Cfg, "TEST", 30, ""
CmpDoc.CustomInfo2(Cfg, "TEST") = "TEST!"
...
It works.
Now I want to write down general (non config-specific) custom properties, with the same name in the same file. So I use the same, with "" instead of the configuration name.
Dim myCmp As Component2
...
CmpDoc = myCmp.GetModelDoc
Cfg = myCmp.ReferencedConfiguration
CmpDoc.AddCustomInfo3 "", "TEST", 30, ""
CmpDoc.CustomInfo2("", "TEST") = "TEST!"
...
Doesn't work.
Why????
Thanks, Riccardo
SolidworksApi macros