%}
// import other modules
+%import "GeomAPI.i"
%import "ModelAPI.i"
// to avoid error on this
#ifndef SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_
#define SRC_GEOMDATAAPI_GEOMDATAAPI_SWIG_H_
+ #include <GeomAPI_swig.h>
#include <ModelAPI_swig.h>
#include "GeomDataAPI.h"
#ifndef SRC_MODELAPI_MODELAPI_SWIG_H_
#define SRC_MODELAPI_MODELAPI_SWIG_H_
- #include "GeomAPI_swig.h"
+ #include <GeomAPI_swig.h>
#include "ModelAPI.h"
#include "ModelAPI_Entity.h"
%include "doxyhelp.i"
// import other modules
+%import "GeomAPI.i"
%import "ModelAPI.i"
%import "GeomDataAPI.i"
%include "ModelHighAPI_Double.h"
%include "ModelHighAPI_Integer.h"
%include "ModelHighAPI_Interface.h"
-%include "ModelHighAPI_Macro.h"
%include "ModelHighAPI_RefAttr.h"
%include "ModelHighAPI_Selection.h"
+%include "ModelHighAPI_Macro.h"
%include "ModelHighAPI_Tools.h"
%template(SelectionList) std::list<ModelHighAPI_Selection>;
#ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_SWIG_H_
#define SRC_MODELHIGHAPI_MODELHIGHAPI_SWIG_H_
+ #include <GeomAPI_swig.h>
#include <ModelAPI_swig.h>
#include <GeomDataAPI_swig.h>
INCLUDE_DIRECTORIES(
${PROJECT_SOURCE_DIR}/src/Events
- ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
+ ${PROJECT_SOURCE_DIR}/src/GeomAPI
${PROJECT_SOURCE_DIR}/src/ModelAPI
+ ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
${PROJECT_SOURCE_DIR}/src/ModelHighAPI
)
%shared_ptr(SketchAPI_Sketch)
%shared_ptr(SketchAPI_SketchEntity)
-// all supported interfaces
+// all supported interfaces (the order is very important: base class first)
+%include "SketchAPI_SketchEntity.h"
%include "SketchAPI_Circle.h"
%include "SketchAPI_Line.h"
%include "SketchAPI_Sketch.h"
-%include "SketchAPI_SketchEntity.h"