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()
return thePrevious;
AISObjectPtr anAIS = thePrevious;
- /// TODO: Horizontal constraint presentation should be put here
+ if (!anAIS) {
+ anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane());
+ }
return anAIS;
}