It would be nice to have this feature.
I can select a bunch of Objects to convert to mesh.
I would like to do the same by selecting more than one mesh object.
If the user selects more than one mesh the Export Mesh, could open a folder to dump all the objects into files. The file name could be something using the object name as it is today but removing this (Meshed) thing. It is horrible.
Feature Request - Export Multiple mesh objects at once
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Feature Request - Export Multiple mesh objects at once
You can do that already. However, all meshes will be joined and written together to a single file. Depending on the selected file format the file may contain a single mesh or multiple meshes or a mesh with grouping information, respectively. The latter is supported by OBJ (aka Alias Mesh in the global export dialog).I would like to do the same by selecting more than one mesh object.
Re: Feature Request - Export Multiple mesh objects at once
Not with the "Mesh WB > Export Mesh". If I select multiple mesh objects, it keeps greyed out.
But I would love to see this change.
However, creating multiple files and not a single one.
Then I have another question.
How does the "Mesh WB > Export Mesh" is different than the "File > Export > STL Mesh"?
Re: Feature Request - Export Multiple mesh objects at once
FWIW, You are welcome to try this Python script which creates a mesh of the selected solid, then exports it, then deletes the mesh object.
It only does one at a time, but handles the mesh create and removes the, likely now unnecessary mesh.
It is of course best to make a copy of the file before using it since it is creating and deleting object. And I've done a limited amount of testing. The user who asked me to create this script has had no such issues...so caveat emptor.
It only does one at a time, but handles the mesh create and removes the, likely now unnecessary mesh.
It is of course best to make a copy of the file before using it since it is creating and deleting object. And I've done a limited amount of testing. The user who asked me to create this script has had no such issues...so caveat emptor.
- Attachments
-
- MeshExport.py
- (2.58 KiB) Downloaded 55 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Re: Feature Request - Export Multiple mesh objects at once
Thanks, DrMacro.
It works nicely. Unfortunately, it does one at each time. But this is not hard to change, I guess.
Also, it is using the Body ID/Name or whatever it is called to make the filename. And not what the user has called it in the tree view which I believe is better (maybe it is the Label or something)
Ah. I could use your script to allow multiple meshes to be exported. I am also using the Label instead of the name too.
Thank you!! Now. How could we make such a thing land on Mesh Workbench so we don't need to have a macro for such a useful feature?
It works nicely. Unfortunately, it does one at each time. But this is not hard to change, I guess.
Also, it is using the Body ID/Name or whatever it is called to make the filename. And not what the user has called it in the tree view which I believe is better (maybe it is the Label or something)
Ah. I could use your script to allow multiple meshes to be exported. I am also using the Label instead of the name too.
Thank you!! Now. How could we make such a thing land on Mesh Workbench so we don't need to have a macro for such a useful feature?
Re: Feature Request - Export Multiple mesh objects at once
You're welcome.
Simply go to Tools>Customize and add whatever you like to the Mesh workbench toolbar.Thank you!! Now. How could we make such a thing land on Mesh Workbench so we don't need to have a macro for such a useful feature?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."