Mechanical Setup
This container holds Set Up data for an instance of ANSYS Mechanical.
Opens the Mechanical editor and attaches geometry.
Optional Arguments
To edit the setup component with default optional parameter values.
setup.Edit()
Or by specifying optional parameter values:
setup.Edit(Interactive=True)
Exit the Mechanical editor
Optional Arguments
Writes either an APDL input file (for use with the ANSYS solver) or a CAE Representation file (for use with any solver).
Required Arguments
Query to return the reference to the container's MechanicalSetupFile data entity.
Return
A reference to the requested MechanicalSetupFile data entity.
Query to return the reference to the container's MechanicalSystemType data entity.
Return
A reference to the requested MechanicalSystemType data entity.
Query to return the reference to the container's MechanicalSystemType data entity.
Return
A reference to the requested MechanicalSystemType data entity.
Executes a JScript or python command in the Mechanical editor.
If the Mechanical editor is not open, then the editor's GUI will not be available, causing some commands to fail. In this case, consider calling the container's Edit method to open the editor before using SendCommand.
Furthermore, if the Mechanical editor is not open, SendCommand will start the editor without the GUI, issue the specified command, and then close the editor. For multiple SendCommands, this may degrade performance.
Required Arguments
Optional Arguments
To execute some arbitrary command (in this case, causing a dialog box to appear) in the Mechanical editor:
model.SendCommand(Command="WBScript.Out(\"My Text\",true);" )
To run a JScript file already saved to disk using Run Macro from Mechanical:
setup.SendCommand(Command="WB.AppletList.Applet(\"DSApplet\").App.Script.doToolsRunMacro(\"C:\\\\macro.js\")")
Set the design assessment
Required Arguments
The data entity that holds the setup properties for a Design Assessment.
The general property that defines the user-visible name of an entity. This property is defined for all data entities but is used only in those entities that present a label in the user interface.
The file to specify attributes to perform a User Defined design assessment.