+ preparation for external geometry constraints in the sketcher

+ change value of H_Axis and V_Axis constants
+ external Geometry transferred in reverse order from SketchObject to Sketch
+ replace construction property with external property in GeoDef
+ support negative geometry indices in the Sketch class
+ whitespace and variables naming improvements, typo fixes


git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5340 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
logari81
2011-12-24 00:25:34 +00:00
parent 95c6daa631
commit 3c9053a599
8 changed files with 212 additions and 189 deletions

View File

@@ -152,7 +152,7 @@ PyObject* SketchObjectPy::addExternal(PyObject *args)
}
// add the external
if (this->getSketchObjectPtr()->addExternal(Obj,SubName)) {
if (this->getSketchObjectPtr()->addExternal(Obj,SubName) < 0) {
std::stringstream str;
str << "Not able to add external shape element";
PyErr_SetString(PyExc_ValueError, str.str().c_str());