Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
engilic
465 Views, 2 Replies

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

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.

Labels (4)
engilic
in reply to: engilic

Anyone, Please.

 

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

engilic
in reply to: engilic

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