willwicker
Mechanical
- Feb 12, 2003
- 7
I am trying to set some custom properties via the API to take advantage of SolidWorks' "magic" properties, like:
"SW-MATERIAL@Part1.SLDPRT" to get the material name
"D2@Sketch2@Part1.SLDPRT" to get a dimension's value
etc.
However, when I add these values in, what I get is the literal spelling of the magic property, not the evaluable version that SolidWorks generates. I've tried generating the property name with and without the surrounding quotes. Neither way seems to work.
Currently running SWX2007. The help is, as usual, not much help.
Is there a secret control character? Type code? handshake?
Please help.
"SW-MATERIAL@Part1.SLDPRT" to get the material name
"D2@Sketch2@Part1.SLDPRT" to get a dimension's value
etc.
However, when I add these values in, what I get is the literal spelling of the magic property, not the evaluable version that SolidWorks generates. I've tried generating the property name with and without the surrounding quotes. Neither way seems to work.
Currently running SWX2007. The help is, as usual, not much help.
Is there a secret control character? Type code? handshake?
Please help.