CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
PROJECT (NewGEOM)
-SET (NewGeom_Version 1.1.0)
+SET (NewGeom_Version 1.2.0)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeCommon" ${CMAKE_MODULE_PATH})
while (!myResults.empty()) { // remove one by one with messages
std::shared_ptr<ModelAPI_Result> aRes = *(myResults.begin());
+ aRes->setDisabled(aRes, true); // to avoid activation of the Part result
myResults.erase(myResults.begin());
- aECreator->sendDeleted(aRes->document(), aRes->groupName());
- aECreator->sendUpdated(aRes, EVENT_DISP);
}
ModelAPI_Object::erase();
}
assert(aSession.activeDocument().id() == aSession.moduleDocument().id())
# Remove another one document
aSession.startOperation()
-aDoc1 = aSession.document("Part_1")
-aSession.setActiveDocument(aDoc1, False)
-aDoc1.addFeature("Remove")
+aDoc2 = aSession.document("Part_2")
+aSession.setActiveDocument(aDoc2, False)
+aDoc2.addFeature("Remove")
aSession.finishOperation()
assert(aSession.moduleDocument().size("Parts") == 0)
assert(aSession.activeDocument())
<!-- Major module parameters -->
<parameter name="name" value="NewGeom"/>
<parameter name="icon" value="newgeom.png"/>
- <parameter name="version" value="1.1.0"/>
+ <parameter name="version" value="1.2.0"/>
<parameter name="documentation" value="newgeom_help"/>
</section>
<section name="newgeom_help" >
<!-- Major module parameters -->
<parameter name="name" value="NewGeom"/>
<parameter name="icon" value="newgeom.png"/>
- <parameter name="version" value="1.1.0"/>
+ <parameter name="version" value="1.2.0"/>
<parameter name="documentation" value="newgeom_help"/>
</section>
<section name="newgeom_help" >