Skip to content

Commit

Permalink
Attacher: Py: withdraw positionBySupport from Part2DObject
Browse files Browse the repository at this point in the history
to be reintroduced later in AttachableObjet Py interface
  • Loading branch information
DeepSOIC committed May 13, 2016
1 parent 1623782 commit 897a66c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
7 changes: 0 additions & 7 deletions src/Mod/Part/App/Part2DObjectPy.xml
Expand Up @@ -13,12 +13,5 @@
<Author Licence="LGPL" Name="Juergen Riegel" EMail="FreeCAD@juergen-riegel.net" />
<UserDocu>This object represents a 2D Shape in a 3D World</UserDocu>
</Documentation>
<Methode Name="positionBySupport">
<Documentation>
<UserDocu>positionBySupport(): Reposition object based on Support, MapMode and MapPathParameter properties.
Returns True if attachment calculation was successful, false if object is not attached and Placement wasn't updated,
and raises an exception if attachment calculation fails.</UserDocu>
</Documentation>
</Methode>
</PythonExport>
</GenerateModel>
17 changes: 0 additions & 17 deletions src/Mod/Part/App/Part2DObjectPyImp.cpp
Expand Up @@ -16,23 +16,6 @@ std::string Part2DObjectPy::representation(void) const
return std::string("<Part::Part2DObject>");
}

PyObject* Part2DObjectPy::positionBySupport(PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return 0;
bool bAttached = false;
try{
bAttached = this->getPart2DObjectPtr()->positionBySupport();
} catch (Standard_Failure) {
Handle_Standard_Failure e = Standard_Failure::Caught();
PyErr_SetString(PartExceptionOCCError, e->GetMessageString());
return NULL;
} catch (Base::Exception &e) {
PyErr_SetString(Base::BaseExceptionFreeCADError, e.what());
return NULL;
}
return Py::new_reference_to(Py::Boolean(bAttached));
}


PyObject *Part2DObjectPy::getCustomAttributes(const char* /*attr*/) const
Expand Down

0 comments on commit 897a66c

Please sign in to comment.