iLogic, Style from Base, status (true/false), enabled/disabled (grayed out/not grayed out)

engilic
Advocate
Advocate

iLogic, Style from Base, status (true/false), enabled/disabled (grayed out/not grayed out)

engilic
Advocate
Advocate

Hi,

 

How to make iLogic code to get the status of Drawing / Drawing View / Component / Style / Style from Base?

 

1. grayed out or not? 

Style from Base 1.png

 

 

2. true or false?

Style from Base 2.png

 

3. is it possible to change the status of it not using SetDesignViewRepresentation which needs to have View Representation in it, rather just to change the state of Style from Base without even knowing the name of View Representation, just to do it for the current View?

 

Thank you.

0 Likes
Reply
Accepted solutions (1)
440 Views
2 Replies
Replies (2)

engilic
Advocate
Advocate

Anyone, Please.

 

Just how to get if the Style from Base is ON or OFF?

0 Likes

engilic
Advocate
Advocate
Accepted solution

Sorry, silly me.

 

Just need to see .ViewStyle (if it is kFromBaseDrawingViewStyle).

 

For grayed out or not just try to make it kFromBaseDrawingViewStyle with Try-Cacth and if it can be set to kFromBaseDrawingViewStyle then it is not greyed out if you catch an error then of course it is grayed out.

 

Sorry

0 Likes