Highlight/Select a part in an Assembly to change it's appearance

Highlight/Select a part in an Assembly to change it's appearance

DavidTunnard
Collaborator Collaborator
242 Views
3 Replies
Message 1 of 4

Highlight/Select a part in an Assembly to change it's appearance

DavidTunnard
Collaborator
Collaborator

Hello,

 

I have an assembly where I need to highlight several parts so that I can change their appearance via the dropdown menu.

 

I have no idea how to do this so would be grateful for any help. Please let me know if you need any more info.

 

David

0 Likes
243 Views
3 Replies
Replies (3)
Message 2 of 4

Michael.Navara
Advisor
Advisor
0 Likes
Message 3 of 4

DavidTunnard
Collaborator
Collaborator

By highlight I mean when you select a part in the assembly by clicking on it. Like in this pic.highlight.PNG

0 Likes
Message 4 of 4

WCrihfield
Mentor
Mentor

Hi @DavidTunnard.  So, do you just want to know how to select multiple things at the same time manually, or are you looking for an iLogic rule that you can run that will select multiple assembly components for you?  Manually, you can hold down the Control keyboard key while you select multiple things.  By code, once you have obtained a reference to the Document object you are working with, you can use the Document.SelectSet property to access its SelectSet object.  Once you have that, you can either use its Select method, or its SelectMultiple method.  The SelectSet object is where the things you manually select are stored temporarily.  There is also a method for creating a HighlightSet, but that does not sound like what you really want here, because those are not necessarily also in the SelectSet, unless you plan it that way.  The color of stuff we normally select is dictated by application level settings, but we can control the color of a HighLightSet by code.  How you want to select those parts is another aspect that we do not know yet.  If you want to be able to manually select them with your mouse, while the rule is running, you can use the Pick method, then add each object you pick to a collection, then when done selecting, add the collection to the SelectSet.  If you want to select them some other way, using some more automation, then we would need to know what is unique about those components, so that we can find them by code.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes