Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

dl08in

Automotive
Joined
Apr 18, 2011
Messages
16
Location
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top