-
How can be a custom button with some UI can be added to Ansys Workbench
I want to customize the Ansys Workbench UI to add a tab and button as shown below : When I click to Custom Button it should open another custom window as shown below and I can able to provide some action to button click : How this can be done ?
-
How to create a custom material in Ansys Workbench programmatically ? By using APIs/ACT
System Information Application : Ansys Workbench Version : 2022 R2 Problem Statement To create a material manually user can add material name in below option After entering name a blank material is created From the left side pallet, user can add material properties manually, and material object will be created with some…
-
Multi stage cyclic symmetry models
Hi, I need to work on multi-stage cyclic symmetry models in Ansys. Can anyone please guide me on how to start? Also, are there any available learning materials or tutorials on this?
-
Workbench script (createautomaticconnections) does not work
I am running the below wbjn script from workbench and I think all works except of the CreateAutomaticConnections() call as no contacts are created. The same script (cmd) runs fine within mechanical scripting console. import clr clr.AddReference("Ansys.ACT.Core") import Ansys.ACT.Core appAPI =…
-
Python Code object to change objects Before Solve in R2021.2
I want to run a script that updates pressure objects before Solve (as a workaround to some bug in R2021.2 related to not correctly updating the Y-Axis data when opening the WB). But it seems the Python Code object can only read properties in R2021.2, when it is called as 'Before Solve'. When trying to modify a pressure…
-
Selecting an element/node by its Id, how to find which body the element/node corresponds to?
I have an element id, but I need the body to which the element corresponds to. In general, I have a named selection with all the elements of a body. I need to find out to which body the elements correspond to in the assembly.
-
Job Monitor - jobs
Hello I'm using scripting in wb project (ACT Console). Is it possible to somehow get the information on whether the job in job monitor is running, interrupted, etc. from job monitor window? Also is it possible to invoke actions like Interrupt or Abort?
-
Creating custom charts, using python result plots
Hi Is there an example anywhere on how to use charts with python results? basically what are the requirements for the tree item allowed for the chart as input selections. And how can cater my python result file to be an acceptable selection for the chart?
-
How to call csharp from Ansys plugin(IRON PYHTON) .
Is it possible to call c# from IRON Python plugin. If yes kindly share the details.
-
Cannot scope Named selections for a Path Construction Geometry
Hi guys. An easy one for you. I am trying to scope a named selection to a path. I am using : pth.Location = ExtAPI.DataModel.GetObjectById(WeaverEdge_NS.ObjectId) This changes the Scoping method to Namedselection but does not populate the Named selection field. and the pth.location remains [] when I audit during debug. I…
-
Is there any documentation for the Ansys.UI.Toolkit?
With only the helper comments that come up with the autocomplete, it is very difficult. For example, adding a RadioButton to a UI does not follow the same protocols as a Button
-
Clear messages from WB project schematic
Is there a command I can use to clear the messages in the WB project schematic ?
-
How can I export the elements of the deformed geometry?
Hi, I have used the following snippet for exporting the elements and write the in a txt file but was unsuscessful, if anyone could help. allsel ! Select all entities of the model. *GET, E_COUNT, ELEM,0,COUNT /PREP7 my_elements = E_COUNT *cfopen, element_data_file,txt !Create a txt file called "node_data_file"…
-
Need help defining a "Python Result" custom plot for a path.
Hi again :) Would anyone have a sample "Python Result" code for drawing stresses on a path? (Similar to user defined plots on a path) Don't quite know where to look or where to begin. Thanks
-
EXPORTING ELEMENTS OF THE DEFORMED GEOMETRY
Please include the following where applicable: The Ansys simulation product(s) in use: Ansys workbench/mechanical Version of product(s) R2020 Screenshot of error message Copy/paste of any script code Hi, I have used the following snippet for exporting the elements and write the in a txt file but was unsuscessful, if anyone…
-
Issues with changing the coordinate system in a "user define results" plot.
Hi guys :) I am looking into changing the CoordinateSystem field of a User defined plot in a script from "Global coordinate system" to "Solution Coordinate System" but have hit a wall. The macro recorder does not record any changes and the Plot.CoordinateSystem parameter can only accept objects of type coordinate system!…
-
How to export results like "Transmission Loss" from the Harmonic Acoustics module?
Hello, I want to programmatically export this result as an image (.png or .jpg). Is there a way to do it? I am able to export the curve as points, but not the image itself. When I use the "Image" button in Ansys, it creates an image of the model itself, instead of the Transmission Loss Curve. Thank you!
-
How to prevent WBEX file from unpacking after installation?
When I create a WBEX using any of the below mentioned security options, the installed WBEX unpacks itself in the %appdata%\Ansys\v211\ACT\extensions folder and anyone using the WBEX can see the whole source code, which defeats the purpose of encryption. How can I encrypt the source code and prevent it from unpacking?
-
How to retrieve WB extensions Log Output as a String in ACT console?
How to retrieve WB extensions Log Output as a String in ACT console?
-
How to get WB project system status?
Hi I need to get the system status - whether the system is soleved/need to be update etc. ? I've got multiple systems and I would like to know which ones were already solved and which one I need to solve. Is it possible to get the statu also for particular components like Setup, Solution, ... Thank you for the answers
-
Set workbench user preferences on program start
Hello, According to the documentation I can set the options of the workbench via a journal file: Note: An IT manager can a place a site-wide configuration file into the installation directory of each client machine to ensure that the Workbench software preferences are configured as the company requires. To force a…
-
Save Maxwell tabular data report from within Workbench
Hello. I am doing coupled electromagnetic - transient-thermal simulations in Workbench. For electromagnetic simulatinon I use Maxwell. I got a python script (or workbench journal) that runs the whole simulation process. In this script I use command that saves tabular data report in a file on disc (please, find this line of…
-
How to run a Workbench script in headless in mode?
I have a Workbench script that I would like to run fully headless.
-
How to get WB version?
How to get WB version?
-
How to create custom buttons on WB Project page?
I want to create a set a of analysis systems on the WB project page and connect them automatically. Ideally I require a custom button on the WB project page, which when clicked calls a function where I can define my workflow.
-
How to extract stress reults from ansys motion result file
All you need to do is point to DFR file and extract results like below:
-
How can I update all design points in WB with Scripting?
like so paras = Parameters.GetAllParameters()for para in paras: pn = str(para).split(':P')[1] pn = str(int(pn)-1) designPoint = Parameters.GetDesignPoint(Name=pn) backgroundSession = UpdateAllDesignPoints(DesignPoints=[designPoint])