Page 1 of 1

Assembly "Component Display" setting

Posted: Wed Sep 18, 2024 8:39 pm
by loeb
I am trying to write some VBA that sets the "Component Display" of the assemblies and parts in an assembly to "Default Display". I was hoping to find a method in IComponent2, but am having no luck. Any advice is appreciated.

Thank You,
image.png

Re: Assembly "Component Display" setting

Posted: Fri Oct 04, 2024 7:02 am
by RonE
I think the official way is to use DisplayMode Property (IModelDocExtension).

However, much easier (and probably also working for you) is to use that:

swApp.runcommand 2567, ""

Just preselect the desired components and then run that command. ;)

Re: Assembly "Component Display" setting

Posted: Sat Oct 05, 2024 8:27 pm
by loeb
Thank you, RonE. That worked great!