Professional Documents
Culture Documents
01a-ACT Basics PDF
01a-ACT Basics PDF
• ACT Overview
• Extensions Menu
• Extensions Options
• Extension Basics
• Extension Types
• Q/A
• ACT creates a set of new customization possibilities on top of JScript automation methods
– ACT typically adds new pre-processing and post-processing features
• Examples:
– In your workflow, you want to automatically insert a few mesh controls and already
available boundary conditions [fixed support, pressure load etc.]
• You will use JScript macros to automate [as these features already exist in standard
Mechanical]
– In your workflow, you want to expose some new type load [e.g. super-element,
acoustics loads etc.] or functionality [typically for users to use interactively]
• You will use ACT to add these features *as they don’t exist in standard Mechanical+
– In your workflow, you want to expose some new features and automate existing and
these new features
• You will use ACT to expose the new features.
• You will use JScript to automate the new and existing features
• A “Super user” develops an ACT-based extension that encapsulates expertise, know how…
• And provides it to “everyday” user for a larger usage of simulation within the organization
A “Super user” needs ACT development module to develop extensions
The “everyday” user doesn’t need ACT development module for using the extensions
13 © 2011 ANSYS, Inc. December 3, 2012
ACT Extension Basics
• An ACT extension consists at least of
– One XML file
• Configures the UI content
• Defines the extensions properties
• Binds application events to IronPython
script functions.
• Configures behaviors for custom loads and
results.
– One IronPython script file
• Implements the extensions functionality
• Event driven
– Functions are invoked by application generated events
• Supports access to external libraries
• The script file is typically placed in a folder named with the same name as the XML file
• Scripted extensions
– Used during the development phase
– Need the ANSYS Customization Suite license to use
– Made of .XML and IronPython functions
• Binary extensions
– Provided by the developer to the users (once the
extension is completed)
– Doesn't need a license (beyond the one to run ANSYS
Mechanical) to use
– Result of the “Build Binary Extension…” for one
scripted extension .WBEX file
– This .WBEX [WorkBench EXtension] file is installed
from Extensions menu
16 © 2011 ANSYS, Inc. December 3, 2012
Loading ACT extensions
• Extensions are loaded with an application if they are pre-selected in the Workbench
Extension Manager tool
• This pre-selection is done automatically for extensions that were loaded and saved
with the project
Extension gets installed in the current user’s Application Data (%appdata%) folder
Installation also creates a new folder in addition to the WBEX file
Both the folder and the WBEX file are necessary for the extension to work
Don’t keep the same extension as both script and binary form
! – Only one will be loaded based on the path priority
18 © 2011 ANSYS, Inc. December 3, 2012
Building Binary Extension
Note: These security options only apply if the user wants to save the
extension with the project, and are otherwise not applicable.
The <toolbar> element defines a toolbar and its The <entry> element defines a toolbar button
properties and its properties