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

Disable UI Elements temporarily via API

Hi,

 

it's possible to disable a group of UI Elements (CommandTypes) with the following line:

ThisApplication.ActiveDocument.DisabledCommandTypes = CommandTypesEnum.kShapeEditCmdType;

 

How do I disable multiple CommandTypes? e.g.:
DisabledCommandTypesList = new List<CommandTypesEnum> {CommandTypesEnum.kShapeEditCmdType, CommandTypesEnum.kQueryOnlyCmdType }

 

For my API I want to wait for a User Input where the user has to select multiple faces but shouldn't be allowed to click on a UI element. Is there a possibility to implement this?

 

Thanks!