diff --git a/src/bindings/bnd_annotationbase.cpp b/src/bindings/bnd_annotationbase.cpp index a94a729c..9ea9833d 100644 --- a/src/bindings/bnd_annotationbase.cpp +++ b/src/bindings/bnd_annotationbase.cpp @@ -129,7 +129,7 @@ void BND_TextDot::SetTrackedPointer(ON_TextDot* dot, const ON_ModelComponentRefe } /*********/ - +/* BND_Text::BND_Text(ON_Text* text, const ON_ModelComponentReference* compref) { SetTrackedPointer(text, compref); @@ -141,7 +141,7 @@ void BND_Text::SetTrackedPointer(ON_Text* text, const ON_ModelComponentReference m_text = text; BND_AnnotationBase::SetTrackedPointer(text, compref); } - +*/ /*********/ BND_Leader::BND_Leader(ON_Leader* leader, const ON_ModelComponentReference* compref) @@ -636,10 +636,10 @@ void initAnnotationBaseBindings(pybind11::module& m) .def_property("TextIsWrapped", &BND_AnnotationBase::TextIsWrapped, &BND_AnnotationBase::SetTextIsWrapped) .def_property_readonly("Plane", &BND_AnnotationBase::Plane) ; - +/* py::class_(m, "Text") ; - +*/ py::class_(m, "Leader") .def_property_readonly("Points", &BND_Leader::GetPoints) .def("GetTextPoint2d", &BND_Leader::GetTextPoint2d, py::arg("dimstyle"), py::arg("leaderscale")) diff --git a/src/bindings/bnd_annotationbase.h b/src/bindings/bnd_annotationbase.h index d44895f9..267271cb 100644 --- a/src/bindings/bnd_annotationbase.h +++ b/src/bindings/bnd_annotationbase.h @@ -101,6 +101,7 @@ class BND_TextDot : public BND_GeometryBase void SetFontFace(const std::wstring& face) { m_dot->SetFontFace(face.c_str()); } }; +/* class BND_Text : public BND_AnnotationBase { ON_Text* m_text = nullptr; @@ -110,6 +111,8 @@ class BND_Text : public BND_AnnotationBase BND_Text(ON_Text* text, const ON_ModelComponentReference* compref); }; +*/ + class BND_Leader : public BND_AnnotationBase { ON_Leader* m_leader = nullptr; diff --git a/src/bindings/bnd_object.cpp b/src/bindings/bnd_object.cpp index bce001bd..ec630e30 100644 --- a/src/bindings/bnd_object.cpp +++ b/src/bindings/bnd_object.cpp @@ -164,10 +164,13 @@ BND_CommonObject* BND_CommonObject::CreateWrapper(ON_Object* obj, const ON_Model ON_Annotation* annotation = ON_Annotation::Cast(obj); if (annotation) { + /* ON_Text* text = ON_Text::Cast(obj); if (text) return new BND_Text(text, compref); + */ + ON_Leader* leader = ON_Leader::Cast(obj); if(leader) return new BND_Leader(leader, compref);