|
propertyeditorglobal
i'm hoping someone here can help with me with an issue i'm having with this macro.
i have a large number of part files (~200) that i wish to add the property named "weight" to. the value for this will be the mass calculated by solidworks.
the problem i'm having is that in defining the properties to add via the macro i don't know what to enter for the value of this weight property. for instance, if i have a part open called part1, when i choose the mass in the drop-down list it is "sw-mass@@
i think this may help you. all the quotes are neccessary.
weight = """sw-mass@" & partno & ".sldprt"""
prop = swmodel.addcustominfo3(configuration_name, "weight", swcustominfotext, weight)
i forgot to mention that you must change partno and configuration_name to suit your needs. |
|