-
Generate documentation for DPF
How can I generate the documentation for Data Processing Framework DPF?
-
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
-
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
-
How to get value in CAD Parameters to python variable?
Hello, can you help me to get value of highlighted parameter to python variable? Thank you
-
Creating and populating an external data in workbench using ACT
Does anyone know if we have access to the api to interact with the external data component system in Workbench? I have a large number of csv files and would like to create, populate, and attach the data automatically. I've been looking through ExtAPI and haven't found a way to interact with the main workbench page. Thank…
-
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 change back color of mechanical tree xml properties in an ACT Extension
I've been looking to see if it's possible to access the backcolor property of cells in the mechanical tree when developing an act extension. For example a cell will turn yellow automatically when it needs attention or red when it is invalid or gray when it is read only. The grid editor shows this method being used, but its…
-
How do I parametrize a layered section?
I want to parametrize the angle and thickness of the plies in the Mechanical object "Layered Section". How can I do that?
-
In Mechanical scripting, how can I get the current solver directory (dpXX/SYS/Mech)?
I am using Mechanical scripting and would like to get the path to the solver directory for a given analysis. I want to know the location that is opened if I right click on the analysis branch and click 'Open Solver Files Directory".
-
How to open Workbench ACT and launch a wizard by script
Is there any way to launch a ACT wizard by script?
-
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
-
How do I export path to a text file?
How do I export path to a text file?
-
Where do I find all the Quantities/Units supported in WB / Mechanical?
Where do I find all the Quantities/Units supported in WB / Mechanical?
-
How do I export Tabular data of selected result objects to a CSV?
How do I export Tabular data of selected result objects to a CSV?
-
Body mass modification in Mechanical ACT
(I was about to drop this in SR but maybe it will be more useful in this public space.) We have a need for modifying mass of bodies in Mechanical. That is: mass that doesn't match the material density*volume. So my question is whether there is some way to implement this either natively (enhancement request) or using ACT?…
-
Get Centroid or coordinates of Remote points
Hello, I automatize join connections in my assembly. I wrote a script to create remote points on each of components. Now I would like to measure the distance between the remote points and identify corresponding pairs. However I have not found any property of Remote point giving me its centroid or coordinates. Do you have…
-
How can I compute a curvilinear abscissa along a non-straight path in IronPython?
Say I have an edge or set of edges in Mechanical which are not straight . How can I derive an abscissa to plot some quantity against?
-
I want to find circle edges in mechanical model
I wrote following code to get ID´s of circle edges : g = ExtAPI.DataModel.Project.Model.Geometry allbodies = g.GetChildren[Ansys.ACT.Automation.Mechanical.Body](True) geo_bodies = [x.GetGeoBody() for x in allbodies if x.Suppressed == False] circles=[] for geo in geo_bodies: for edge in geo.Edges: if edge.Type ==…
-
Retrieve messages from Mechanical
Through ACT scripting, how can I retrieve the info, warning and error messages in Mechanical ?
-
How can I create a selection of adjacent edges using Scripting?
How can I create a selection of adjacent edges using Scripting?
-
Best practices for visual studio ACT Extension Python Coding
Does anyone know of any documentation on how to set up visual studio / have any recommendations for a typical workflow on how you code? I've been coding without an IDE, but this requires repeated opening and closing of mechanical to refresh my code whenever I'd like to test it. I'm also coding without type suggestions from…
-
Export results during a DOE
I'd like to export temperature results for each DP of a DOE analysis. How can I do that?
-
Is it possible to use the DPF out of an ACT extension?
(Ansys Mechanical 2022 R2) Is it possible to insert a postobject with the DPF and not use the collector in an ACT extension?
-
Mechanical Scripting -export figures etc. as Word file
Hello, I want to send the figures directly into the word file. Is there any simple code ready for this? https://www.linkedin.com/pulse/script-tip-friday-connecting-mechanical-excel-structural-analysis import clr clr.AddReference("Microsoft.Office.Interop.Word") import Microsoft.Office.Interop.Word as WordNS I read the link…
-
How can I create the figures renamed based on the parent object name
Hello, I have code as below but it comes named Figure. How can I create it based on Object? Geometry,Materials, Static Structural etc. a = ExtAPI.DataModel.Project.Model.Children for b in a: b.AddFigure()
-
How can I insert an image or a figure in the Mechanical Tree, through ACT?
How can I insert an image or a figure in the Mechanical Tree, through ACT ?
-
What is C# equivalent for ExtAPI.Application.ScriptByName("jscript").CallJScript?
What is C# equivalent for ExtAPI.Application.ScriptByName("jscript").CallJScript?
-
how to generate easy to share 3d plots?
You use plotly. This is a test and it needs improvement but the script below generates a 3D plot and saves it to an html. from ansys.dpf import core as dpfimport numpy as npimport plotlyimport plotly.graph_objects as goimport plotly.io as piopio.renderers.default='browser'myModel = r'set to a small .rst file for…