Skip to main content
12-Amethyst
Dec 23, 2017 6:18 PM UTC
Question

Get and set display style in part mobe

Hi,

 

I can't find the proterty there I can get and set the display style on a part or assembly.

I will like to get the style before I set the style to "No hidden" and then save a tiff file of the part/assembly, and then is the style back.

 

Can anyone help?

Thank

Allan

 

4 replies

akok12-AmethystAuthor
12-Amethyst
Feb 14, 2018 8:16 AM UTC

Hi,

 

I have been trying with:

DisplayStyle.FromInt(DisplayStyle._DISPSTYLE_NO_HIDDEN);

 

It doesn't give any errors, but it also does not seem to do anything.

 

Does any have a clue?

 

Allan

Translate
4-Participant
Jul 3, 2018 3:43 PM UTC

Hi Allan,

did you found a solution to get the current display style?

Regards

Marcus

Translate
akok12-AmethystAuthor
12-Amethyst
Jul 23, 2018 9:14 AM UTC

Hi Marcus,

 

The only way I found was by setting the config option, but it also works.

 

Allan

Translate
akok12-AmethystAuthor
12-Amethyst
Mar 12, 2018 12:04 PM UTC

Hi

 

I found a solution.

I got jlink to set the config option Display, like this:

    String DisplayStyle = MySession.GetConfigOption("Display"); // get the display style I had
    MySession.SetConfigOption("Display", "HIDDENINVIS"); // set No Hidden

 

do the tiff export like I want


    MySession.SetConfigOption("Display", DisplayStyle); // set the display style I had back

 

Allan

Translate