Message 1 of 6
Calling a specific part in an assembly through a macro

Not applicable
11-01-2012
11:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been trying to create a macro to control an assembly. The problem is that I need to access a certain parameter in a specific part in the assembly. I can get the exact parameter by using the "name" of the given parameter, ex .Item("d7") to call the parameter d7. The problem for me has been what name do I use to call out a given part, I have been using .Item(Index number), ex .Item(12), but this number can change as parts are added, deleted, or suppressed. The question is what "name" should I be using and how do I use it. I have tried "InternalName", "PrimaryDeselGUID", "DisplayName", "FullDocumentName", "FullFileName" but there is no "Name" to input like the parameter. Thanks for any help.