static Handle(Model_Application) TheKeepHandle;
TheKeepHandle = this;
// additional file format supported
- static TCollection_ExtendedString THE_DOC_FORMAT("BinOcaf"/*"BinShaperPart"*/);
+ static TCollection_ExtendedString THE_DOC_FORMAT("BinShaperPart");
static TCollection_ExtendedString THE_FILE_EXT("shaperpart");
Handle(PCDM_RetrievalDriver) aReader =
Handle(PCDM_RetrievalDriver)::DownCast(TheKeepHandle->ReaderFromFormat("BinOcaf"));
static TDF_Label anEmpty;
return anEmpty;
}
+
+void Model_AttributeSelection::reset()
+{
+ ModelAPI_AttributeSelection::reset();
+ myRef.reset();
+}
/// Makes the current local selection becomes all sub-shapes with same base geometry.
MODEL_EXPORT virtual void combineGeometrical();
+ /// Resets attribute to deafult state
+ MODEL_EXPORT virtual void reset();
+
protected:
/// Objects are created for features automatically
MODEL_EXPORT Model_AttributeSelection(TDF_Label& theLabel);
std::shared_ptr<GeomDataAPI_Dir> aDirX = std::dynamic_pointer_cast<GeomDataAPI_Dir>(
data()->attribute(SketchPlugin_Sketch::DIRX_ID()));
aDirX->setValue(aXDir);
- std::shared_ptr<GeomAPI_Dir> aDir = aPlane->direction();
- data()->blockSendAttributeUpdated(aWasBlocked, false);
+ data()->blockSendAttributeUpdated(aWasBlocked, true);
}
}
}