How to highlight components throughout built-in commands?

How to highlight components throughout built-in commands?

bshbsh
Collaborator Collaborator
338 Views
0 Replies
Message 1 of 1

How to highlight components throughout built-in commands?

bshbsh
Collaborator
Collaborator

Hello,

first sorry for the stupid title. Let me explain:

I'm tinkering with a vba macro that is using the built-in command "AssemblyEditConstraintCtxCmd" (but I'd think this could be many other commands too).

I have to highlight the two affected occurrences temporarily somehow, eg. via coloring them. The obvious way is to use HighlightSets, which would be perfect. Unfortunately the pre-highlighting seems to get disabled when executing this command (if that matters, I execute it synchronously via execute2), so it's impossible to see which parts are the affected ones (even if I do i center and fit the camera on the parts before).

So, my question is, how could I achieve this color highlighting? The best would be to make the highlightsets "persistent" during the execution of this command. Is it possible?

The only other way I can think of is actually changing the components' appearance before the command and actually color them. The problem with this is, I can't seem to find a way to apply appearance assets directly from the active appearance library, they have to be copied locally into the assembly document, and I'd like to avoid that if possible. Is there a way to somehow create a "transient asset"?

Thanks for any ideas.

0 Likes
339 Views
0 Replies
Replies (0)