-
Creating beam profile in SpaceClaim and assigning to curve
I would like to create a beam profile and assign it to a curve using script. I know start point and end point.
-
Get bounding box of whole CAD assembly in SpaceClaim/Disovery.
I would like to get the bounding box of the whole CAD using script. Is that any way to do that?
-
How Do I automate the toolbar options for convert and extend
I am looking for script which can Automate the manual conversion and extension of selected entities.
-
How to read total deformation results for harmonic analysis in MAPDL?
At a particular frequency and particular phase angle, I get one total deformation result in WB Mechanical. I read the same .rst file in MAPDL and I see the results for the same frequency and phase angle, to my dismay, I observe a different result in MAPDL. For example, for 73.859Hz and 20°, I used SET,,,1,3,73.859,20,, in…
-
How does WB Mechanical calculates total deformation for harmonic results?
At a particular frequency and particular phase angle, I get one total deformation result in WB Mechanical. I read the same .rst file in MAPDL and I see the results for the same frequency and phase angle, to my dismay, I observe a different result in MAPDL. For example, for 73.852Hz and 20°, I used SET,,,1,3,73.859,20,, in…
-
How to change text style and size in Ansys Mechanical ?
Hello everyone, do you think we can change the Tree objects text style or size in Ansys Mechanical using scripting? I can manipulate the graphic labels using javascript, so i think it should exist something similar to do the same with text in Ansys Mechanical using javascirpt or Python. I'am talking about this text , i can…
-
Script for Ansys LS-Dyna / Mechanical
Ansys LS-Dyna / Mechanical 2023R1 How could I use script and/or ACT to Generate CFL time-step in Ansys LS-Dyna Get its Minimum CFL value and Maximum CFL value
-
Export Deformed Mesh for Harmonic Analysis
I want to export the deformed body mesh at a particular frequency and particular phase angle for a harmonic analysis as a .cdb file. Harmonic Analysis - Ansys Mechanical 2021R1
-
How to get the parts with failed Mesh?
How to get the parts with failed Mesh in Mechanical/Ansys Ls-dyna? Originally I tried to identify the part with 0 element as failed mesh part, it works the case starting with no mesh condition. Unfortunately in some cases all mesh are completed (mesh ObjectState is Solved), and for better quality purpose modified the mesh…
-
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 =…
-
How to get the unmeshed parts by script?
If mesh status is not Solved, how to get the unmeshed parts by script in Mechanical, Ansys Ls-dyna?
-
Question regarding changing user defined charts' time steps using a python result script.
Hi I have a python result file that I am trying to get some custom result files evaluated in different time steps. for some reason I cannot find a method under a user plot object that would be similar to "Retrieve this result" as opposed to "Evaluate all results. In any case the application does not perform a "Evaluate all…
-
How to get correct Joint's ObjectState under with Transaction(True)
With below code, it shows 'NoState' for Joint ObjectState. It's incorrect status. But out of Transaction, it shows the correct status UnderDefined. My question is how to get the correct ObjectState within Transaction(True):, so that it can go PromoteToRemotePoint successfully. Because in my real case, there may be more…
-
Reading excel file in ACP using scripting
Hi I would like to read excel file in ACP, but I'm not able to import for example openpyxl module. I need to use excel because of some further calculations in it. Is there any way how to install this package?
-
getdata() for bent waveguide eigensolver in MODE solutions
Hello, I am simulation the profile of bent waveguides in LUMERICAL MODE_solutions. I have many profiles to calculate and I am scripting everything. I would like to fetch the data in the eigensolver analysis window, in the column called "angular loss (dB/rad)". However: >>data_loss = getdata("mode1", "angular loss…
-
How to find coordinates of an intersection between 2 lines on a same plane in SpaceClaim-Scripting?
I am trying to find the point of intersection between two lines on a plane. They currently do not intersect, however, I would like to find the coordinates of the point of intersection. Can someone help me with a script for it?
-
Calling object generator within ansys script
Hi, Is it possible to call the object generator tool within an IronPython script? I am trying to use Python code to automate creating repetitive contacts and the object generator is great at doing that with just a few named selections. I would like to pass the named selections through the script and have the object…
-
How to Export Nastran File to a specific folder?
Using ACT scripting inside mechanical how can we export a Nastran file to a specific folder?
-
change power/ground nets to signal net in edb api
Hi, I want to change the power nets to signal nets in edb api. I could not find a method in the documentation for this. I would appreciate if anyone knows how to do it. Thanks
-
How to parameterize the objective weight using Python Code object?
When performing Structural Optimization analysis in Mechanical, one can define multiple rows (corresponding to multiple analyses) in Objective, which will then activate the property "Weight" in the worksheet. One cannot parametrize these weights natively.
-
Assign thickness values defined in a csv file to surfaces in Spaceclaim?
How can we automatically assign thickness values defined in a csv file to surfaces in Spaceclaim?
-
How to make total mass of a part as an Output parameter in Mechanical using Python Code object?
In ANSYS Mechanical, we can make the mass of all bodies as a parameter, but, if one wants mass of a multibody Part or an assembly, the Parameter option is not available.
-
Mechanical scripting: nodes associated with a named selection?
Using mechanical scripting in python, how can I access the nodes associated with a named selection?
-
How to get stress values along a path using DPF considering element orientations defined on body?
Hi guys Would need help understand how to retrieve stress tensor values on a path considering: element orientations the are defined in the associated body, layer, and position . Similar to a user plot defined on a path: I have developed the module to retrieve the nodes on the path and I have a named selection of the…
-
How can I populate the tabular data section of a python result Plot?
Hi , was wondering if there is a quick sample on how to get custom data to display in the tabular data section of a python result plot. For instance in my case, I calculate a certain value for specific nodes and want the tabular data to show the node and the corresponding value for the node. Would appreciate any help in…
-
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.
-
Need help updating python result property upon changing another property.
Hi again Was wondering if someone would know how to setup a python result property that updates another property upon change. For example, when I change the Weaker plate material field, I would like the weld strength to be updated with it to what ever value I have associated to the plate. You can assume that I am using…