Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
engilic
385 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)
2 REPLIES 2
Message 2 of 3
engilic
in reply to: engilic

Anyone, Please.

 

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

Message 3 of 3
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report