]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improvement coding style, Documentation, Translation
authorJérôme <jerome.lucas@cesgenslab.fr>
Fri, 30 Oct 2020 16:12:19 +0000 (17:12 +0100)
committerJérôme <jerome.lucas@cesgenslab.fr>
Thu, 3 Dec 2020 13:49:55 +0000 (14:49 +0100)
17 files changed:
src/BuildAPI/BuildAPI_Interpolation.cpp
src/BuildAPI/BuildAPI_Interpolation.h
src/BuildPlugin/BuildPlugin_EvalListener.h
src/BuildPlugin/BuildPlugin_Interpolation.cpp
src/BuildPlugin/BuildPlugin_Interpolation.h
src/BuildPlugin/BuildPlugin_msg_fr.ts
src/BuildPlugin/doc/TUI_interpolationFeature.rst
src/BuildPlugin/doc/examples/interpolationAnalytical.py [new file with mode: 0644]
src/BuildPlugin/doc/images/CreateInterpolationanalitycal.png [new file with mode: 0644]
src/BuildPlugin/doc/images/Interpolation.png
src/BuildPlugin/doc/images/InterpolationAnalitycal.png [new file with mode: 0644]
src/BuildPlugin/doc/images/InterpolationAnalytical.png [new file with mode: 0644]
src/BuildPlugin/doc/images/feature_interpolation_analytical.png [new file with mode: 0644]
src/BuildPlugin/doc/images/feature_interpolation_by_selection.png [new file with mode: 0644]
src/BuildPlugin/doc/interpolationFeature.rst
src/GeomValidators/GeomValidators_MinObjectsSelected.cpp
src/ModelAPI/ModelAPI_Events.h

index f232b81da9c4261d0112e563905ee89ab07902d7..353eff358a0ae2d0067eadd94091ce7aaebd405f 100644 (file)
@@ -39,7 +39,7 @@ BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
 : ModelHighAPI_Interface(theFeature)
 {
   if(initialize()) {
-    fillAttribute(BuildPlugin_Interpolation::CREATION_METHODE_BY_SELECTION_ID(),mycreationmethod);
+    fillAttribute(BuildPlugin_Interpolation::CREATION_METHOD_BY_SELECTION_ID(),mycreationmethod);
     setUseTangents(true);
     setTangents(theStartTangent, theEndTangent);
     setClosed(theIsClosed);
@@ -49,14 +49,15 @@ BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
 }
 
 //==================================================================================================
-BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
-  const std::list<ModelHighAPI_Selection>& theBaseObjects,
-  const bool theIsClosed,
-  const bool theIsToReorder)
+BuildAPI_Interpolation::BuildAPI_Interpolation(
+                                  const FeaturePtr& theFeature,
+                                  const std::list<ModelHighAPI_Selection>& theBaseObjects,
+                                  const bool theIsClosed,
+                                  const bool theIsToReorder)
   : ModelHighAPI_Interface(theFeature)
 {
   if (initialize()) {
-    fillAttribute(BuildPlugin_Interpolation::CREATION_METHODE_BY_SELECTION_ID(),mycreationmethod);
+    fillAttribute(BuildPlugin_Interpolation::CREATION_METHOD_BY_SELECTION_ID(),mycreationmethod);
     setClosed(theIsClosed);
     setReorder(theIsToReorder);
     setUseTangents(false);
@@ -65,16 +66,16 @@ BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
 }
 
 BuildAPI_Interpolation::BuildAPI_Interpolation(const FeaturePtr& theFeature,
-                                    const std::string & theXTexpression,
-                                    const std::string & theYTexpression,
-                                    const std::string & theZTexpression,
-                                    const ModelHighAPI_Double& theMinT,
-                                    const ModelHighAPI_Double& theMaxT,
-                                    const ModelHighAPI_Integer& theNbStep) 
+                                               const std::string & theXTexpression,
+                                               const std::string & theYTexpression,
+                                               const std::string & theZTexpression,
+                                               const ModelHighAPI_Double& theMinT,
+                                               const ModelHighAPI_Double& theMaxT,
+                                               const ModelHighAPI_Integer& theNbStep)
 : ModelHighAPI_Interface(theFeature)
 {
   if (initialize()) {
-    fillAttribute(BuildPlugin_Interpolation::CREATION_METHODE_ANALYTICAL_ID(),mycreationmethod);
+    fillAttribute(BuildPlugin_Interpolation::CREATION_METHOD_ANALYTICAL_ID(),mycreationmethod);
     fillAttribute(theXTexpression, myxt);
     fillAttribute(theYTexpression, myyt);
     fillAttribute(theZTexpression, myzt);
@@ -136,8 +137,8 @@ void BuildAPI_Interpolation::dump(ModelHighAPI_Dumper& theDumper) const
   FeaturePtr aBase = feature();
   std::string aPartName = theDumper.name(aBase->document());
 
-  if( aBase->string(BuildPlugin_Interpolation::CREATION_METHODE_ID())->value() == 
-            BuildPlugin_Interpolation::CREATION_METHODE_BY_SELECTION_ID() )
+  if( aBase->string(BuildPlugin_Interpolation::CREATION_METHOD_ID())->value() ==
+            BuildPlugin_Interpolation::CREATION_METHOD_BY_SELECTION_ID() )
   {
     AttributeSelectionListPtr anAttrBaseObjects =
       aBase->selectionList(BuildPlugin_Interpolation::BASE_OBJECTS_ID());
@@ -159,7 +160,7 @@ void BuildAPI_Interpolation::dump(ModelHighAPI_Dumper& theDumper) const
     theDumper << closed() << ", " << reorder() << ")" << std::endl;
   }else{
 
-    theDumper << aBase << " = model.addInterpolation(" << aPartName ; 
+    theDumper << aBase << " = model.addInterpolation(" << aPartName ;
     AttributeStringPtr XtAttr = xt();
     std::string xt = XtAttr->value();
     AttributeStringPtr YtAttr = yt();
index 732a57a90dbabae70b95444a633e2d77054b0ee2..ebde245b377483304b4a5feaefa1bff2c0e2ea12 100644 (file)
@@ -96,7 +96,7 @@ public:
               ModelAPI_AttributeDouble, /** zt expression*/,
               numstep, BuildPlugin_Interpolation::NUMSTEP_ID(),
               ModelAPI_AttributeInteger, /** zt expression*/,
-              creationmethod, BuildPlugin_Interpolation::CREATION_METHODE_ID(),
+              creationmethod, BuildPlugin_Interpolation::CREATION_METHOD_ID(),
               ModelAPI_AttributeString, /** zt expression*/)
 
   /// Modify base attribute of the feature.
index 3951559ebfc7c10106badd86a91a65123143e99e..5ace4821fcc6d748f816bccb289e3d1bfe25f601 100644 (file)
@@ -27,6 +27,7 @@ class ModelAPI_Attribute;
 class ModelAPI_Document;
 class ModelAPI_Feature;
 class ModelAPI_ResultParameter;
+
 class InitializationPlugin_PyInterp;
 
 /**
index 433a92d02b6decfab7979e6a9e7aa8437aa6703f..a515c455214b98730c5c3cc23968e4e179edd613 100644 (file)
@@ -72,10 +72,9 @@ void BuildPlugin_Interpolation::initAttributes()
   data()->addAttribute(TANGENT_START_ID(), ModelAPI_AttributeSelection::typeId());
   data()->addAttribute(TANGENT_END_ID(), ModelAPI_AttributeSelection::typeId());
 
-  data()->addAttribute(CREATION_METHODE_ID(), ModelAPI_AttributeString::typeId());
-  data()->addAttribute(CREATION_METHODE_BY_SELECTION_ID(), ModelAPI_AttributeString::typeId());
-  data()->addAttribute(CREATION_METHODE_ANALYTICAL_ID(), ModelAPI_AttributeString::typeId());
-  data()->addAttribute(CREATION_METHODE_ANALYTICAL_ID(), ModelAPI_AttributeString::typeId());
+  data()->addAttribute(CREATION_METHOD_ID(), ModelAPI_AttributeString::typeId());
+  data()->addAttribute(CREATION_METHOD_BY_SELECTION_ID(), ModelAPI_AttributeString::typeId());
+  data()->addAttribute(CREATION_METHOD_ANALYTICAL_ID(), ModelAPI_AttributeString::typeId());
   data()->addAttribute(EXPRESSION_ERROR_ID(), ModelAPI_AttributeString::typeId());
   data()->addAttribute(VARIABLE_ID(), ModelAPI_AttributeString::typeId());
   data()->addAttribute(VALUE_ID(), ModelAPI_AttributeTables::typeId());
@@ -90,9 +89,9 @@ void BuildPlugin_Interpolation::initAttributes()
   data()->addAttribute(NUMSTEP_ID(), ModelAPI_AttributeInteger::typeId());
 
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(),
-                                                 CREATION_METHODE_ANALYTICAL_ID());
+                                                 CREATION_METHOD_ANALYTICAL_ID());
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(),
-                                                 CREATION_METHODE_BY_SELECTION_ID());
+                                                 CREATION_METHOD_BY_SELECTION_ID());
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), VARIABLE_ID());
   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), VALUE_ID());
   data()->addAttribute(ARGUMENTS_ID(), ModelAPI_AttributeRefList::typeId());
@@ -123,13 +122,13 @@ void BuildPlugin_Interpolation::attributeChanged(const std::string& theID)
     && string(XT_ID())->value() !=""
     && string(YT_ID())->value() !=""
     && string(ZT_ID())->value() !=""
-    && string(CREATION_METHODE_ID())->value() == CREATION_METHODE_ANALYTICAL_ID()
+    && string(CREATION_METHOD_ID())->value() == CREATION_METHOD_ANALYTICAL_ID()
     ){
-    updateCoods();
+    updateCoordinates();
   }
 }
 
-void BuildPlugin_Interpolation::updateCoods()
+void BuildPlugin_Interpolation::updateCoordinates()
 {
     std::wstring exp;
     double aMint = real(MINT_ID())->value();
@@ -140,13 +139,13 @@ void BuildPlugin_Interpolation::updateCoods()
       setError("The minimum value of the parameter must be less than maximum value !!!" );
     }
 
-    double scale = (aMaxt - aMint )/aNbrStep;
+    double aScale = (aMaxt - aMint )/aNbrStep;
     string(VARIABLE_ID())->setValue("t");
 
     tables(VALUE_ID())->setSize(aNbrStep+1,4);
     for( int step = 0; step <= aNbrStep; step++ ){
       ModelAPI_AttributeTables::Value aVal;
-      aVal.myDouble = step * scale + aMint;
+      aVal.myDouble = step * aScale + aMint;
       tables(VALUE_ID())->setValue(aVal,step,0);
     }
 
@@ -180,7 +179,7 @@ static GeomDirPtr selectionToDir(const AttributeSelectionPtr& theSelection)
 //=================================================================================================
 void BuildPlugin_Interpolation::execute()
 {
-  if( string(CREATION_METHODE_ID())->value() == CREATION_METHODE_BY_SELECTION_ID() )
+  if( string(CREATION_METHOD_ID())->value() == CREATION_METHOD_BY_SELECTION_ID() )
   {
     // Get closed flag value
     bool isClosed = boolean(CLOSED_ID())->value();
@@ -250,39 +249,39 @@ void BuildPlugin_Interpolation::execute()
       return false;
 
     if (!outErrorMessage.empty()){
-      setError("Error: Python interpreter " );
+      setError("Error: Python interpreter " );//+ outErrorMessage);
       return false;
     }
-    AttributeTablesPtr table = tables( VALUE_ID() );
-    std::list<std::vector<double> > aCoodPoints;
-    for( int step = 0; step < table->rows() ; step++ ){
-      std::vector<double> coodPoint;
+    AttributeTablesPtr aTable = tables( VALUE_ID() );
+    std::list<std::vector<double> > aCoordPoints;
+    for( int step = 0; step < aTable->rows() ; step++ ){
+      std::vector<double> aCoordPoint;
       ModelAPI_AttributeTables::Value value;
       //x
-      value = table->value(step, 1);
-      coodPoint.push_back( value.myDouble );
+      value = aTable->value(step, 1);
+      aCoordPoint.push_back( value.myDouble );
       //y
-      value = table->value(step, 2);
-      coodPoint.push_back( value.myDouble );
-      //Z
-      value = table->value(step, 3);
-      coodPoint.push_back( value.myDouble );
+      value = aTable->value(step, 2);
+      aCoordPoint.push_back( value.myDouble );
+      //
+      value = aTable->value(step, 3);
+      aCoordPoint.push_back( value.myDouble );
 
-      aCoodPoints.push_back(coodPoint);
+      aCoordPoints.push_back(aCoordPoint);
     }
 
     std::list<GeomPointPtr> aPoints;
     std::list<GeomVertexPtr> aVertices;
-    std::list<std::vector<double> >::const_iterator aItCoodPoints = aCoodPoints.begin();
+    std::list<std::vector<double> >::const_iterator anItCoordPoints = aCoordPoints.begin();
 
-    for( ; aItCoodPoints != aCoodPoints.end(); ++aItCoodPoints ){
+    for( ; anItCoordPoints != aCoordPoints.end(); ++anItCoordPoints ){
 
-      GeomVertexPtr vertex =
-          GeomAlgoAPI_PointBuilder::vertex( (*aItCoodPoints)[0],
-                                            (*aItCoodPoints)[1],
-                                            (*aItCoodPoints)[2]);
-      aPoints.push_back (vertex->point());
-      aVertices.push_back (vertex);
+      GeomVertexPtr aVertex =
+          GeomAlgoAPI_PointBuilder::vertex( (*anItCoordPoints)[0],
+                                            (*anItCoordPoints)[1],
+                                            (*anItCoordPoints)[2]);
+      aPoints.push_back (aVertex->point());
+      aVertices.push_back (aVertex);
     }
 
     // Create curve from points
@@ -302,11 +301,8 @@ void BuildPlugin_Interpolation::execute()
       aResultBody->generated(anExp.current(), aVertexName);
       aVertexIndex++;
     }
-
     setResult(aResultBody);
-
   }
-
 }
 
 void  BuildPlugin_Interpolation::evaluate(std::string& theError)
index e921ae5ac373594804adb8b9ef02e721c7c6e362..6697162bb6d940bf3a5aaafe50a9e7c8d62176bc 100644 (file)
@@ -40,23 +40,23 @@ public:
     return MY_ID;
   }
   /// Attribute name of creation method.
-  inline static const std::string& CREATION_METHODE_ID()
+  inline static const std::string& CREATION_METHOD_ID()
   {
-    static const std::string MY_CREATION_METHODE_ID("interpolation_method");
-    return MY_CREATION_METHODE_ID;
+    static const std::string MY_CREATION_METHOD_ID("interpolation_method");
+    return MY_CREATION_METHOD_ID;
   }
   /// Attribute name of creation method by selection
-  inline static const std::string& CREATION_METHODE_BY_SELECTION_ID()
+  inline static const std::string& CREATION_METHOD_BY_SELECTION_ID()
   {
-    static const std::string MY_CREATION_METHODE_BY_SELECTION_ID("by_selection");
-    return MY_CREATION_METHODE_BY_SELECTION_ID;
+    static const std::string MY_CREATION_METHOD_BY_SELECTION_ID("by_selection");
+    return MY_CREATION_METHOD_BY_SELECTION_ID;
   }
 
   /// Attribute name of creation method analytical
-  inline static const std::string& CREATION_METHODE_ANALYTICAL_ID()
+  inline static const std::string& CREATION_METHOD_ANALYTICAL_ID()
   {
-    static const std::string MY_CREATION_METHODE_ANALYTICAL_ID("analytical");
-    return MY_CREATION_METHODE_ANALYTICAL_ID;
+    static const std::string MY_CREATION_METHOD_ANALYTICAL_ID("analytical");
+    return MY_CREATION_METHOD_ANALYTICAL_ID;
   }
 
   /// Attribute name of base objects.
@@ -189,12 +189,12 @@ public:
   BUILDPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID);
 
   protected:
-  /// Evaluates theExpression and returns its value.
+  /// Evaluates the expression x(t), y(t),z(t) in value table.
   void evaluate(std::string& theError);
 
-  void updateCoods();
+  //Update coordinates x,y,z
+  void updateCoordinates();
 
-  std::list<double> aCoodPoints[3];
   std::string outErrorMessage;
 
 };
index e6c433fbb2984c34a05b587ba0f9c0eb48a50284..9b01bdfddd68c3237093285bc9fd8f20fef080f5 100644 (file)
       <translation>Tangentes</translation>
     </message>
   </context>
-
+  <context>
+  <name>Interpolation:analytical</name>
+  <message>
+    <source>Curves parameters</source>
+    <translation>Paramètres de la courbe</translation>
+  </message>
+  <message>
+    <source>X(t) equation</source>
+    <translation>Équation X(t)</translation>
+  </message>
+  <message>
+    <source>Y(t) equation</source>
+    <translation>Équation Y(t)</translation>
+  </message>
+  <message>
+    <source>Z(t) equation</source>
+    <translation>Équation Z(t)</translation>
+  </message>
+  <message>
+    <source>Number of steps</source>
+    <translation>Nombre de pas</translation>
+  </message>
+  </context>
   <context>
     <name>Polyline:base_objects</name>
     <message>
index cfcaf78bd6cf2436d556a98c2c027918ae3d42cc..900bc9ad4d028dd2be5a81eb884b36413a3f482d 100644 (file)
@@ -10,3 +10,14 @@ Create Interpolation
 
 :download:`Download this script <examples/interpolation.py>` 
    
+  .. _tui_create_interpolation_analytical:
+
+Create Interpolation analytical
+===============================
+
+.. literalinclude:: examples/interpolationAnalytical.py
+    :linenos:
+    :language: python
+
+:download:`Download this script <examples/interpolationAnalytical.py>` 
+   
\ No newline at end of file
diff --git a/src/BuildPlugin/doc/examples/interpolationAnalytical.py b/src/BuildPlugin/doc/examples/interpolationAnalytical.py
new file mode 100644 (file)
index 0000000..f39fe81
--- /dev/null
@@ -0,0 +1,9 @@
+from salome.shaper import model
+
+model.begin()
+partSet = model.moduleDocument()
+Part_1 = model.addPart(partSet)
+Part_1_doc = Part_1.document()
+Interpolation_1 = model.addInterpolation(Part_1_doc, "5*sin(t)","5*cos(t)","t*0.2", 0, 25, 100)
+model.do()
+model.end()
diff --git a/src/BuildPlugin/doc/images/CreateInterpolationanalitycal.png b/src/BuildPlugin/doc/images/CreateInterpolationanalitycal.png
new file mode 100644 (file)
index 0000000..2daa945
Binary files /dev/null and b/src/BuildPlugin/doc/images/CreateInterpolationanalitycal.png differ
index 14967cf1f6b404c3ad91a8b446f90c7a6253bc62..06631c70ae7e115be89e45b0fe1d01bb3a00250d 100644 (file)
Binary files a/src/BuildPlugin/doc/images/Interpolation.png and b/src/BuildPlugin/doc/images/Interpolation.png differ
diff --git a/src/BuildPlugin/doc/images/InterpolationAnalitycal.png b/src/BuildPlugin/doc/images/InterpolationAnalitycal.png
new file mode 100644 (file)
index 0000000..e56e54f
Binary files /dev/null and b/src/BuildPlugin/doc/images/InterpolationAnalitycal.png differ
diff --git a/src/BuildPlugin/doc/images/InterpolationAnalytical.png b/src/BuildPlugin/doc/images/InterpolationAnalytical.png
new file mode 100644 (file)
index 0000000..c26a484
Binary files /dev/null and b/src/BuildPlugin/doc/images/InterpolationAnalytical.png differ
diff --git a/src/BuildPlugin/doc/images/feature_interpolation_analytical.png b/src/BuildPlugin/doc/images/feature_interpolation_analytical.png
new file mode 100644 (file)
index 0000000..a47790f
Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_interpolation_analytical.png differ
diff --git a/src/BuildPlugin/doc/images/feature_interpolation_by_selection.png b/src/BuildPlugin/doc/images/feature_interpolation_by_selection.png
new file mode 100644 (file)
index 0000000..e5c5374
Binary files /dev/null and b/src/BuildPlugin/doc/images/feature_interpolation_by_selection.png differ
index 2da696243c2e9bb93d8913a1961882ce8f1dd9f1..62b600381d97d6c4f554eef1e51a082ed41c4b35 100644 (file)
@@ -3,7 +3,7 @@
 Interpolation
 =============
 
-Interpolation feature creates a curve (edge) using vertices already existing in other objects.
+Interpolation feature creates an interpolated curve (edge) based on existing points/vertices or based on analytical mathematical expression.
 
 To create an interpolation in the active part:
 
@@ -12,6 +12,29 @@ To create an interpolation in the active part:
 
 The following property panel will be opened:
 
+.. figure:: images/Interpolation.png
+  :align: center
+
+  Create an interpolation
+
+There are two creation modes of an interpolation:
+
+.. figure:: images/feature_interpolation_by_selection.png   
+   :align: left
+   :height: 24px
+
+Interpolation by selection
+
+.. figure:: images/feature_interpolation_analytical.png   
+   :align: left
+   :height: 24px
+
+interpolation analytical
+
+Interpolation by selection
+""""""""""""""""""""""""""
+The  property panel is shown below.
+
 .. figure:: images/Interpolation.png
   :align: center
 
@@ -60,3 +83,55 @@ The result of the operation will be a curve created from the selected shapes:
   Result of the operation.
 
 **See Also** a sample TUI Script of :ref:`tui_create_interpolation` operation.
+
+Interpolation analytical
+""""""""""""""""""""""""
+
+The  property panel is shown below.
+
+.. figure:: images/InterpolationAnalitycal.png
+  :align: center
+
+  Create an interpolation analytical
+
+Select one or several vertices or points in the viewer.
+
+- **Curves parameters** panel allows to define the mathematical expression for creating the interpolated curve.
+   - **X(t) equation** define the expression of X with t variable.
+   - **Y(t) equation** define the expression of Y with t variable.
+   - **Z(t) equation** define the expression of Z with t variable.
+
+- **Min t** define the minimun of t.
+
+- **Max t** define the maximum of t.
+
+- **Number of steps** define the number of steps.
+
+**Apply** button creates an interpolation.
+
+**Cancel** button cancels the operation. 
+
+**TUI Commands**:
+
+.. py:function:: model.addInterpolation(Part_doc, xt, yt, zt, mint, maxt, nbSteps)
+
+    :param part: The current part object.
+    :param xt: Expression of x.
+    :param yt: Expression of y.
+    :param zt: Expression of z.
+    :param mint: Minimum value of t
+    :param maxt: Maximum value of t.
+    :param nbSteps: Number of steps. 
+    :return: Result object.
+
+Result
+""""""
+
+The result of the operation will be a curve created from analytical expressions for x,y and z as functions of variable t:
+
+.. figure:: images/CreateInterpolationanalitycal.png
+  :align: center
+
+  Result of the operation.
+
+**See Also** a sample TUI Script of :ref:`tui_create_interpolation_analytical` operation.
\ No newline at end of file
index 606a788718318cc8656441b0c9c4408cb34cd59b..1d96ff11508185e982be928469128a5e43e05432 100644 (file)
@@ -42,9 +42,9 @@ bool GeomValidators_MinObjectsSelected::isValid(const std::shared_ptr<ModelAPI_F
   if( theFeature->name().substr(0, 6) == L"Interp" )
   {
     AttributeStringPtr anAttr =theFeature->string(
-                                        BuildPlugin_Interpolation::CREATION_METHODE_ID());
+                                        BuildPlugin_Interpolation::CREATION_METHOD_ID());
     if ( anAttr->isInitialized() )
-      if( anAttr->value() == BuildPlugin_Interpolation::CREATION_METHODE_ANALYTICAL_ID())
+      if( anAttr->value() == BuildPlugin_Interpolation::CREATION_METHOD_ANALYTICAL_ID())
         return true; 
   } 
 
index 11a6aecc9724380c1513ba07571bd8c99ca340e3..dffa73a8d60e6a3361d2fbd90901aac6b288d0c7 100644 (file)
@@ -365,7 +365,7 @@ class ModelAPI_BuildEvalMessage : public Events_Message
   /// Static. Returns EventID of the message.
   MODELAPI_EXPORT static Events_ID& eventId()
   {
-    static const char * MY_BUILD_EVALUATION_EVENT_ID("ParameterEvaluationRequest");
+    static const char * MY_BUILD_EVALUATION_EVENT_ID("BuildEvaluationRequest");
     static Events_ID anId = Events_Loop::eventByName(MY_BUILD_EVALUATION_EVENT_ID);
     return anId;
   }