Customizing the User Interface and Existing Toolbars

The API UserInterface provides methods to control the ACT-based GUI of Mechanical. The API is available using the following entry point:

ExtAPI.UserInterface

This API allows you to hide or gray-out ACT-based features and customize existing toolbars. It cannot be used to create new items such as toolbars. The API UserInterface provides access only to existing UI elements.

ExtAPI.UserInterface.Toolbars is a collection of toolbar objects. Each object has fields to access Name/Caption/Visibility/Child Entries. Each child has the following properties: Caption, Enabled, Entries, EntryType, Name, and Visible.

The Boolean fields Visible and Enabled can be set to "show" or "hide" so that you can control the availability of the buttons depending on the current context.


Release 18.2 - © ANSYS, Inc. All rights reserved.