-
How can I get the centroid of a surface in Spaceclaim?
How can I get the centroid of a surface and show it in a dialogue box?
-
How can I create Groups inside SC from selected faces that are obtained by the small faces tool
How can I create a Group/Named Selection inside SC from selected faces that are obtained by the small faces tool?
-
How to use libGLTFWriter.lib static c++ library in python to create .avz file ?
I have integrated the Ansys Viewer into one of the Ansys web application, and it is using OptisLang as a flagship product. Now I have FMOP data to visualize my CAD file in the Python 3D viewer, but I want to visualize it in the Ansys viewer. As Statics of Structure (OptisLang tool) does not have the facility to convert…
-
DPF Error: The Label Space Request in this collection has more than one entry
I am currently working with a model that has a "surface coating" applied in Mechanical and trying to pull results using the DPF. Essentially it appears the DPF is pulling two different element shapes from my selected mesh ids (most likely both the 3D elements on the part and the 2D shells created by the surface coating).…
-
DPF Install issue
I used the Ansys Python Manager to download python and relevant libraries. When I do that and then try to run dpf in with the following command from ansys.dpf import core as dpf in Jupyter notebook I get the following error. `---------------------------------------------------------------------------AttributeError…
-
How can I export a GLB / GLTF file format with PyDPF?
How can I export a GLB / GLTF file format with PyDPF?
-
Cannot assign scoping to few result user objects at once
Hi all, I've got an issue with one of the extensions I'm developing. Long story short, after clicking new button added on the Mechanical's toolbar, set of four result objects is created in the Mechanical's Tree. Everything works fine apart from one thing. When I'm selecting all of those results and try to change scoping…
-
How to run a function up on activating (Clicking on ) a python result file. for instance OnActivate
I have written a code that updates the tabular data of a python result. The tabular data are populated from the information in the properties section of the python result file so I need it to execute after the properties are loaded. At the moment I have a property that on_property_change, performs the task. Is there a way…
-
faces nodes connectivity property error
Hello, I'm new to dpf. How do I resolve this error? "ValueError: faces_nodes_connectivity property is not supported" Thank you
-
Error loading ACT extension with custom ACT Solver
Hi. I'm facing a strange random error when loading my ACT extension with certain WB projects. My extension features a custom ACT solver for implementing a custom calculation routine. After I add the custom ACT solver to my project, it connects to an existing Static Structural and creates a new Analysis in the Mechanical…
-
Referencing scriptable extension using the command
Hi, I would like to reference the script extension using the command. Is it possible to add specific extension directory path? I would like to than load the extension using Extension.LoadExtension…
-
Configuring MS Visual Studio to Develop IronPython for ANSYS Scripting
Hi ANSYS Developer Community: I would like to be able to develop IronPython code in Microsoft Visual Studio for scripting applications in ANSYS Spaceclaim, ANSYS Discovery, ANSYS Electronics Desktop, etc. Right now, it is unclear to me how to properly configure Microsoft Visual Studio to work with IronPython as oppsed to…
-
How to get Extension Format
-
Is there any way to block a particular license and release when needed through scripting?
I have a mixed wizard but there are limited licenses. I would like to block a particular license and release it before launching an application. Is there any way to do that via script or subprocess using license client executables?
-
DPF Operator C++
Hey everyone, I have a question about creating a custom operator in C++. Can this created operator be called in a DPF script in IronPython? Could someone please provide me with an example of creating such an operator and how to call it? Thank you in advance!
-
Example throws DPFServerException
Hi, I would like to use DPF for one of my tasks. I have installed ansys-dpf- core version 0.8.1and tried the example according to the documentation from ansys.dpf.core import Model from ansys.dpf.core import examples model = Model(examples.find_simple_bar()) print(model) But when I get to print line it raises this error:…
-
How to get stress tensors on edge of a shell in python results, by defining position and layer
-
Using the DocumentOpen.Execute(r"---") to open a document
-
Mechanical ACT - "expected int, got str" error
-
How do I get the geometry unit in Mechanical?
The geometry dimensions will not returned in active unit system. How do I check the unit system for geometry parameters?
-
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 can I plot deformed and undeformed mesh ( with result) together using PyDPF?
I would like to plot result having deformed mesh and undeformed mesh after getting results from PyDPF. The plot should looks something similar to Mechanical, like below.
-
Unable to read cdb file in PyPrimeMesh.
I am unable to read a cdb file exported from 2023R1 Mechanical or APDL solver. The PyPrimeMesh server throws below error.
-
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.
-
Import Materials in PyMechanical
-
Getting a Mechanical.Body from a Geometry.GeoBodyWrapper
-
Plot field Vectors on a Named Selection in PyDPF
How to plot field vectors on a named selection in PyDPF?
-
Extracting results from a Path in Transient analysis and creating a 3D Surface Plot in PyDPF
How to extract results from a path in a Transient analysis and create a spatiotemporal 3D surface plot in PyDPF?
-
How to plot result on cut mesh using PyDPF
Hi I would like to plot a one side of a volume geometry, for which I have nodal results, and would like to cut the geometry with specific plane. I have tried the mesh_plan_clip operator but as soon as I use it, the output mesh is cannot really plot the results. I have tried to create a possible solution with the PyVista…