Skip to content

dxf export exception: "Can't open file" (but file is successfully created) #441

@3DLIRIOUS

Description

@3DLIRIOUS

I am trying to use pymeshlab to slice a mesh with generate_polyline_from_planar_section and exporting the resultant edges in the dxf format.

Sample code using the famous Stanford Bunny as an input model:

ms = pymeshlab.MeshSet()
ms.load_new_mesh('bunny_flat_100mm.ply')
ms.generate_polyline_from_planar_section(planeaxis='Z Axis', planeoffset=30, relativeto='Origin', createsectionsurface=False)
ms.save_current_mesh('slice_030.dxf')

Generates the following exception:

pymeshlab.pmeshlab.PyMeshLabException: Error encountered while exportering file K:/path/to/file/slice_030.dxf:
Can't open file

However, the dxf file is successfully created, so this seems like more of a nuisance than anything. The error also occurs when performing the same steps MeshLab; an error dialog pops up with the same "Can't open file" message, but the file is successfully exported.

Please note that there is also a typo in the error message ("exportering" s/b "exporting").

Thanks for all the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions