#include <SketchPlugin_Sketch.h>
#include <SketcherPrs_Factory.h>
+//#include <SketcherPrs_Tools.h>
#include <Config_PropManager.h>
void SketchPlugin_ConstraintHorizontal::initAttributes()
{
- data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::type());
+ data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
}
void SketchPlugin_ConstraintHorizontal::execute()
if (!sketch())
return thePrevious;
- AISObjectPtr anAIS = thePrevious;
- /// TODO: Horizontal constraint presentation should be put here
+ AISObjectPtr anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane(),
+ thePrevious);
return anAIS;
}
-