×
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

Set Component Name=Configuration Specific Property

Set Component Name=Configuration Specific Property

Set Component Name=Configuration Specific Property

(OP)
Has anyone seen a macro that, when run, will set the Component Name of all parts and Sub-Assemblies in a given file to a specifice Configuration Specific Property of said parts and Sub-Assemblies?

RE: Set Component Name=Configuration Specific Property

I haven't seen one, but here's how I would do it:

1.) Write a routing that traverses all the components.

2.) For each component, read the property in question, and set the component name to that property.

Traversing assemblies is covered in the API help.

Generic custom properties can be accessed without opening the file in question.  For configuration-specific files, one normally needs to open that file fully (though this can be done by other means that are beyond my knowledge at this time).

"Great ideas need landing gear as well as wings."--C. D. Jackson
http://www.EsoxRepublic.com

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