#include "PartSetPlugin_Part.h"
/**\class PartSetPlugin_Duplicate
- * \ingroup DataModel
+ * \ingroup Plugins
* \brief Duplicates the active part (not root). Creates a new "part" feature.
*/
class PartSetPlugin_Duplicate : public PartSetPlugin_Part
return MY_DUPLICATE_KIND;
}
- /// the reference to copy: reference to the attribute
- inline static const std::string& ORIGIN_REF()
- {
- static const std::string MY_DUPLICATE_ID("Origin");
- return MY_DUPLICATE_ID;
- }
/// Makes a new part, copy of active
PartSetPlugin_Duplicate();
+ /// Part must be added only to PartSet
+ PARTSETPLUGIN_EXPORT virtual const std::string& documentToAdd();
+
/// Request for initialization of data model of the feature: adding all attributes
PARTSETPLUGIN_EXPORT virtual void initAttributes();