TAGGED: ansys-mechanical, automation, mesh
-
-
February 11, 2021 at 9:50 am
giulio.scrimali
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
Forum ModeratorPlease 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
giulio.scrimali
SubscriberThank you!!n
-
Viewing 2 reply threads
- The topic ‘How to export the mesh to STL file all via script’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
2587
-
933
-
797
-
599
-
591
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.