Skip to content

May I ask how to export the established model to OBJ format so that third-party software can open it? #2819

Answered by mikerife
COOLEST-GET asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @COOLEST-GET
The "mapdl.save" command is saving to the MAPDL binary database format. It does not support saving to any other formats. And changing the extension does not change the file format.

Instead try to use the PyVista obj exporter . There are examples on the PyMAPDL doc site that show how to create a mesh object (mapdl.mesh.grid) then add this mesh to a PyVista plotter object.

So as an example say you wanted to export that VPLOT, I think this will work:

pl = mapdl.vplot(quality=5, return_plotter=True)
pl.export_obj("volume.obj")

Mike

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@COOLEST-GET
Comment options

@COOLEST-GET
Comment options

Answer selected by germa89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants