Custom Property Does Not Contain Whats shown on screen


I'm trying to recall (in vba) the contents of a field on screen.

I'm using a drawing of an assembly.

The field on screen "drawingNo" which is set to\\\$PRPSHEET:"drawingNo", which shows the drawing number of theassembly its linked to.

On screen this shows the correct string.

In the assembly we have the custom properties but alsoconfiguration specific. DrawingNo is "XXXX" in the custom butfilled in completely in the configuration specific.

On screen its showing the "config specific" (correct one), butusing vba code its returning the "custom" string ?


SolidworksApi macros
Comments 1
JB
JB 2009-06-16
Stu,
When you link a drawing note to a Custom Property, SolidWorks makesa decision behind the scenes. If a custom property of that nameexists as a configuration-specific custom property, SW will pickthe configuration-specific one. If you want to use API to alwaysget the same value that's linked there, you will need to check forexistence of a configuration-specific custom property. Study theAPI help on the CustomPropertyManager object.