Application.ActiveColorSheme ScreenColor does not change

Application.ActiveColorSheme ScreenColor does not change

M.Zirk
Advocate Advocate
188 Views
2 Replies
Message 1 of 3

Application.ActiveColorSheme ScreenColor does not change

M.Zirk
Advocate
Advocate

Hello,

 

I have tried to change the Screencolor of the ActiveColorSheme.

No Error, but nothing happens.

Dim inv As Inventor.Application = CType(selection.Document.Parent, Inventor.Application)

 

This does not work

inv.ColorSchemes.Item(inv.ActiveColorScheme.Name).ScreenColor.SetColor(0, 0, 0)

inv.ActiveColorSheme.ScreenColor.SetColor(0, 0, 0)

 

This works:

inv.ColorSchemes.BackgroundType = Inventor.BackgroundTypeEnum.kOneColorBackgroundType

 

What is going wrong?

 

Manfred

0 Likes
Accepted solutions (1)
189 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @M.Zirk 

 

I don't think they allow us to set this. The API help says the ScreenColor property is read only.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

Curtis_Waguespack_0-1703777391298.png

 

 

 

EESignature

0 Likes
Message 3 of 3

M.Zirk
Advocate
Advocate

Hello Curtis,

 

thank you for your infomation.

 

Manfred