void SketchPlugin_ConstraintVertical::initAttributes()
{
- data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::type());
+ data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
}
void SketchPlugin_ConstraintVertical::execute()
if (!sketch())
return thePrevious;
- AISObjectPtr anAIS = thePrevious;
- /// TODO: Horizontal constraint presentation should be put here
+ AISObjectPtr anAIS = SketcherPrs_Factory::verticalConstraint(this, sketch()->coordinatePlane(),
+ thePrevious);
return anAIS;
}