#include "PartSetPlugin.h"
#include <ModelAPI_Feature.h>
+/// part reference attribute
+const std::string PART_DOC_REF = "PartDocument";
+
/**\class PartSetPlugin_NewPart
* \ingroup DataModel
* \brief Feature for creation of the new part in PartSet.
*/
-
class PartSetPlugin_NewPart: public ModelAPI_Feature
{
public:
/// Returns the kind of a feature
- PARTSETPLUGIN_EXPORT virtual std::string GetKind() {return "new_part";}
+ PARTSETPLUGIN_EXPORT virtual std::string getKind() {return "new_part";}
+
+ /// Creates a new part document if needed
+ PARTSETPLUGIN_EXPORT virtual void execute();
+
+ /// Request for initialization of data model of the feature: adding all attributes
+ PARTSETPLUGIN_EXPORT virtual void initAttributes();
/// Use plugin manager for features creation
PartSetPlugin_NewPart();