Positive validator using breaks the test.
data()->addAttribute(CREATION_METHOD_BY_OTHER_PLANE_OPTION(), ModelAPI_AttributeString::typeId());
data()->addAttribute(PLANE(), ModelAPI_AttributeSelection::typeId());
data()->addAttribute(DISTANCE(), ModelAPI_AttributeDouble::typeId());
- //data()->addAttribute(DISTANCE_REVERSE(), ModelAPI_AttributeBoolean::typeId());
+ data()->addAttribute(DISTANCE_REVERSE(), ModelAPI_AttributeBoolean::typeId());
data()->addAttribute(COINCIDENT_POINT(), ModelAPI_AttributeSelection::typeId());
data()->addAttribute(AXIS(), ModelAPI_AttributeSelection::typeId());
data()->addAttribute(ANGLE(), ModelAPI_AttributeDouble::typeId());
}
/// Attribute name for reverse in distance from other case
- /*inline static const std::string& DISTANCE_REVERSE()
+ inline static const std::string& DISTANCE_REVERSE()
{
static const std::string ATTR_DISTANCE_REVERSE_ID("distance_reverse");
return ATTR_DISTANCE_REVERSE_ID;
- }*/
+ }
/// Attribute name for coincident point.
inline static const std::string& COINCIDENT_POINT()
label="Distance"
tooltip="Distance from selected face to plane."
icon="icons/Construction/distance_value.png"
- default="0">
- <validator id="GeomValidators_Positive"/>
- </doublevalue>
- <!--<boolvalue id="distance_reverse"
+ default="10"/>
+ <boolvalue id="distance_reverse"
label="Reverse"
tooltip="Distance from plane."
- default="false"/>-->
+ default="false"/>
</box>
<box id="by_coincident_to_point"
title="By coincident to point"
aPlane.string("by_other_plane_option").setValue("by_distance_from_other")
aPlane.selection("plane").selectSubShape("face", "Part_1/Extrusion_1_1/Generated_Face_3")
aPlane.real("distance").setValue(0)
+aPlacementFt.boolean("distance_reverse").setValue(False)
aSession.finishOperation()
#=========================================================================