Removing properties in a part and assy using macros??
Removing properties in a part and assy using macros??
(OP)
Does anybody know of an easy way to remove all custom properties of all parts and assy ? What I've been doing so far is open each part and then delete each property, and that gets old really quick. If any body knows a button i can push or a pulldown menu in Solidworks that would be really cool.
I've done this in Wildfire 2.0 and there has to be way to do this SW2005.
I've done this in Wildfire 2.0 and there has to be way to do this SW2005.
Printed Circuit Board Designer
Salt Lake City, Utah
Stangs rule!






RE: Removing properties in a part and assy using macros??
Making the best use of this Forum. FAQ559-716
How to get answers to your SW questions. FAQ559-1091
Helpful SW websites every user should be aware of. FAQ559-520
RE: Removing properties in a part and assy using macros??
RE: Removing properties in a part and assy using macros??
1) Set active document to be "Part" ModelDoc2 obhect and get number of custom properties using Part.GetCustomInfoCount2
2) using a For-Next loop to iterate through each custom property (number of iterations would be determined by the value obtained in step 1), get the name of the custom property using Part.GetCustomInfo2
3) Using either the same loop, or a different loop, use the names obtained in step 2 to delete custom properties using Part.DeleteCustomInfo2
RE: Removing properties in a part and assy using macros??
Printed Circuit Board Designer
Salt Lake City, Utah
Stangs rule!
RE: Removing properties in a part and assy using macros??
Did you find a way to remove all custom properties of a part or an assembly document? I am looking for the same solution.
Thanks,
Alex