//--------------------------------------------------------------------------------------
PartPtr addPart(const std::shared_ptr<ModelAPI_Document> & thePart)
{
- // TODO(spo): check that thePart is not empty
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(PartSetAPI_Part::ID());
aFeature->execute();
return PartPtr(new PartSetAPI_Part(aFeature));
PartPtr duplicatePart(const std::shared_ptr<ModelAPI_Document> & thePart)
{
- // TODO(spo): check that thePart is not empty
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(PartSetPlugin_Duplicate::ID());
aFeature->execute();
return PartPtr(new PartSetAPI_Part(aFeature));
void removePart(const std::shared_ptr<ModelAPI_Document> & thePart)
{
- // TODO(spo): check that thePart is not empty
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(PartSetPlugin_Remove::ID());
aFeature->execute();
}