TAGGED: ansys-mechanical, automation, mesh
-
-
February 11, 2021 at 9:50 am
GiScri
SubscriberHi all, nI'm trying to export the mesh in mechanical as STL file, without requiring any click from the user.nVia the Recording tool in the ACTConsole I've found the command context_menu.DoExportToSTLFile(ExtAPI), but this open the Save As window. nIs there a way to give via script a name and a file path and export to that, without requiring further user intervention?nTo me, it seems that the DoExportToSTLFile() is a wrapper for a ExportToSTLFile function, but scouting with the dir command all the mesh-related objects, I haven't managed to find any reference to a STL export...nMind that I am aware of Model.Geometry.ExportToSTL(path), but this is not what I need, since I need the local refinement of the mesh to be in place, while the aforementioned command export with a rough element size. I've also tried to reduce the max edge length via the STL export options, but this refines all the elements in the stl model, while I need the precision only in some locations. -
February 11, 2021 at 11:37 am
Aniket
Ansys EmployeePlease check if the following help:nhttps://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v211/en/act_script/mech_apis_Graphics_Exporting.htmlnMake sure that the Mesh object in the tree is activated before exporting STL.n-AniketnHow to access Ansys help linksnGuidelines for Posting on Ansys Learning Forumn -
February 12, 2021 at 7:53 am
GiScri
SubscriberThank you!!n
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- User manual
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- material damping and modal analysis
- Colors and Mesh Display
-
5454
-
3419
-
2473
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.