]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
CPP API for FeaturesPlugin_Group
authordbv <dbv@opencascade.com>
Wed, 8 Jun 2016 15:01:42 +0000 (18:01 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:06 +0000 (14:41 +0300)
14 files changed:
src/FeaturesAPI/CMakeLists.txt
src/FeaturesAPI/FeaturesAPI.i
src/FeaturesAPI/FeaturesAPI_Boolean.cpp
src/FeaturesAPI/FeaturesAPI_Boolean.h
src/FeaturesAPI/FeaturesAPI_Group.cpp [new file with mode: 0644]
src/FeaturesAPI/FeaturesAPI_Group.h [new file with mode: 0644]
src/FeaturesAPI/FeaturesAPI_Placement.cpp
src/FeaturesAPI/FeaturesAPI_Placement.h
src/FeaturesAPI/FeaturesAPI_Rotation.cpp
src/FeaturesAPI/FeaturesAPI_Rotation.h
src/FeaturesAPI/FeaturesAPI_Translation.cpp
src/FeaturesAPI/FeaturesAPI_Translation.h
src/FeaturesAPI/FeaturesAPI_swig.h
src/PythonAPI/Test/TestFeatures.py

index 4daaa9f5f59ef0dc6e50df5281c67125b0a8b565..1bf3b9f6c74460608b057fd92006ed91352623f9 100644 (file)
@@ -5,6 +5,7 @@ INCLUDE(Common)
 SET(PROJECT_HEADERS
   FeaturesAPI.h
   FeaturesAPI_Boolean.h
+  FeaturesAPI_Group.h
   FeaturesAPI_Placement.h
   FeaturesAPI_Rotation.h
   FeaturesAPI_Translation.h
@@ -12,6 +13,7 @@ SET(PROJECT_HEADERS
 
 SET(PROJECT_SOURCES
   FeaturesAPI_Boolean.cpp
+  FeaturesAPI_Group.cpp
   FeaturesAPI_Placement.cpp
   FeaturesAPI_Rotation.cpp
   FeaturesAPI_Translation.cpp
index 226d74492ce87e3e9d5c443f69128ce89cd14f98..52c73c7309a5b0d781319534bf4f371148396aa5 100644 (file)
 
 // shared pointers
 %shared_ptr(FeaturesAPI_Boolean)
+%shared_ptr(FeaturesAPI_Group)
 %shared_ptr(FeaturesAPI_Placement)
 %shared_ptr(FeaturesAPI_Rotation)
 %shared_ptr(FeaturesAPI_Translation)
 
 // all supported interfaces
 %include "FeaturesAPI_Boolean.h"
+%include "FeaturesAPI_Group.h"
 %include "FeaturesAPI_Placement.h"
 %include "FeaturesAPI_Rotation.h"
 %include "FeaturesAPI_Translation.h"
index 83e65fe47ff2551cc9f7d468bce3f9b730c8d4fd..6f68890cfaab05cf5a2222c0f0b734cc0c46477f 100644 (file)
 #include <ModelHighAPI_Tools.h>
 
 //==================================================================================================
-FeaturesAPI_Boolean::FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature> & theFeature)
+FeaturesAPI_Boolean::FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature>& theFeature)
 : ModelHighAPI_Interface(theFeature)
 {
   initialize();
 }
 
 //==================================================================================================
-FeaturesAPI_Boolean::FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+FeaturesAPI_Boolean::FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                          const ModelHighAPI_Integer& theBoolType,
                                          const std::list<ModelHighAPI_Selection>& theMainObjects,
                                          const std::list<ModelHighAPI_Selection>& theToolObjects)
@@ -63,7 +63,7 @@ void FeaturesAPI_Boolean::setToolObjects(const std::list<ModelHighAPI_Selection>
 
 // TODO(spo): make add* as static functions of the class
 //==================================================================================================
-BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document>& thePart,
                   const std::list<ModelHighAPI_Selection>& theMainObjects,
                   const std::list<ModelHighAPI_Selection>& theToolObjects)
 {
@@ -75,7 +75,7 @@ BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document> & thePart,
 }
 
 //==================================================================================================
-BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
                    const std::list<ModelHighAPI_Selection>& theObjects)
 {
   std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(FeaturesAPI_Boolean::ID());
@@ -87,7 +87,7 @@ BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
 }
 
 //==================================================================================================
-BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
                    const std::list<ModelHighAPI_Selection>& theMainObjects,
                    const std::list<ModelHighAPI_Selection>& theToolObjects)
 {
@@ -99,7 +99,7 @@ BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
 }
 
 //==================================================================================================
-BooleanPtr addCommon(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addCommon(const std::shared_ptr<ModelAPI_Document>& thePart,
                      const std::list<ModelHighAPI_Selection>& theMainObjects,
                      const std::list<ModelHighAPI_Selection>& theToolObjects)
 {
index bcbd40f2581cb430f3c55e3d22c7acf54faf5a1b..6e8833a35a864a9be2b85593759e9bb97d4447b6 100644 (file)
@@ -20,16 +20,16 @@ class ModelHighAPI_Selection;
 /// \class FeaturesAPI_Boolean
 /// \ingroup CPPHighAPI
 /// \brief Interface for Boolean feature.
-class FeaturesAPI_Boolean : public ModelHighAPI_Interface
+class FeaturesAPI_Boolean: public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values.
   FEATURESAPI_EXPORT
-  explicit FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  explicit FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
   /// Constructor with values.
   FEATURESAPI_EXPORT
-  FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+  FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                       const ModelHighAPI_Integer& theBoolType,
                       const std::list<ModelHighAPI_Selection>& theMainObjects,
                       const std::list<ModelHighAPI_Selection>& theToolObjects);
@@ -62,27 +62,27 @@ typedef std::shared_ptr<FeaturesAPI_Boolean> BooleanPtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Cut feature.
 FEATURESAPI_EXPORT
-BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document>& thePart,
                   const std::list<ModelHighAPI_Selection>& theMainObjects,
                   const std::list<ModelHighAPI_Selection>& theToolObjects);
 
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Fuse feature.
 FEATURESAPI_EXPORT
-BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
                    const std::list<ModelHighAPI_Selection>& theObjects);
 
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Fuse feature.
 FEATURESAPI_EXPORT
-BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
                    const std::list<ModelHighAPI_Selection>& theMainObjects,
                    const std::list<ModelHighAPI_Selection>& theToolObjects);
 
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Common feature.
 FEATURESAPI_EXPORT
-BooleanPtr addCommon(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addCommon(const std::shared_ptr<ModelAPI_Document>& thePart,
                      const std::list<ModelHighAPI_Selection>& theMainObjects,
                      const std::list<ModelHighAPI_Selection>& theToolObjects);
 
diff --git a/src/FeaturesAPI/FeaturesAPI_Group.cpp b/src/FeaturesAPI/FeaturesAPI_Group.cpp
new file mode 100644 (file)
index 0000000..f942c09
--- /dev/null
@@ -0,0 +1,51 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
+// File:        FeaturesAPI_Group.cpp
+// Created:     07 June 2016
+// Author:      Dmitry Bobylev
+
+#include "FeaturesAPI_Group.h"
+
+#include <ModelHighAPI_Integer.h>
+#include <ModelHighAPI_Selection.h>
+#include <ModelHighAPI_Tools.h>
+
+//==================================================================================================
+FeaturesAPI_Group::FeaturesAPI_Group(const std::shared_ptr<ModelAPI_Feature>& theFeature)
+: ModelHighAPI_Interface(theFeature)
+{
+  initialize();
+}
+
+//==================================================================================================
+FeaturesAPI_Group::FeaturesAPI_Group(const std::shared_ptr<ModelAPI_Feature>& theFeature,
+                                     const std::list<ModelHighAPI_Selection>& theGroupList)
+: ModelHighAPI_Interface(theFeature)
+{
+  if(initialize()) {
+    setGroupList(theGroupList);
+  }
+}
+
+//==================================================================================================
+FeaturesAPI_Group::~FeaturesAPI_Group()
+{
+
+}
+
+//==================================================================================================
+void FeaturesAPI_Group::setGroupList(const std::list<ModelHighAPI_Selection>& theGroupList)
+{
+  fillAttribute(theGroupList, mygroupList);
+
+  execute();
+}
+
+// TODO(spo): make add* as static functions of the class
+//==================================================================================================
+GroupPtr addGroup(const std::shared_ptr<ModelAPI_Document>& thePart,
+                  const std::list<ModelHighAPI_Selection>& theGroupList)
+{
+  std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(FeaturesAPI_Group::ID());
+  return GroupPtr(new FeaturesAPI_Group(aFeature, theGroupList));
+}
diff --git a/src/FeaturesAPI/FeaturesAPI_Group.h b/src/FeaturesAPI/FeaturesAPI_Group.h
new file mode 100644 (file)
index 0000000..08c2e5b
--- /dev/null
@@ -0,0 +1,55 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
+// File:        FeaturesAPI_Group.h
+// Created:     07 June 2016
+// Author:      Dmitry Bobylev
+
+#ifndef FeaturesAPI_Group_H_
+#define FeaturesAPI_Group_H_
+
+#include "FeaturesAPI.h"
+
+#include <FeaturesPlugin_Group.h>
+
+#include <ModelHighAPI_Interface.h>
+#include <ModelHighAPI_Macro.h>
+
+class ModelHighAPI_Selection;
+
+/// \class FeaturesAPI_Group
+/// \ingroup CPPHighAPI
+/// \brief Interface for Group feature.
+class FeaturesAPI_Group: public ModelHighAPI_Interface
+{
+public:
+  /// Constructor without values.
+  FEATURESAPI_EXPORT
+  explicit FeaturesAPI_Group(const std::shared_ptr<ModelAPI_Feature>& theFeature);
+
+  /// Constructor with values.
+  FEATURESAPI_EXPORT
+  FeaturesAPI_Group(const std::shared_ptr<ModelAPI_Feature>& theFeature,
+                    const std::list<ModelHighAPI_Selection>& theGroupList);
+
+  /// Destructor.
+  FEATURESAPI_EXPORT
+  virtual ~FeaturesAPI_Group();
+
+  INTERFACE_1(FeaturesPlugin_Group::ID(),
+              groupList, FeaturesPlugin_Group::LIST_ID()(), ModelAPI_AttributeSelectionList, /** Group list*/)
+
+  /// Set main objects.
+  FEATURESAPI_EXPORT
+  void setGroupList(const std::list<ModelHighAPI_Selection>& theGroupList);
+};
+
+/// Pointer on Group object.
+typedef std::shared_ptr<FeaturesAPI_Group> GroupPtr;
+
+/// \ingroup CPPHighAPI
+/// \brief Create Group feature.
+FEATURESAPI_EXPORT
+GroupPtr addGroup(const std::shared_ptr<ModelAPI_Document>& thePart,
+                  const std::list<ModelHighAPI_Selection>& theGroupList);
+
+#endif // FeaturesAPI_Group_H_
index 4d087061590cff9d46651bce2d4ce19cc1c90601..e071487f189c3157f63fb977dd05fec608cf82c8 100644 (file)
@@ -9,14 +9,14 @@
 #include <ModelHighAPI_Tools.h>
 
 //==================================================================================================
-FeaturesAPI_Placement::FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature> & theFeature)
+FeaturesAPI_Placement::FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature>& theFeature)
 : ModelHighAPI_Interface(theFeature)
 {
   initialize();
 }
 
 //==================================================================================================
-FeaturesAPI_Placement::FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+FeaturesAPI_Placement::FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                              const std::list<ModelHighAPI_Selection>& theObjects,
                                              const ModelHighAPI_Selection& theStartShape,
                                              const ModelHighAPI_Selection& theEndShape,
@@ -81,7 +81,7 @@ void FeaturesAPI_Placement::setCentering(const bool theCentering)
 
 // TODO(spo): make add* as static functions of the class
 //==================================================================================================
-PlacementPtr addPlacement(const std::shared_ptr<ModelAPI_Document> & thePart,
+PlacementPtr addPlacement(const std::shared_ptr<ModelAPI_Document>& thePart,
                           const std::list<ModelHighAPI_Selection>& theObjects,
                           const ModelHighAPI_Selection& theStartShape,
                           const ModelHighAPI_Selection& theEndShape,
index 691fd509b7b283150d0ab72a479bd8687a93b91b..14378f06870e61577352f23e5e4bdc07f9d4fa34 100644 (file)
@@ -19,16 +19,16 @@ class ModelHighAPI_Selection;
 /// \class FeaturesAPI_Placement
 /// \ingroup CPPHighAPI
 /// \brief Interface for Placement feature.
-class FeaturesAPI_Placement : public ModelHighAPI_Interface
+class FeaturesAPI_Placement: public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values.
   FEATURESAPI_EXPORT
-  explicit FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  explicit FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
   /// Constructor with values.
   FEATURESAPI_EXPORT
-  FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+  FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                         const std::list<ModelHighAPI_Selection>& theObjects,
                         const ModelHighAPI_Selection& theStartShape,
                         const ModelHighAPI_Selection& theEndShape,
@@ -73,7 +73,7 @@ typedef std::shared_ptr<FeaturesAPI_Placement> PlacementPtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Placement feature.
 FEATURESAPI_EXPORT
-PlacementPtr addPlacement(const std::shared_ptr<ModelAPI_Document> & thePart,
+PlacementPtr addPlacement(const std::shared_ptr<ModelAPI_Document>& thePart,
                           const std::list<ModelHighAPI_Selection>& theObjects,
                           const ModelHighAPI_Selection& theStartShape,
                           const ModelHighAPI_Selection& theEndShape,
index a043f5928b73f2a67053d85aa4ecad9bbabc1ebe..fdc8996deefe0cb8e74cffebb8a73ca1e6206ad8 100644 (file)
@@ -9,14 +9,14 @@
 #include <ModelHighAPI_Tools.h>
 
 //==================================================================================================
-FeaturesAPI_Rotation::FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature> & theFeature)
+FeaturesAPI_Rotation::FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature>& theFeature)
 : ModelHighAPI_Interface(theFeature)
 {
   initialize();
 }
 
 //==================================================================================================
-FeaturesAPI_Rotation::FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+FeaturesAPI_Rotation::FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                            const std::list<ModelHighAPI_Selection>& theMainObjects,
                                            const ModelHighAPI_Selection& theAxisObject,
                                            const ModelHighAPI_Double& theAngle)
@@ -61,7 +61,7 @@ void FeaturesAPI_Rotation::setAngle(const ModelHighAPI_Double& theAngle)
 
 // TODO(spo): make add* as static functions of the class
 //==================================================================================================
-RotationPtr addRotation(const std::shared_ptr<ModelAPI_Document> & thePart,
+RotationPtr addRotation(const std::shared_ptr<ModelAPI_Document>& thePart,
                         const std::list<ModelHighAPI_Selection>& theMainObjects,
                         const ModelHighAPI_Selection& theAxisObject,
                         const ModelHighAPI_Double& theDistance)
index 0267cc94cd04b8cb53818c71e9ccc86331db3f1e..c8e74ace884c6ae0a75825d6816bdf1e34133a1b 100644 (file)
@@ -20,16 +20,16 @@ class ModelHighAPI_Selection;
 /// \class FeaturesAPI_Rotation
 /// \ingroup CPPHighAPI
 /// \brief Interface for Rotation feature.
-class FeaturesAPI_Rotation : public ModelHighAPI_Interface
+class FeaturesAPI_Rotation: public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values.
   FEATURESAPI_EXPORT
-  explicit FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  explicit FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
   /// Constructor with values.
   FEATURESAPI_EXPORT
-  FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+  FeaturesAPI_Rotation(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                        const std::list<ModelHighAPI_Selection>& theMainObjects,
                        const ModelHighAPI_Selection& theAxisObject,
                        const ModelHighAPI_Double& theAngle);
@@ -62,7 +62,7 @@ typedef std::shared_ptr<FeaturesAPI_Rotation> RotationPtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Rotation feature.
 FEATURESAPI_EXPORT
-RotationPtr addRotation(const std::shared_ptr<ModelAPI_Document> & thePart,
+RotationPtr addRotation(const std::shared_ptr<ModelAPI_Document>& thePart,
                         const std::list<ModelHighAPI_Selection>& theMainObjects,
                         const ModelHighAPI_Selection& theAxisObject,
                         const ModelHighAPI_Double& theDistance);
index 5c3fa06324874a84077b3bf736ac4b8bbbb66046..e4c61d95458f096f6fd55c726784f1b5f304078c 100644 (file)
@@ -9,14 +9,14 @@
 #include <ModelHighAPI_Tools.h>
 
 //==================================================================================================
-FeaturesAPI_Translation::FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature> & theFeature)
+FeaturesAPI_Translation::FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature>& theFeature)
 : ModelHighAPI_Interface(theFeature)
 {
   initialize();
 }
 
 //==================================================================================================
-FeaturesAPI_Translation::FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+FeaturesAPI_Translation::FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                                                  const std::list<ModelHighAPI_Selection>& theMainObjects,
                                                  const ModelHighAPI_Selection& theAxisObject,
                                                  const ModelHighAPI_Double& theDistance)
@@ -61,7 +61,7 @@ void FeaturesAPI_Translation::setDistance(const ModelHighAPI_Double& theDistance
 
 // TODO(spo): make add* as static functions of the class
 //==================================================================================================
-TranslationPtr addTranslation(const std::shared_ptr<ModelAPI_Document> & thePart,
+TranslationPtr addTranslation(const std::shared_ptr<ModelAPI_Document>& thePart,
                               const std::list<ModelHighAPI_Selection>& theMainObjects,
                               const ModelHighAPI_Selection& theAxisObject,
                               const ModelHighAPI_Double& theDistance)
index fef95b503508ccc83ec89cd385db28f7419cea2a..0304f28199361697f03490fd754de376777f723f 100644 (file)
@@ -20,16 +20,16 @@ class ModelHighAPI_Selection;
 /// \class FeaturesAPI_Translation
 /// \ingroup CPPHighAPI
 /// \brief Interface for Translation feature.
-class FeaturesAPI_Translation : public ModelHighAPI_Interface
+class FeaturesAPI_Translation: public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values.
   FEATURESAPI_EXPORT
-  explicit FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  explicit FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
   /// Constructor with values.
   FEATURESAPI_EXPORT
-  FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+  FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                           const std::list<ModelHighAPI_Selection>& theMainObjects,
                           const ModelHighAPI_Selection& theAxisObject,
                           const ModelHighAPI_Double& theDistance);
@@ -62,7 +62,7 @@ typedef std::shared_ptr<FeaturesAPI_Translation> TranslationPtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Translation feature.
 FEATURESAPI_EXPORT
-TranslationPtr addTranslation(const std::shared_ptr<ModelAPI_Document> & thePart,
+TranslationPtr addTranslation(const std::shared_ptr<ModelAPI_Document>& thePart,
                               const std::list<ModelHighAPI_Selection>& theMainObjects,
                               const ModelHighAPI_Selection& theAxisObject,
                               const ModelHighAPI_Double& theDistance);
index 61571735a2b3f01b3adc29f004bf7cafe2da416d..b9836a45e5096e2ab202c999063e27784bcb7177 100644 (file)
@@ -10,6 +10,7 @@
   #include <ModelHighAPI_swig.h>
 
   #include "FeaturesAPI.h"
+  #include "FeaturesAPI_Group.h"
   #include "FeaturesAPI_Boolean.h"
   #include "FeaturesAPI_Placement.h"
   #include "FeaturesAPI_Rotation.h"
index a5e98ba651eb99aa1cdecc664b404313bb58f694..07df469c9510103dee6bfb1ed7e7890e3bb5645d 100644 (file)
@@ -72,7 +72,7 @@ class FeaturesTestCase(FeaturesFixture):
         FeaturesAPI.FeaturesAPI_Placement(self.part.addFeature("Placement"))
         FeaturesAPI.FeaturesAPI_Rotation(self.part.addFeature("Rotation"))
         FeaturesAPI.FeaturesAPI_Translation(self.part.addFeature("Translation"))
-        model.features.group.Group(self.part.addFeature("Group"))
+        FeaturesAPI.FeaturesAPI_Group(self.part.addFeature("Group"))
 
         model.parameter.Parameter(self.part.addFeature("Parameter"))