]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchAPI/SketchAPI_Constraint.cpp
Salome HOME
Set the orientation of the Distance constraint
[modules/shaper.git] / src / SketchAPI / SketchAPI_Constraint.cpp
index d655ff2af0ca8c2a4837ebf5595d5d935521981f..c5a75fef3a135a6dacc4f8feaee90d7a74007f61 100644 (file)
@@ -192,5 +192,10 @@ void SketchAPI_Constraint::dump(ModelHighAPI_Dumper& theDumper) const
   if (aValueAttr && aValueAttr->isInitialized())
     theDumper << ", " << aValueAttr;
 
+  if (aBase->getKind() == SketchPlugin_ConstraintDistance::ID()) {
+    AttributeBooleanPtr isSigned = aBase->boolean(SketchPlugin_ConstraintDistance::SIGNED());
+    theDumper << ", " << isSigned->value();
+  }
+
   theDumper << ")" << std::endl;
 }