×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Removing properties in a part and assy using macros??
3

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.

Printed Circuit Board Designer
Salt Lake City, Utah
Stangs rule!

RE: Removing properties in a part and assy using macros??

If you know what the custom props are you may be able to use one of the editors listed in thread559-125139.


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??

I have a macro somewhere in my inventory that does exactly this, but not currently on my website.  If I find it tonight I will post it.

RE: Removing properties in a part and assy using macros??

The quick and dirty to do it through API would be to...

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??

(OP)
Thanks for all your help guys !

Printed Circuit Board Designer
Salt Lake City, Utah
Stangs rule!

RE: Removing properties in a part and assy using macros??

Hi, 2000mustanggtguy:

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources