+ std::string aLocationAttribute;
+ std::string aConstraintKind = myConstraint->getKind();
+ if (aConstraintKind == SketchPlugin_ConstraintLength::ID())
+ aLocationAttribute = SketchPlugin_ConstraintLength::LOCATION_TYPE_ID();
+ else if (aConstraintKind == SketchPlugin_ConstraintDistance::ID())
+ aLocationAttribute = SketchPlugin_ConstraintDistance::LOCATION_TYPE_ID();
+ else if (aConstraintKind == SketchPlugin_ConstraintDistanceHorizontal::ID())
+ aLocationAttribute = SketchPlugin_ConstraintDistanceHorizontal::LOCATION_TYPE_ID();
+ else if (aConstraintKind == SketchPlugin_ConstraintDistanceVertical::ID())
+ aLocationAttribute = SketchPlugin_ConstraintDistanceVertical::LOCATION_TYPE_ID();
+
+ AttributeIntegerPtr aLocAttr = std::dynamic_pointer_cast<ModelAPI_AttributeInteger>
+ (myConstraint->data()->attribute(aLocationAttribute));
+ SketcherPrs_Tools::LocationType aLocationType = aLocAttr->isInitialized() ?
+ (SketcherPrs_Tools::LocationType)(aLocAttr->value()) : SketcherPrs_Tools::LOCATION_AUTOMATIC;
+ updateArrows(DimensionAspect(), GetValue(), aTextSize, aLocationType);