1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 #include "SketchPlugin_SketchEntity.h"
5 #include <ModelAPI_Session.h>
6 #include <ModelAPI_Validator.h>
8 SketchPlugin_SketchEntity::SketchPlugin_SketchEntity()
9 : SketchPlugin_Feature()
13 void SketchPlugin_SketchEntity::initAttributes()
15 data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId());
17 initDerivedClassAttributes();
19 AttributePtr anAttr = data()->addAttribute(SketchPlugin_SketchEntity::COPY_ID(),
20 ModelAPI_AttributeBoolean::typeId());
21 anAttr->setIsArgument(false);
22 ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(),
23 SketchPlugin_SketchEntity::COPY_ID());