×
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

How to select parts by name or properties (programmatic selection)

How to select parts by name or properties (programmatic selection)

How to select parts by name or properties (programmatic selection)

(OP)
I'm trying to figure out a method to programmatically select a specific part or group of parts within an assembly using a VBA macro. The parts are all similar in type, but the part numbers vary from one assembly to the next. (part number = part file name) For example, there is a frame with four sides. The design of the frames are the same, but the part numbers and dimensions of the structural members vary from one frame to another, but there are always two sides, a top, and a bottom. I would like to reference the parts relative to their positions to select either the side tubes or the top/bottom tubes regardless of what their part numbers or instance IDs are. Does that make sense? Is there a way to do this without graphically selecting each part with the mouse?

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