AnsweredAssumed Answered

AddCustomInfo3

Question asked by Riccardo Mattioli on Dec 12, 2011
Latest reply on Dec 14, 2011 by Riccardo Mattioli

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

Outcomes