nickjb
Mechanical
- Jun 19, 2007
- 35
I have a written a macro to populate the properties table for new parts, I also want to use it to update the table for older parts that weren't created with the correct template.
I'm new to macros and vb so I need something simple. Using some borrowed code from this site I've manage to get something working:
Success = swModel.AddCustomInfo3("", "Finish", swCustomInfoText, "")
swModel.CustomInfo2("", "Finish") = "Natural"
This will populate the property 'finish' with the value 'natural' (our default) but if the property has already been set to something else then it overwrites it. I don't want that to happen I want it to keep the current value.
I'm new to macros and vb so I need something simple. Using some borrowed code from this site I've manage to get something working:
Success = swModel.AddCustomInfo3("", "Finish", swCustomInfoText, "")
swModel.CustomInfo2("", "Finish") = "Natural"
This will populate the property 'finish' with the value 'natural' (our default) but if the property has already been set to something else then it overwrites it. I don't want that to happen I want it to keep the current value.