.. |param_up| image:: images/parameters_up.png
.. |param_down| image:: images/parameters_down.png
+To edit a parameter, double-click on parameter in object browser.
+
**Input fields**:
- **Name** defines parameter name. Name follows the naming rules of the python language for variables;
#include <ModelAPI_ResultConstruction.h>
#include <ModelAPI_AttributeIntArray.h>
#include <ModelAPI_ResultGroup.h>
+#include <ModelAPI_ResultParameter.h>
#include <GeomDataAPI_Point2D.h>
#include <GeomDataAPI_Point.h>
if (aPartFeature.get() && (aPartFeature->getKind() == PartSetPlugin_Part::ID())) {
aPart = std::dynamic_pointer_cast<ModelAPI_ResultPart>(aPartFeature->firstResult());
}
+ if (aObj.get())
+ {
+ if (!aPart.get() && aObj->groupName() == ModelAPI_ResultParameter::group())
+ {
+ QObjectPtrList aObjects = aWorkshop->objectBrowser()->selectedObjects();
+ FeaturePtr aFeature;
+ ResultParameterPtr aParam;
+ foreach(ObjectPtr aObj, aObjects) {
+ aParam = std::dynamic_pointer_cast<ModelAPI_ResultParameter>(aObj);
+ if (aParam.get())
+ break;
+ }
+ if (aParam.get())
+ aFeature = ModelAPI_Feature::feature(aParam);
+
+ if (aFeature.get())
+ editFeature(aFeature);
+ }
+ }
}
if (aPart.get()) { // if this is a part
if (aPart->partDoc() == aMgr->activeDocument()) {