Import: DXF importer, add Python bindings

This commit is contained in:
Furgo
2025-06-12 09:09:59 +02:00
parent 72ca1478e8
commit 78b720fd35
4 changed files with 28 additions and 1 deletions

View File

@@ -403,6 +403,7 @@ private:
dxf_file.setOptions();
dxf_file.DoRead(IgnoreErrors);
pcDoc->recompute();
return dxf_file.getStatsAsPyObject();
}
catch (const Standard_Failure& e) {
throw Py::RuntimeError(e.GetMessageString());
@@ -410,7 +411,6 @@ private:
catch (const Base::Exception& e) {
throw Py::RuntimeError(e.what());
}
return Py::None();
}
Py::Object exportOptions(const Py::Tuple& args)