Merge pull request #14080 from edi271/IssueExposeDimExtentInPython02

[TD]Expose DimExtent in Python (2nd attempt, replaces PR #13976)
This commit is contained in:
WandererFan
2024-05-17 09:27:42 -04:00
committed by GitHub

View File

@@ -867,10 +867,15 @@ private:
throw Py::Exception(Part::PartExceptionOCCError, e.GetMessageString());
}
DrawViewDimension* dvde =
DrawDimHelper::makeExtentDim(dvp,
edgeList,
direction);
return Py::None();
if (!dvde){
return Py::None();
}
PyObject* dvdePy = dvde->getPyObject();
return Py::asObject(dvdePy);
}
Py::Object makeDistanceDim(const Py::Tuple& args)