![]() |
MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
|
#include <vector>#include <map>#include <Atl/atlbase.h>#include <Atl/atlmod.h>#include <SwConst_TLB.h>#include <SldWorks_TLB.h>#include <smartvars.h>

Aller au code source de ce fichier.
Macros | |
| #define | SW_VERSION 2012 |
| #define | FACENAME_FORMAT "F %d " |
| #define | FACENAME_STRLEN 64 |
| #define | EDGENAME_FORMAT "E %d " |
| #define | EDGENAME_STRLEN 64 |
| #define | VERTEXNAME_FORMAT "Vertex %f, %f, %f " |
| #define | VERTEXNAME_STRLEN 64 |
Fonctions | |
| CAD4FE_COMMON_ITEM void | SW_CoCreateInstance (CComPtr< ISldWorks > &__swApp) |
| CAD4FE_COMMON_ITEM void | SW_ExitApp (CComPtr< ISldWorks > &__swApp) |
| CAD4FE_COMMON_ITEM void | SW_App_CreateBoundaryConditionAttributeDef (CComPtr< ISldWorks > &__swApp, CComPtr< IAttributeDef > &DefAttrConditionLimite) |
| CAD4FE_COMMON_ITEM int | SW_OpenDoc (const CComPtr< ISldWorks > &__swApp, char *filename, CComPtr< IModelDoc2 > &__swModel, char __configuration[]="") |
| CAD4FE_COMMON_ITEM void | SW_CloseDoc (CComPtr< IModelDoc2 > &__swModel) |
| CAD4FE_COMMON_ITEM void | SW_CloseDoc (const CComPtr< ISldWorks > &__swApp, char *filename) |
| CAD4FE_COMMON_ITEM void | SW_GetActiveDoc (const CComPtr< ISldWorks > &__swApp, CComPtr< IModelDoc2 > &__swModel) |
| CAD4FE_COMMON_ITEM DWORD WINAPI | SW_App_SendMsgToUser_Ok (void *pointerSW) |
| CAD4FE_COMMON_ITEM void | SW_RibFeature_GetDefinition (CComPtr< IFeature > __swFeature, CComPtr< IRibFeatureData2 > &__swFeatData) |
| CAD4FE_COMMON_ITEM int | SW_Feature_TestAttribute (CComPtr< IFeature > &__swFeature, CComPtr< IAttributeDef > &) |
| CAD4FE_COMMON_ITEM int | SW_Feature_Select (CComPtr< IFeature > __swFeature, CComPtr< ISelectData > __swSelData) |
| template<class T > | |
| CAD4FE_COMMON_ITEM void | SW_Feature_GetDefinition (CComPtr< IFeature > __swFeature, CComPtr< T > &__swFeatData) |
| CAD4FE_COMMON_ITEM int | SW_Feature_Suppress (CComPtr< IModelDoc2 > &__swModel, CComPtr< IFeature > &__swFeature) |
| CAD4FE_COMMON_ITEM void | SW_Feature_GetBoundingBox (CComPtr< IModelDoc2 > &__swModel, CComPtr< IFeature > &__swFeature, double __bbox[6]) |
| CAD4FE_COMMON_ITEM void | SW_Feature_GetProjectionPlane (CComPtr< IFeature > swFeature, double planeRootPoint[3], double planeNormal[3]) |
| CAD4FE_COMMON_ITEM void | SW_Feature_GetProjectionPlane2 (CComPtr< IFeature > __swFeature, CComPtr< IModelDoc2 > __swModel, double planeRootPoint[3], double planeNormal[3]) |
| CAD4FE_COMMON_ITEM void | SW_Feature_GetPoint (CComPtr< IFeature > &pFeature, double xyzFeature[3]) |
| CAD4FE_COMMON_ITEM bool | SW_Feature_IsSuppressed (CComPtr< IModelDoc2 > &__swModel, CComPtr< IFeature > &__swFeature) |
| CAD4FE_COMMON_ITEM void | SW_SimpleFilletFeature_GetDefinition (CComPtr< IFeature > __swFeature, CComPtr< ISimpleFilletFeatureData2 > &__swFeatData) |
| CAD4FE_COMMON_ITEM double | SW_SimpleFilletFeatureData_GetRadius (CComPtr< ISimpleFilletFeatureData2 > __swFeatData) |
| CAD4FE_COMMON_ITEM int | SW_SimpleFilletFeatureData_GetItemsCount (CComPtr< ISimpleFilletFeatureData2 > __swFeatData) |
| CAD4FE_COMMON_ITEM void | SW_SimpleFilletFeatureData_ReleaseSelectionAccess (CComPtr< ISimpleFilletFeatureData2 > __swFeatData) |
| CAD4FE_COMMON_ITEM void | SW_SimpleFilletFeatureData_AccessSelections (CComPtr< ISimpleFilletFeatureData2 > __swFeatData, CComPtr< IModelDoc2 > __swModel) |
| CAD4FE_COMMON_ITEM std::multimap< int, CComPtr< IEdge > > | SW_GetItemEdges (LPUNKNOWN punk_item) |
| CAD4FE_COMMON_ITEM std::multimap< int, CComPtr< IEdge > > | SW_Loop_GetEdges (CComPtr< ILoop2 > __swLoop) |
| CAD4FE_COMMON_ITEM std::multimap< int, CComPtr< IEdge > > | SW_Face_GetEdges (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM int | SW_Face_GetMaterialProperties (CComPtr< IFace2 > &swFace, std::vector< double > &) |
| CAD4FE_COMMON_ITEM int | SW_Face_GetMaterialProperties (CComPtr< IFace2 > &swFace, unsigned char rgba[4]) |
| CAD4FE_COMMON_ITEM double | SW_SimpleFilletFeatureData_GetRadiusAtItem (CComPtr< ISimpleFilletFeatureData2 > __swFeatData, LPUNKNOWN __item) |
| CAD4FE_COMMON_ITEM void | SW_SimpleFilletFeatureData_GetItemAtIndex (CComPtr< ISimpleFilletFeatureData2 > __swFeatData, int __index, LPUNKNOWN &__item) |
| CAD4FE_COMMON_ITEM void | SW_ChamferFeature_GetDefinition (CComPtr< IFeature > __swFeature, CComPtr< IChamferFeatureData2 > &__swFeatData) |
| CAD4FE_COMMON_ITEM void | SW_ChamferFeatureData_GetAngleDistance (CComPtr< IChamferFeatureData2 > &swFeatData, double *angle, double *distance) |
| CAD4FE_COMMON_ITEM void | SW_Face_GetBox (CComPtr< IFace2 > __swFace, double __bbox[6]) |
| CAD4FE_COMMON_ITEM void | SW_Face_GetBoxTessellation (CComPtr< IFace2 > &__swFace, double __bbox[6]) |
| CAD4FE_COMMON_ITEM long | SW_Face_GetLoopCount (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM int | SW_Face_TestAttribute (CComPtr< IFace2 > &__swFace, CComPtr< IAttributeDef > &) |
| void | SW_Face_GetProjectionPlane (CComPtr< IFace2 > selectedFace1, double __rootPoint[3], double __normal[3]) |
| void | SW_Face_CreateTangentPlaneAtCenter (CComPtr< IModelDoc2 > __swModel, CComPtr< IFace2 > __swFace, double __rootPoint[3], double __XVector[3], double __normal[3], CComPtr< IRefPlane > &__swRefPlane) |
| CAD4FE_COMMON_ITEM int | SW_Face_IsRevolved (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM void | SW_Face_ClosetPointOnContour (CComPtr< IFace2 > __swFace, double __point[3], double __result[3]) |
| CAD4FE_COMMON_ITEM int | SW_Face_ReverseEvaluate0 (CComPtr< IFace2 > __swFace, double __pos[3], double __uv[2]) |
| CAD4FE_COMMON_ITEM void | SW_Face_GetCenterPoint (CComPtr< IFace2 > __swFace, CComPtr< IModelDoc2 > __swModel, double __result[3]) |
| CAD4FE_COMMON_ITEM void | SW_Face_GetClosestPointOn (CComPtr< IFace2 > __swFace, double __point[3], double __result[3]) |
| CAD4FE_COMMON_ITEM int | SW_Face_GetId (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM int | SW_FaceEdge_UVBox (CComPtr< IEdge > edge, CComPtr< IFace2 > face, double startUV[2], double endUV[2]) |
| CAD4FE_COMMON_ITEM int | SW_Face_GetUVBounds (CComPtr< IFace2 > face, double *bbox) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsUPeriodic (CComPtr< IFace2 > face) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsVPeriodic (CComPtr< IFace2 > face) |
| void CAD4FE_COMMON_ITEM | SW_Surface_Parameterization (CComPtr< ISurface > __swSurface, double __uRange[2], double __vRange[2], int __uBoundType[2], int __vBoundType[2], int __uProps[4], int __vProps[4], int __numProps[2]) |
| CAD4FE_COMMON_ITEM void | SW_FindCommonVertexBetweenTwoAdjacentEdges (CComPtr< IEdge > __swEdge1, CComPtr< IEdge > __swEdge2, CComPtr< IVertex > &__swVertex) |
| CAD4FE_COMMON_ITEM int | SW_Edge_GetParameters (CComPtr< IEdge > __swEdge, double *__startUParam, double *__endUParam, double *__startPt, double *__endPt, double *__startTanDir, double *__endTanDir, int *_curveType, int *_senseFlag) |
| CAD4FE_COMMON_ITEM int | SW_Edge_Select (CComPtr< IEdge > __swEdge, CComPtr< ISelectData > __swSelData) |
| CAD4FE_COMMON_ITEM void | SW_Edge_GetBody (CComPtr< IEdge > __swEdge, CComPtr< IBody2 > &__swBody) |
| CAD4FE_COMMON_ITEM void | SW_Edge_EvaluateAtVertex (CComPtr< IEdge > __swEdge, CComPtr< IVertex > __swVertex, double __point[3], double __tangent[3]) |
| CAD4FE_COMMON_ITEM int | SW_Edge_TestAttribute (CComPtr< IEdge > &__swEdge, CComPtr< IAttributeDef > &) |
| void | SW_Edge_GetClosestPointOn (CComPtr< IEdge > __swEdge, double __point[3], double __result[3]) |
| double | SW_Edge_GetDistanceToPoint (CComPtr< IEdge > __swEdge, double __point[3]) |
| CAD4FE_COMMON_ITEM void | SW_Edge_GetTangentEdgesPropagation2 (CComPtr< IEdge > __swEdge, std::multimap< int, CComPtr< IEdge > > &__tangentEdges, int &__maxEdgeId) |
| CAD4FE_COMMON_ITEM int | SW_Curve_Evaluate (CComPtr< ICurve > curve, double U, double point[3], double tangent[3]) |
| CAD4FE_COMMON_ITEM long | SW_Curve_GetIdentity (CComPtr< ICurve > __swCurve) |
| CAD4FE_COMMON_ITEM bool | SW_Curve_IsCircle (CComPtr< ICurve > __swCurve) |
| CAD4FE_COMMON_ITEM bool | SW_Curve_IsLine (CComPtr< ICurve > __swCurve) |
| CAD4FE_COMMON_ITEM bool | SW_Curve_IsBspline (CComPtr< ICurve > __swCurve) |
| CAD4FE_COMMON_ITEM void | SW_Edge_EvaluateCurvilinearDistancePoint (CComPtr< IEdge > __swEdge, CComPtr< IVertex > __swVertex, double __L, double *__LResult, double *__t, double __X[3]) |
| CAD4FE_COMMON_ITEM void | SW_Edge_Tessellate (CComPtr< IEdge > &__swEdge, double __startPnt[3], double __endPnt[3], std::vector< double > &__result) |
| CAD4FE_COMMON_ITEM void | SW_Edge_Tessellate (CComPtr< IEdge > &__swEdge, double __maxSize, std::vector< double > &__result) |
| CAD4FE_COMMON_ITEM void | SW_Edge_Tessellate (CComPtr< IEdge > &__swEdge, double __uStart, double __uEnd, std::vector< double > &__result) |
| CAD4FE_COMMON_ITEM void | SW_Face_EvaluateAtPoint (CComPtr< IFace2 > __swFace, double __pos[3], double *__faceNormal, double *__firstPrincipalDirection=NULL, double *__secondPrincipalDirection=NULL, double *__firstPrincipalCurvature=NULL, double *__secondPrincipalCurvature=NULL) |
| CAD4FE_COMMON_ITEM int | SW_Face_Select (CComPtr< IFace2 > __swFace, CComPtr< ISelectData > __swSelData) |
| CAD4FE_COMMON_ITEM void | SW_Body_MaxEdgeId (CComPtr< IBody2 > __swBody, int *__id) |
| CAD4FE_COMMON_ITEM void | SW_Body_GetBodyBox (CComPtr< IBody2 > __swBody, double __bbox[6]) |
| CAD4FE_COMMON_ITEM void | SW_Body_GetBodyBox (CComPtr< IBody2 > __swBody, double __lowerDiagCorner[3], double __upperDiagCorner[3]) |
| CAD4FE_COMMON_ITEM void | SW_Edge_SetId (CComPtr< IEdge > __swEdge, int id) |
| CAD4FE_COMMON_ITEM int | SW_Edge_GetId (CComPtr< IEdge > __swEdge) |
| CAD4FE_COMMON_ITEM int | SW_Edge_Evaluate (CComPtr< IEdge > edge, double U, double point[3], double tangent[3]) |
| CAD4FE_COMMON_ITEM int | SW_Edge_Evaluate_CheckDomain (CComPtr< IEdge > edge, double U, double point[3], double tangent[3]) |
| CAD4FE_COMMON_ITEM int | SW_Edge_Evaluate_CheckDomain (CComPtr< IEdge > edge, double StartUParam, double EndUParam, double U, double point[3], double tangent[3]) |
| CAD4FE_COMMON_ITEM void | SW_Edge_ReverseEvaluate (CComPtr< IEdge > __swEdge, double __pos[3], double *__u, double __tanDir[3]) |
| void | SW_Edge_ReverseEvaluate (CComPtr< IEdge > __swEdge, double __pos[3], double *__u) |
| CAD4FE_COMMON_ITEM void | SW_GetEdgeBounds (CComPtr< IEdge > __swEdge, double *__startParam, double *__endParam) |
| CAD4FE_COMMON_ITEM void | SW_GetEdgeBounds (CComPtr< IEdge > __swEdge, double *__startParam, double *__endParam, double __startPnt[3], double __endPnt[3]) |
| CAD4FE_COMMON_ITEM double | SW_Edge_GetLength (CComPtr< IEdge > __swEdge) |
| CAD4FE_COMMON_ITEM int | SW_Surface_Evaluate1 (CComPtr< ISurface > surface, double U, double V, double point[3], double DU[3], double DV[3], double normal[3]) |
| CAD4FE_COMMON_ITEM int | SW_Surface_Evaluate1 (CComPtr< IFace2 > face, double U, double V, double point[3], double DU[3], double DV[3], double normal[3]) |
| CAD4FE_COMMON_ITEM void | SW_Face_RandomCreatePoint (CComPtr< IFace2 > __swFace, double __uvBounds[4], double __result[3]) |
| CAD4FE_COMMON_ITEM void | SW_Face_Evaluate0 (CComPtr< IFace2 > __swFace, double uv[2], double __result[3]) |
| CAD4FE_COMMON_ITEM int | SW_Surface_Evaluate2 (CComPtr< ISurface > surface, double U, double V, double evaluatedPoint[3], double DerU[3], double DerV[3], double DerUV[3], double DerUU[3], double DerVV[3], double normal[3], int *numUDerivs, int *numVDerivs, long *surfIdentity) |
| CAD4FE_COMMON_ITEM int | SW_Surface_Evaluate2 (CComPtr< IFace2 > __swFace, double U, double V, double evaluatedPoint[3], double DerU[3], double DerV[3], double DerUV[3], double DerUU[3], double DerVV[3], double normal[3], int *numUDerivs, int *numVDerivs, long *surfIdentity) |
| CAD4FE_COMMON_ITEM int | SW_Surface_Evaluate3 (CComPtr< ISurface > surface, double U, double V, double evaluatedPoint[3], double DerU[3], double DerV[3], double DerUV[3], double DerUU[3], double DerVV[3], double normal[3], int *numUDerivs, int *numVDerivs, long surfIdentity=-516) |
| CAD4FE_COMMON_ITEM int | SW_FaceEdge_ReverseEvaluate (CComPtr< IEdge > edge, CComPtr< IFace2 > face, double U, double UV[2]) |
| CAD4FE_COMMON_ITEM double * | swEdgeGetTessPts (CComPtr< IEdge > &__swEdge, int *__size, double nChordTol=0.000001, double nLengthTol=0.000001) |
| CAD4FE_COMMON_ITEM void | SW_Sketch_GetPlaneParams (CComPtr< ISketch > &__swSketch, double __origin[3], double __normal[3], double __XVector[3]) |
| CAD4FE_COMMON_ITEM void | SW_SketchSegment_GetTessPts (CComPtr< ISketchSegment > &__swSketchSegment, double *__tessPts, int *__size, double nChordTol=.001, double nLengthTol=.001) |
| CAD4FE_COMMON_ITEM void | SW_Face_GetTessTriangles (CComPtr< IFace2 > __swFace, long *__triangleCount, SafeDoubleArray **) |
| CAD4FE_COMMON_ITEM void | SW_Face_GetTessTriangles (CComPtr< IFace2 > __swFace, long *__triangleCount, double **__tessPts) |
| CAD4FE_COMMON_ITEM int | SW_CoEdge_GetFaceInteriorDirection (CComPtr< IEdge > __swEdge, CComPtr< IFace2 > __swFace, double __X[3], double __D[3]) |
| void CAD4FE_COMMON_ITEM | SW_GetEdgeFaces (CComPtr< IEdge > __swEdge, CComPtr< IFace2 > &__swFace1, CComPtr< IFace2 > &__swFace2) |
| CAD4FE_COMMON_ITEM void | SW_EvaluateClosestPointOnFace (CComPtr< IFace2 > __swFace, double __pos[3], double *__facePos, double *__uParams, double *__vParams) |
| CAD4FE_COMMON_ITEM void | SW_EvaluateClosestPointOnFace (CComPtr< IFace2 > __swFace, double __pos[3], double *__X3D, double *__X2D) |
| CAD4FE_COMMON_ITEM void | SW_EvaluateClosestPointOnSurface (CComPtr< ISurface > __swSurface, double __pos[3], double __facePos[3], double __uvParams[2]) |
| template<class T > | |
| void | SW_Select_and_Mark (CComPtr< T > __swT, bool __append, long __mark) |
| CAD4FE_COMMON_ITEM void | SW_Face_Select_and_Mark (CComPtr< IFace2 > __swFace, bool __append, long __mark) |
| CAD4FE_COMMON_ITEM void | SW_Sketch_Select_and_Mark (CComPtr< ISketch > __sketch, bool __append, long __mark) |
| CAD4FE_COMMON_ITEM void | SW_Sketch_GetModelCoordinateInSketchSpace (CComPtr< ISketch > __sketch, double __pos_3D[3], double __pos_sketch[3]) |
| CAD4FE_COMMON_ITEM void | SW_GetActiveView (CComPtr< IModelDoc2 > __swModel, CComPtr< IModelView > &__swModelView) |
| CAD4FE_COMMON_ITEM bool | SW_Face_GetMaterialPropertyValues2 (CComPtr< IFace2 > __swFace, double *R, double *G, double *B, double *ambient, double *diffuse, double *specular, double *shininess, double *transparency, double *emission) |
| CAD4FE_COMMON_ITEM bool | SW_SelectedEdgeProperties (CComPtr< IModelDoc2 > __swModel, CComPtr< IEdge > __swEdge, std::string &__retName, bool &name_existed_before) |
| CAD4FE_COMMON_ITEM bool | SW_SelectedEdgeProperties (CComPtr< IModelDoc2 > __swModel, CComPtr< IEdge > __swEdge, char *&, bool &name_existed_before) |
| CAD4FE_COMMON_ITEM bool | SW_SelectedFaceProperties (CComPtr< IModelDoc2 > __swModel, CComPtr< IFace2 > __swFace, char *&__retName, bool &name_existed_before) |
| CAD4FE_COMMON_ITEM bool | SW_SelectedFaceProperties (CComPtr< IModelDoc2 > __swModel, CComPtr< IFace2 > __swFace, std::string &__retName, bool &name_existed_before) |
| CAD4FE_COMMON_ITEM bool | SW_Face_NameById (CComPtr< IModelDoc2 > __swModel, CComPtr< IFace2 > __swFace, int &__id, bool &name_existed_before) |
| CAD4FE_COMMON_ITEM bool | SW_Edge_NameById (CComPtr< IModelDoc2 > __swModel, CComPtr< IEdge > __swEdge, int &__id, bool &name_existed_before) |
| CAD4FE_COMMON_ITEM void | SW_Model_GetActiveCameraPosition (CComPtr< IModelDoc2 > __swModel, double __result[3]) |
| CAD4FE_COMMON_ITEM void | SW_Model_AddConfiguration (CComPtr< IModelDoc2 > &__swModel, std::string __strname, CComPtr< IConfiguration > &__result) |
| CAD4FE_COMMON_ITEM bool | SW_Model_SuppressConfiguration (CComPtr< IModelDoc2 > &__swModel, std::string __name) |
| CAD4FE_COMMON_ITEM CComPtr< IPartDoc > & | SW_Model_GetPart (CComPtr< IModelDoc2 > __swModel) |
| CAD4FE_COMMON_ITEM void | SW_Model_GetActiveViewTranslation (CComPtr< IModelDoc2 > __swModel, double __result[3]) |
| CAD4FE_COMMON_ITEM void | SW_Model_SetAddToDB (CComPtr< IModelDoc2 > __swModel, bool __status) |
| CAD4FE_COMMON_ITEM void | SW_Model_CreateLineInSketch (CComPtr< IModelDoc2 > __swModel, CComPtr< ISketch > __swSketch, double __P0[3], double __P1[3]) |
| CAD4FE_COMMON_ITEM int | SW_Sketch_Select (CComPtr< ISketch > __swSketch, CComPtr< ISelectData > __swSelData) |
| CAD4FE_COMMON_ITEM int | SW_SketchSegment_Select (CComPtr< ISketchSegment > __swSketchSegment, CComPtr< ISelectData > __swSelData) |
| CAD4FE_COMMON_ITEM int | SW_SketchPoint_Select (CComPtr< ISketchPoint > __swSketchPoint, CComPtr< ISelectData > __swSelData) |
| CAD4FE_COMMON_ITEM void | SW_Model_InsertSplitLine (CComPtr< IModelDoc2 > __swModel, CComPtr< ISketch > __swSketch, CComPtr< IFace2 > __swFace, std::map< int, CComPtr< IFace2 > > &__resultFaces) |
| CAD4FE_COMMON_ITEM void | SW_Model_InsertSplitLine (CComPtr< IModelDoc2 > __swModel, CComPtr< IFace2 > __swFace, double __vertex1coordinates[3], double __vertex2coordinates[3], std::map< int, CComPtr< IFace2 > > &__resultFaces) |
| CAD4FE_COMMON_ITEM void | SW_Model_CreateRefPlane (CComPtr< IModelDoc2 > __swModel, double __rootPoint[3], double __normal[3], CComPtr< IRefPlane > &__swRefPlane) |
| template<class T > | |
| CAD4FE_COMMON_ITEM CComPtr< T > & | SW_Model_GetFirstSelected (CComPtr< IModelDoc2 > __swModel, long __mark) |
| template<class T > | |
| CAD4FE_COMMON_ITEM CComPtr< T > & | SW_Model_GetSelected (CComPtr< IModelDoc2 > __swModel, long __nth, long __mark) |
| CAD4FE_COMMON_ITEM int | SW_GetSelecteEdgeId (CComPtr< ISldWorks > __swApp) |
| template<class T > | |
| void | SW_Feature_GetDefinition (CComPtr< IFeature > __swFeature, CComPtr< T > &__swFeatData) |
| CAD4FE_COMMON_ITEM void | SW_Part_InitIDs (CComPtr< IPartDoc > __swPart) |
| CAD4FE_COMMON_ITEM int | SW_Part_GetBodiesCount (CComPtr< IPartDoc > __swPart, swBodyType_e __swBodyType, bool __onlyVisibleBodies=true) |
| CAD4FE_COMMON_ITEM CComPtr< IBody2 > & | SW_Part_GetBody (CComPtr< IPartDoc > __swPart, int __index, swBodyType_e __swBodyType, bool __onlyVisibleBodies=true) |
| CAD4FE_COMMON_ITEM void | SW_Model_SaveToFile (CComPtr< IModelDoc2 > __swModel, const char *__filename) |
| CAD4FE_COMMON_ITEM void | SW_Part_FindEdgeById (CComPtr< IPartDoc > __swPart, int __id, CComPtr< IEdge > &__swEdge) |
| CAD4FE_COMMON_ITEM void | SW_Part_FindFaceById (CComPtr< IPartDoc > __swPart, int __id, CComPtr< IFace2 > &__swFace) |
| CAD4FE_COMMON_ITEM void | SW_Vertex_GetPoint (CComPtr< IVertex > __swVertex, double __pnt[3]) |
| CAD4FE_COMMON_ITEM int | SW_Vertex_GetId (const CComPtr< IVertex > &__swVertex) |
| CAD4FE_COMMON_ITEM int | SW_Vertex_TestAttribute (CComPtr< IVertex > &__swVertex, CComPtr< IAttributeDef > &) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsCylinder (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM bool | SW_Surface_IsCylinder (CComPtr< ISurface > __swSurface) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsCone (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM bool | SW_Surface_IsCone (CComPtr< ISurface > __swSurface) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsPlane (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM bool | SW_Surface_IsPlane (CComPtr< ISurface > __swSurface) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsTorus (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM bool | SW_Surface_IsTorus (CComPtr< ISurface > __swSurface) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsSphere (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM bool | SW_Surface_IsSphere (CComPtr< ISurface > __swSurface) |
| CAD4FE_COMMON_ITEM bool | SW_Face_IsSwept (CComPtr< IFace2 > __swFace) |
| CAD4FE_COMMON_ITEM bool | SW_Surface_IsSwept (CComPtr< ISurface > __swSurface) |
| CAD4FE_COMMON_ITEM void | SW_RefPlane_GetParams (CComPtr< IRefPlane > __swRefPlane, double __origin[3], double __normal[3], double __XVector[3]) |
| int CAD4FE_COMMON_ITEM | Convert_FaceNameToId (std::string) |
| int CAD4FE_COMMON_ITEM | Convert_FaceNameToId (char *) |
| int CAD4FE_COMMON_ITEM | Convert_FaceNameToId (BSTR) |
| bool CAD4FE_COMMON_ITEM | SW_FaceName_Set (CComPtr< IPartDoc > __swPart, CComPtr< IFace2 >, std::string &, bool overwrite_option=false) |
| bool CAD4FE_COMMON_ITEM | SW_FaceName_Set (CComPtr< IPartDoc > __swPart, CComPtr< IFace2 >, char *, bool overwrite_option=false) |
| bool CAD4FE_COMMON_ITEM | SW_FaceName_Get (CComPtr< IPartDoc > __swPart, CComPtr< IFace2 >, std::string &) |
| bool CAD4FE_COMMON_ITEM | SW_FaceName_Get (CComPtr< IPartDoc > __swPart, CComPtr< IFace2 >, char **) |
| CAD4FE_COMMON_ITEM int | SW_Model_RayIntr_GetFirstFaceIntr (CComPtr< IModelDoc2 > __swModel, double __basePointIn[3], double __baseDirectionIn[3], CComPtr< IFace2 > &__swFace, double __intrPoint[3], double __intrPointNorm[3]) |
| CAD4FE_COMMON_ITEM void | SW_MathVector_ConvertToPoint (CComPtr< IMathVector > __swMathVector, CComPtr< IMathPoint > &__swMathPoint) |
| CAD4FE_COMMON_ITEM void | SW_MathPoint_GetCoordinates (CComPtr< IMathPoint > __swMathPoint, double __pos[3]) |
| void | SW_RefPoint_GetPoint (CComPtr< IRefPoint > __swRefPoint, double __result[3]) |
| CAD4FE_COMMON_ITEM void | SW_ModelView_GetTranslation (CComPtr< IModelView > __swModelView, double __result[3]) |
| int CAD4FE_COMMON_ITEM | Convert_EdgeNameToId (std::string) |
| int CAD4FE_COMMON_ITEM | Convert_EdgeNameToId (char *) |
| int CAD4FE_COMMON_ITEM | Convert_EdgeNameToId (BSTR) |
| bool CAD4FE_COMMON_ITEM | SW_EdgeName_Set (CComPtr< IPartDoc >, CComPtr< IEdge >, std::string &, bool overwrite_option=false) |
| bool CAD4FE_COMMON_ITEM | SW_EdgeName_Set (CComPtr< IPartDoc >, CComPtr< IEdge >, char *, bool overwrite_option=false) |
| bool CAD4FE_COMMON_ITEM | SW_EdgeName_Get (CComPtr< IPartDoc >, CComPtr< IEdge >, std::string &) |
| bool CAD4FE_COMMON_ITEM | SW_EdgeName_Get (CComPtr< IPartDoc >, CComPtr< IEdge >, char **) |
| bool CAD4FE_COMMON_ITEM | SW_EdgeName_Get (CComPtr< IPartDoc >, CComPtr< IEdge >, const char *) |
| bool CAD4FE_COMMON_ITEM | SW_EdgeName_Delete (CComPtr< IPartDoc > __swPart, CComPtr< IEdge > __swEdge) |
| std::string CAD4FE_COMMON_ITEM | Convert_VertexToString (CComPtr< IVertex > __swVertex) |
| bool CAD4FE_COMMON_ITEM | SW_VertexName_Set (CComPtr< IPartDoc >, CComPtr< IVertex >, std::string &, bool overwrite_option=false) |
| bool CAD4FE_COMMON_ITEM | SW_VertexName_Set (CComPtr< IPartDoc >, CComPtr< IVertex >, char *, bool overwrite_option=false) |
| bool CAD4FE_COMMON_ITEM | SW_VertexName_Get (CComPtr< IPartDoc >, CComPtr< IVertex >, std::string &) |
| bool CAD4FE_COMMON_ITEM | SW_VertexName_Get (CComPtr< IPartDoc >, CComPtr< IVertex >, char **) |
| bool CAD4FE_COMMON_ITEM | SW_EntityName_Delete (CComPtr< IPartDoc >, CComPtr< Sldworks_tlb::IEntity >) |
| bool CAD4FE_COMMON_ITEM | SW_EntityName_Set (CComPtr< IPartDoc >, CComPtr< Sldworks_tlb::IEntity > __swEntity, BSTR &__bstrName, bool overwrite=false) |
| bool CAD4FE_COMMON_ITEM | SW_EntityName_Get (CComPtr< IPartDoc >, CComPtr< Sldworks_tlb::IEntity > __swEntity, BSTR &__bstrName) |
| #define EDGENAME_FORMAT "E %d " |
Définition à la ligne 574 du fichier CAD4FE_api_sw_tool.h.
| #define EDGENAME_STRLEN 64 |
Définition à la ligne 575 du fichier CAD4FE_api_sw_tool.h.
| #define FACENAME_FORMAT "F %d " |
Définition à la ligne 572 du fichier CAD4FE_api_sw_tool.h.
| #define FACENAME_STRLEN 64 |
Définition à la ligne 573 du fichier CAD4FE_api_sw_tool.h.
| #define SW_VERSION 2012 |
Définition à la ligne 34 du fichier CAD4FE_api_sw_tool.h.
Définition à la ligne 576 du fichier CAD4FE_api_sw_tool.h.
| #define VERTEXNAME_STRLEN 64 |
Définition à la ligne 577 du fichier CAD4FE_api_sw_tool.h.
| int CAD4FE_COMMON_ITEM Convert_EdgeNameToId | ( | BSTR | ) |
| int CAD4FE_COMMON_ITEM Convert_EdgeNameToId | ( | char * | ) |
| int CAD4FE_COMMON_ITEM Convert_EdgeNameToId | ( | std::string | ) |
| int CAD4FE_COMMON_ITEM Convert_FaceNameToId | ( | BSTR | ) |
| int CAD4FE_COMMON_ITEM Convert_FaceNameToId | ( | char * | ) |
| int CAD4FE_COMMON_ITEM Convert_FaceNameToId | ( | std::string | ) |
| std::string CAD4FE_COMMON_ITEM Convert_VertexToString | ( | CComPtr< IVertex > | __swVertex | ) |
| CAD4FE_COMMON_ITEM void SW_App_CreateBoundaryConditionAttributeDef | ( | CComPtr< ISldWorks > & | __swApp, |
| CComPtr< IAttributeDef > & | DefAttrConditionLimite | ||
| ) |
| CAD4FE_COMMON_ITEM DWORD WINAPI SW_App_SendMsgToUser_Ok | ( | void * | pointerSW | ) |
| CAD4FE_COMMON_ITEM void SW_Body_GetBodyBox | ( | CComPtr< IBody2 > | __swBody, |
| double | __bbox[6] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Body_GetBodyBox | ( | CComPtr< IBody2 > | __swBody, |
| double | __lowerDiagCorner[3], | ||
| double | __upperDiagCorner[3] | ||
| ) |
The X,Y,Z points returned by SolidWorks are the lower and upper diagonal corners which bound the body with the box sides parallel to the X, Y and Z axes.
The box dimensions returned by SolidWorks enclose the body and are typically close to the minimum possible size (this is typical, but not always true).
The return value is an array of doubles as follows:
[ XCorner1, YCorner1, ZCorner1, XCorner2, YCorner2, ZCorner2 ]
| CAD4FE_COMMON_ITEM void SW_Body_MaxEdgeId | ( | CComPtr< IBody2 > | __swBody, |
| int * | __id | ||
| ) |
This function returns the maximum value of edges ID for each bodies of the Part Document
| CAD4FE_COMMON_ITEM void SW_ChamferFeature_GetDefinition | ( | CComPtr< IFeature > | __swFeature, |
| CComPtr< IChamferFeatureData2 > & | __swFeatData | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_ChamferFeatureData_GetAngleDistance | ( | CComPtr< IChamferFeatureData2 > & | swFeatData, |
| double * | angle, | ||
| double * | distance | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_CloseDoc | ( | CComPtr< IModelDoc2 > & | __swModel | ) |
| CAD4FE_COMMON_ITEM void SW_CloseDoc | ( | const CComPtr< ISldWorks > & | __swApp, |
| char * | filename | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_CoCreateInstance | ( | CComPtr< ISldWorks > & | __swApp | ) |
| CAD4FE_COMMON_ITEM int SW_CoEdge_GetFaceInteriorDirection | ( | CComPtr< IEdge > | __swEdge, |
| CComPtr< IFace2 > | __swFace, | ||
| double | __X[3], | ||
| double | __D[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Curve_Evaluate | ( | CComPtr< ICurve > | curve, |
| double | U, | ||
| double | point[3], | ||
| double | tangent[3] | ||
| ) |
| CAD4FE_COMMON_ITEM long SW_Curve_GetIdentity | ( | CComPtr< ICurve > | __swCurve | ) |
| CAD4FE_COMMON_ITEM bool SW_Curve_IsBspline | ( | CComPtr< ICurve > | __swCurve | ) |
| CAD4FE_COMMON_ITEM bool SW_Curve_IsCircle | ( | CComPtr< ICurve > | __swCurve | ) |
| CAD4FE_COMMON_ITEM bool SW_Curve_IsLine | ( | CComPtr< ICurve > | __swCurve | ) |
| CAD4FE_COMMON_ITEM int SW_Edge_Evaluate | ( | CComPtr< IEdge > | edge, |
| double | U, | ||
| double | point[3], | ||
| double | tangent[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Edge_Evaluate_CheckDomain | ( | CComPtr< IEdge > | edge, |
| double | StartUParam, | ||
| double | EndUParam, | ||
| double | U, | ||
| double | point[3], | ||
| double | tangent[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Edge_Evaluate_CheckDomain | ( | CComPtr< IEdge > | edge, |
| double | U, | ||
| double | point[3], | ||
| double | tangent[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_EvaluateAtVertex | ( | CComPtr< IEdge > | __swEdge, |
| CComPtr< IVertex > | __swVertex, | ||
| double | __point[3], | ||
| double | __tangent[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_EvaluateCurvilinearDistancePoint | ( | CComPtr< IEdge > | __swEdge, |
| CComPtr< IVertex > | __swVertex, | ||
| double | __L, | ||
| double * | __LResult, | ||
| double * | __t, | ||
| double | __X[3] | ||
| ) |
| void SW_Edge_GetBody | ( | CComPtr< IEdge > | __swEdge, |
| CComPtr< IBody2 > & | __swBody | ||
| ) |
Returns the body belonging to this edge
| void SW_Edge_GetClosestPointOn | ( | CComPtr< IEdge > | __swEdge, |
| double | __point[3], | ||
| double | __result[3] | ||
| ) |
| double SW_Edge_GetDistanceToPoint | ( | CComPtr< IEdge > | __swEdge, |
| double | __point[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Edge_GetId | ( | CComPtr< IEdge > | __swEdge | ) |
| CAD4FE_COMMON_ITEM double SW_Edge_GetLength | ( | CComPtr< IEdge > | __swEdge | ) |
| CAD4FE_COMMON_ITEM int SW_Edge_GetParameters | ( | CComPtr< IEdge > | __swEdge, |
| double * | __startUParam, | ||
| double * | __endUParam, | ||
| double * | __startPt, | ||
| double * | __endPt, | ||
| double * | __startTanDir, | ||
| double * | __endTanDir, | ||
| int * | _curveType, | ||
| int * | _senseFlag | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_GetTangentEdgesPropagation2 | ( | CComPtr< IEdge > | __swEdge, |
| std::multimap< int, CComPtr< IEdge > > & | __tangentEdges, | ||
| int & | __maxEdgeId | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_Edge_NameById | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IEdge > | __swEdge, | ||
| int & | __id, | ||
| bool & | name_existed_before | ||
| ) |
| void SW_Edge_ReverseEvaluate | ( | CComPtr< IEdge > | __swEdge, |
| double | __pos[3], | ||
| double * | __u | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_ReverseEvaluate | ( | CComPtr< IEdge > | __swEdge, |
| double | __pos[3], | ||
| double * | __u, | ||
| double | __tanDir[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Edge_Select | ( | CComPtr< IEdge > | __swEdge, |
| CComPtr< ISelectData > | __swSelData | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_SetId | ( | CComPtr< IEdge > | __swEdge, |
| int | id | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_Tessellate | ( | CComPtr< IEdge > & | __swEdge, |
| double | __maxSize, | ||
| std::vector< double > & | __result | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_Tessellate | ( | CComPtr< IEdge > & | __swEdge, |
| double | __startPnt[3], | ||
| double | __endPnt[3], | ||
| std::vector< double > & | __result | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Edge_Tessellate | ( | CComPtr< IEdge > & | __swEdge, |
| double | __uStart, | ||
| double | __uEnd, | ||
| std::vector< double > & | __result | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Edge_TestAttribute | ( | CComPtr< IEdge > & | __swEdge, |
| CComPtr< IAttributeDef > & | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EdgeName_Delete | ( | CComPtr< IPartDoc > | __swPart, |
| CComPtr< IEdge > | __swEdge | ||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EdgeName_Get | ( | CComPtr< IPartDoc > | , |
| CComPtr< IEdge > | , | ||
| char ** | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EdgeName_Get | ( | CComPtr< IPartDoc > | , |
| CComPtr< IEdge > | , | ||
| const char * | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EdgeName_Get | ( | CComPtr< IPartDoc > | , |
| CComPtr< IEdge > | , | ||
| std::string & | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EdgeName_Set | ( | CComPtr< IPartDoc > | , |
| CComPtr< IEdge > | , | ||
| char * | , | ||
| bool | overwrite_option = false |
||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EdgeName_Set | ( | CComPtr< IPartDoc > | , |
| CComPtr< IEdge > | , | ||
| std::string & | , | ||
| bool | overwrite_option = false |
||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EntityName_Delete | ( | CComPtr< IPartDoc > | , |
| CComPtr< Sldworks_tlb::IEntity > | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EntityName_Get | ( | CComPtr< IPartDoc > | , |
| CComPtr< Sldworks_tlb::IEntity > | __swEntity, | ||
| BSTR & | __bstrName | ||
| ) |
| bool CAD4FE_COMMON_ITEM SW_EntityName_Set | ( | CComPtr< IPartDoc > | , |
| CComPtr< Sldworks_tlb::IEntity > | __swEntity, | ||
| BSTR & | __bstrName, | ||
| bool | overwrite = false |
||
| ) |
| CAD4FE_COMMON_ITEM void SW_EvaluateClosestPointOnFace | ( | CComPtr< IFace2 > | __swFace, |
| double | __pos[3], | ||
| double * | __facePos, | ||
| double * | __uParams, | ||
| double * | __vParams | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_EvaluateClosestPointOnFace | ( | CComPtr< IFace2 > | __swFace, |
| double | __pos[3], | ||
| double * | __X3D, | ||
| double * | __X2D | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_EvaluateClosestPointOnSurface | ( | CComPtr< ISurface > | __swSurface, |
| double | __pos[3], | ||
| double | __facePos[3], | ||
| double | __uvParams[2] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_ExitApp | ( | CComPtr< ISldWorks > & | __swApp | ) |
| CAD4FE_COMMON_ITEM void SW_Face_ClosetPointOnContour | ( | CComPtr< IFace2 > | __swFace, |
| double | __point[3], | ||
| double | __result[3] | ||
| ) |
| void SW_Face_CreateTangentPlaneAtCenter | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IFace2 > | __swFace, | ||
| double | __rootPoint[3], | ||
| double | __XVector[3], | ||
| double | __normal[3], | ||
| CComPtr< IRefPlane > & | __swRefPlane | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_Evaluate0 | ( | CComPtr< IFace2 > | __swFace, |
| double | uv[2], | ||
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_EvaluateAtPoint | ( | CComPtr< IFace2 > | __swFace, |
| double | __pos[3], | ||
| double * | __faceNormal, | ||
| double * | __firstPrincipalDirection = NULL, |
||
| double * | __secondPrincipalDirection = NULL, |
||
| double * | __firstPrincipalCurvature = NULL, |
||
| double * | __secondPrincipalCurvature = NULL |
||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_GetBox | ( | CComPtr< IFace2 > | __swFace, |
| double | __bbox[6] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_GetBoxTessellation | ( | CComPtr< IFace2 > & | __swFace, |
| double | __bbox[6] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_GetCenterPoint | ( | CComPtr< IFace2 > | __swFace, |
| CComPtr< IModelDoc2 > | __swModel, | ||
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_GetClosestPointOn | ( | CComPtr< IFace2 > | __swFace, |
| double | __point[3], | ||
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM std::multimap<int, CComPtr < IEdge > > SW_Face_GetEdges | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM int SW_Face_GetId | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM long SW_Face_GetLoopCount | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM int SW_Face_GetMaterialProperties | ( | CComPtr< IFace2 > & | swFace, |
| std::vector< double > & | |||
| ) |
| CAD4FE_COMMON_ITEM int SW_Face_GetMaterialProperties | ( | CComPtr< IFace2 > & | swFace, |
| unsigned char | rgba[4] | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_Face_GetMaterialPropertyValues2 | ( | CComPtr< IFace2 > | __swFace, |
| double * | R, | ||
| double * | G, | ||
| double * | B, | ||
| double * | ambient, | ||
| double * | diffuse, | ||
| double * | specular, | ||
| double * | shininess, | ||
| double * | transparency, | ||
| double * | emission | ||
| ) |
| void SW_Face_GetProjectionPlane | ( | CComPtr< IFace2 > | selectedFace1, |
| double | __rootPoint[3], | ||
| double | __normal[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_GetTessTriangles | ( | CComPtr< IFace2 > | __swFace, |
| long * | __triangleCount, | ||
| double ** | __tessPts | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_GetTessTriangles | ( | CComPtr< IFace2 > | __swFace, |
| long * | __triangleCount, | ||
| SafeDoubleArray ** | |||
| ) |
this function gets the SolidWorks tessellation of the face that is used for OpenGL display arg1 : SW Face arg2 : (output) NumTriangles number of triangles arg3 : 3 * NumTriangles float numbers : tessellation points of triangles
| CAD4FE_COMMON_ITEM int SW_Face_GetUVBounds | ( | CComPtr< IFace2 > | face, |
| double * | bbox | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsCone | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsCylinder | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsPlane | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM int SW_Face_IsRevolved | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsSphere | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsSwept | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsTorus | ( | CComPtr< IFace2 > | __swFace | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsUPeriodic | ( | CComPtr< IFace2 > | face | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_IsVPeriodic | ( | CComPtr< IFace2 > | face | ) |
| CAD4FE_COMMON_ITEM bool SW_Face_NameById | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IFace2 > | __swFace, | ||
| int & | __id, | ||
| bool & | name_existed_before | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_RandomCreatePoint | ( | CComPtr< IFace2 > | __swFace, |
| double | __uvBounds[4], | ||
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Face_ReverseEvaluate0 | ( | CComPtr< IFace2 > | __swFace, |
| double | __pos[3], | ||
| double | __uv[2] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Face_Select | ( | CComPtr< IFace2 > | __swFace, |
| CComPtr< ISelectData > | __swSelData | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Face_Select_and_Mark | ( | CComPtr< IFace2 > | __swFace, |
| bool | __append, | ||
| long | __mark | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Face_TestAttribute | ( | CComPtr< IFace2 > & | __swFace, |
| CComPtr< IAttributeDef > & | |||
| ) |
| CAD4FE_COMMON_ITEM int SW_FaceEdge_ReverseEvaluate | ( | CComPtr< IEdge > | edge, |
| CComPtr< IFace2 > | face, | ||
| double | U, | ||
| double | UV[2] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_FaceEdge_UVBox | ( | CComPtr< IEdge > | edge, |
| CComPtr< IFace2 > | face, | ||
| double | startUV[2], | ||
| double | endUV[2] | ||
| ) |
| bool CAD4FE_COMMON_ITEM SW_FaceName_Get | ( | CComPtr< IPartDoc > | __swPart, |
| CComPtr< IFace2 > | , | ||
| char ** | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_FaceName_Get | ( | CComPtr< IPartDoc > | __swPart, |
| CComPtr< IFace2 > | , | ||
| std::string & | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_FaceName_Set | ( | CComPtr< IPartDoc > | __swPart, |
| CComPtr< IFace2 > | , | ||
| char * | , | ||
| bool | overwrite_option = false |
||
| ) |
| bool CAD4FE_COMMON_ITEM SW_FaceName_Set | ( | CComPtr< IPartDoc > | __swPart, |
| CComPtr< IFace2 > | , | ||
| std::string & | , | ||
| bool | overwrite_option = false |
||
| ) |
| CAD4FE_COMMON_ITEM void SW_Feature_GetBoundingBox | ( | CComPtr< IModelDoc2 > & | __swModel, |
| CComPtr< IFeature > & | __swFeature, | ||
| double | __bbox[6] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Feature_GetDefinition | ( | CComPtr< IFeature > | __swFeature, |
| CComPtr< T > & | __swFeatData | ||
| ) |
Définition à la ligne 510 du fichier CAD4FE_api_sw_tool.h.
| void SW_Feature_GetDefinition | ( | CComPtr< IFeature > | __swFeature, |
| CComPtr< T > & | __swFeatData | ||
| ) |
Définition à la ligne 510 du fichier CAD4FE_api_sw_tool.h.
| CAD4FE_COMMON_ITEM void SW_Feature_GetPoint | ( | CComPtr< IFeature > & | pFeature, |
| double | xyzFeature[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Feature_GetProjectionPlane | ( | CComPtr< IFeature > | swFeature, |
| double | planeRootPoint[3], | ||
| double | planeNormal[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Feature_GetProjectionPlane2 | ( | CComPtr< IFeature > | __swFeature, |
| CComPtr< IModelDoc2 > | __swModel, | ||
| double | planeRootPoint[3], | ||
| double | planeNormal[3] | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_Feature_IsSuppressed | ( | CComPtr< IModelDoc2 > & | __swModel, |
| CComPtr< IFeature > & | __swFeature | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Feature_Select | ( | CComPtr< IFeature > | __swFeature, |
| CComPtr< ISelectData > | __swSelData | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Feature_Suppress | ( | CComPtr< IModelDoc2 > & | __swModel, |
| CComPtr< IFeature > & | __swFeature | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Feature_TestAttribute | ( | CComPtr< IFeature > & | __swFeature, |
| CComPtr< IAttributeDef > & | |||
| ) |
| CAD4FE_COMMON_ITEM void SW_FindCommonVertexBetweenTwoAdjacentEdges | ( | CComPtr< IEdge > | __swEdge1, |
| CComPtr< IEdge > | __swEdge2, | ||
| CComPtr< IVertex > & | __swVertex | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_GetActiveDoc | ( | const CComPtr< ISldWorks > & | __swApp, |
| CComPtr< IModelDoc2 > & | __swModel | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_GetActiveView | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IModelView > & | __swModelView | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_GetEdgeBounds | ( | CComPtr< IEdge > | __swEdge, |
| double * | __startParam, | ||
| double * | __endParam | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_GetEdgeBounds | ( | CComPtr< IEdge > | __swEdge, |
| double * | __startParam, | ||
| double * | __endParam, | ||
| double | __startPnt[3], | ||
| double | __endPnt[3] | ||
| ) |
| void CAD4FE_COMMON_ITEM SW_GetEdgeFaces | ( | CComPtr< IEdge > | __swEdge, |
| CComPtr< IFace2 > & | __swFace1, | ||
| CComPtr< IFace2 > & | __swFace2 | ||
| ) |
| CAD4FE_COMMON_ITEM std::multimap<int, CComPtr < IEdge > > SW_GetItemEdges | ( | LPUNKNOWN | punk_item | ) |
| CAD4FE_COMMON_ITEM int SW_GetSelecteEdgeId | ( | CComPtr< ISldWorks > | __swApp | ) |
| CAD4FE_COMMON_ITEM std::multimap<int, CComPtr < IEdge > > SW_Loop_GetEdges | ( | CComPtr< ILoop2 > | __swLoop | ) |
| CAD4FE_COMMON_ITEM void SW_MathPoint_GetCoordinates | ( | CComPtr< IMathPoint > | __swMathPoint, |
| double | __pos[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_MathVector_ConvertToPoint | ( | CComPtr< IMathVector > | __swMathVector, |
| CComPtr< IMathPoint > & | __swMathPoint | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Model_AddConfiguration | ( | CComPtr< IModelDoc2 > & | __swModel, |
| std::string | __strname, | ||
| CComPtr< IConfiguration > & | __result | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Model_CreateLineInSketch | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< ISketch > | __swSketch, | ||
| double | __P0[3], | ||
| double | __P1[3] | ||
| ) |
Creates a line in the sketch from 3D point P0 to 3D point P1
| CAD4FE_COMMON_ITEM void SW_Model_CreateRefPlane | ( | CComPtr< IModelDoc2 > | __swModel, |
| double | __rootPoint[3], | ||
| double | __normal[3], | ||
| CComPtr< IRefPlane > & | __swRefPlane | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Model_GetActiveCameraPosition | ( | CComPtr< IModelDoc2 > | __swModel, |
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Model_GetActiveViewTranslation | ( | CComPtr< IModelDoc2 > | __swModel, |
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM CComPtr<T>& SW_Model_GetFirstSelected | ( | CComPtr< IModelDoc2 > | __swModel, |
| long | __mark | ||
| ) |
Get the first selected object (IFace2, IEdge, IVertex, IFeature...) in SW
Input: arg1 : (CComPtr<IModelDoc2>) __swModel
arg2 : (long) Mark -1 = All selections regardless of marks 0 = only the selections without marks Any other value = Value that was used to mark and select an object
arg3 : output CComPtr<T> & __swEnt
Example of Code :
CComPtr<IEdge> firstSelectedEdge;
SW_GetFirstSelected<IEdge> (_swModel, -1, firstSelectedEdge);
Définition à la ligne 414 du fichier CAD4FE_api_sw_tool.h.
| CAD4FE_COMMON_ITEM CComPtr<IPartDoc>& SW_Model_GetPart | ( | CComPtr< IModelDoc2 > | __swModel | ) |
| CAD4FE_COMMON_ITEM CComPtr<T>& SW_Model_GetSelected | ( | CComPtr< IModelDoc2 > | __swModel, |
| long | __nth, | ||
| long | __mark | ||
| ) |
Définition à la ligne 457 du fichier CAD4FE_api_sw_tool.h.
| CAD4FE_COMMON_ITEM void SW_Model_InsertSplitLine | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IFace2 > | __swFace, | ||
| double | __vertex1coordinates[3], | ||
| double | __vertex2coordinates[3], | ||
| std::map< int, CComPtr< IFace2 > > & | __resultFaces | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Model_InsertSplitLine | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< ISketch > | __swSketch, | ||
| CComPtr< IFace2 > | __swFace, | ||
| std::map< int, CComPtr< IFace2 > > & | __resultFaces | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Model_RayIntr_GetFirstFaceIntr | ( | CComPtr< IModelDoc2 > | __swModel, |
| double | __basePointIn[3], | ||
| double | __baseDirectionIn[3], | ||
| CComPtr< IFace2 > & | __swFace, | ||
| double | __intrPoint[3], | ||
| double | __intrPointNorm[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Model_SaveToFile | ( | CComPtr< IModelDoc2 > | __swModel, |
| const char * | __filename | ||
| ) |
Save the part to file
| CAD4FE_COMMON_ITEM void SW_Model_SetAddToDB | ( | CComPtr< IModelDoc2 > | __swModel, |
| bool | __status | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_Model_SuppressConfiguration | ( | CComPtr< IModelDoc2 > & | __swModel, |
| std::string | __name | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_ModelView_GetTranslation | ( | CComPtr< IModelView > | __swModelView, |
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_OpenDoc | ( | const CComPtr< ISldWorks > & | __swApp, |
| char * | filename, | ||
| CComPtr< IModelDoc2 > & | __swModel, | ||
| char | __configuration[] = "" |
||
| ) |
| CAD4FE_COMMON_ITEM void SW_Part_FindEdgeById | ( | CComPtr< IPartDoc > | __swPart, |
| int | __id, | ||
| CComPtr< IEdge > & | __swEdge | ||
| ) |
This function find Edges by ID for each bodies of the Part Document
| CAD4FE_COMMON_ITEM void SW_Part_FindFaceById | ( | CComPtr< IPartDoc > | __swPart, |
| int | __id, | ||
| CComPtr< IFace2 > & | __swFace | ||
| ) |
This function find Faces by ID for each bodies of the Part Document
| CAD4FE_COMMON_ITEM int SW_Part_GetBodiesCount | ( | CComPtr< IPartDoc > | __swPart, |
| swBodyType_e | __swBodyType, | ||
| bool | __onlyVisibleBodies = true |
||
| ) |
| CAD4FE_COMMON_ITEM CComPtr<IBody2>& SW_Part_GetBody | ( | CComPtr< IPartDoc > | __swPart, |
| int | __index, | ||
| swBodyType_e | __swBodyType, | ||
| bool | __onlyVisibleBodies = true |
||
| ) |
| CAD4FE_COMMON_ITEM void SW_Part_InitIDs | ( | CComPtr< IPartDoc > | __swPart | ) |
This function generates the IDs of Edges and Faces for each bodies of the Part Document
| CAD4FE_COMMON_ITEM void SW_RefPlane_GetParams | ( | CComPtr< IRefPlane > | __swRefPlane, |
| double | __origin[3], | ||
| double | __normal[3], | ||
| double | __XVector[3] | ||
| ) |
Get the parameters of a reference plane
| void SW_RefPoint_GetPoint | ( | CComPtr< IRefPoint > | __swRefPoint, |
| double | __result[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_RibFeature_GetDefinition | ( | CComPtr< IFeature > | __swFeature, |
| CComPtr< IRibFeatureData2 > & | __swFeatData | ||
| ) |
| void SW_Select_and_Mark | ( | CComPtr< T > | __swT, |
| bool | __append, | ||
| long | __mark | ||
| ) |
Définition à la ligne 350 du fichier CAD4FE_api_sw_tool.h.
| CAD4FE_COMMON_ITEM bool SW_SelectedEdgeProperties | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IEdge > | __swEdge, | ||
| char *& | , | ||
| bool & | name_existed_before | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_SelectedEdgeProperties | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IEdge > | __swEdge, | ||
| std::string & | __retName, | ||
| bool & | name_existed_before | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_SelectedFaceProperties | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IFace2 > | __swFace, | ||
| char *& | __retName, | ||
| bool & | name_existed_before | ||
| ) |
| CAD4FE_COMMON_ITEM bool SW_SelectedFaceProperties | ( | CComPtr< IModelDoc2 > | __swModel, |
| CComPtr< IFace2 > | __swFace, | ||
| std::string & | __retName, | ||
| bool & | name_existed_before | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_SimpleFilletFeature_GetDefinition | ( | CComPtr< IFeature > | __swFeature, |
| CComPtr< ISimpleFilletFeatureData2 > & | __swFeatData | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_SimpleFilletFeatureData_AccessSelections | ( | CComPtr< ISimpleFilletFeatureData2 > | __swFeatData, |
| CComPtr< IModelDoc2 > | __swModel | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_SimpleFilletFeatureData_GetItemAtIndex | ( | CComPtr< ISimpleFilletFeatureData2 > | __swFeatData, |
| int | __index, | ||
| LPUNKNOWN & | __item | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_SimpleFilletFeatureData_GetItemsCount | ( | CComPtr< ISimpleFilletFeatureData2 > | __swFeatData | ) |
| CAD4FE_COMMON_ITEM double SW_SimpleFilletFeatureData_GetRadius | ( | CComPtr< ISimpleFilletFeatureData2 > | __swFeatData | ) |
| CAD4FE_COMMON_ITEM double SW_SimpleFilletFeatureData_GetRadiusAtItem | ( | CComPtr< ISimpleFilletFeatureData2 > | __swFeatData, |
| LPUNKNOWN | __item | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_SimpleFilletFeatureData_ReleaseSelectionAccess | ( | CComPtr< ISimpleFilletFeatureData2 > | __swFeatData | ) |
| CAD4FE_COMMON_ITEM void SW_Sketch_GetModelCoordinateInSketchSpace | ( | CComPtr< ISketch > | __sketch, |
| double | __pos_3D[3], | ||
| double | __pos_sketch[3] | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Sketch_GetPlaneParams | ( | CComPtr< ISketch > & | __swSketch, |
| double | __origin[3], | ||
| double | __normal[3], | ||
| double | __XVector[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Sketch_Select | ( | CComPtr< ISketch > | __swSketch, |
| CComPtr< ISelectData > | __swSelData | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_Sketch_Select_and_Mark | ( | CComPtr< ISketch > | __sketch, |
| bool | __append, | ||
| long | __mark | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_SketchPoint_Select | ( | CComPtr< ISketchPoint > | __swSketchPoint, |
| CComPtr< ISelectData > | __swSelData | ||
| ) |
| CAD4FE_COMMON_ITEM void SW_SketchSegment_GetTessPts | ( | CComPtr< ISketchSegment > & | __swSketchSegment, |
| double * | __tessPts, | ||
| int * | __size, | ||
| double | nChordTol = .001, |
||
| double | nLengthTol = .001 |
||
| ) |
this function returns the tessellation points of Sketch segment
| CAD4FE_COMMON_ITEM int SW_SketchSegment_Select | ( | CComPtr< ISketchSegment > | __swSketchSegment, |
| CComPtr< ISelectData > | __swSelData | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Surface_Evaluate1 | ( | CComPtr< IFace2 > | face, |
| double | U, | ||
| double | V, | ||
| double | point[3], | ||
| double | DU[3], | ||
| double | DV[3], | ||
| double | normal[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Surface_Evaluate1 | ( | CComPtr< ISurface > | surface, |
| double | U, | ||
| double | V, | ||
| double | point[3], | ||
| double | DU[3], | ||
| double | DV[3], | ||
| double | normal[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Surface_Evaluate2 | ( | CComPtr< IFace2 > | __swFace, |
| double | U, | ||
| double | V, | ||
| double | evaluatedPoint[3], | ||
| double | DerU[3], | ||
| double | DerV[3], | ||
| double | DerUV[3], | ||
| double | DerUU[3], | ||
| double | DerVV[3], | ||
| double | normal[3], | ||
| int * | numUDerivs, | ||
| int * | numVDerivs, | ||
| long * | surfIdentity | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Surface_Evaluate2 | ( | CComPtr< ISurface > | surface, |
| double | U, | ||
| double | V, | ||
| double | evaluatedPoint[3], | ||
| double | DerU[3], | ||
| double | DerV[3], | ||
| double | DerUV[3], | ||
| double | DerUU[3], | ||
| double | DerVV[3], | ||
| double | normal[3], | ||
| int * | numUDerivs, | ||
| int * | numVDerivs, | ||
| long * | surfIdentity | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Surface_Evaluate3 | ( | CComPtr< ISurface > | surface, |
| double | U, | ||
| double | V, | ||
| double | evaluatedPoint[3], | ||
| double | DerU[3], | ||
| double | DerV[3], | ||
| double | DerUV[3], | ||
| double | DerUU[3], | ||
| double | DerVV[3], | ||
| double | normal[3], | ||
| int * | numUDerivs, | ||
| int * | numVDerivs, | ||
| long | surfIdentity = -516 |
||
| ) |
| CAD4FE_COMMON_ITEM bool SW_Surface_IsCone | ( | CComPtr< ISurface > | __swSurface | ) |
| CAD4FE_COMMON_ITEM bool SW_Surface_IsCylinder | ( | CComPtr< ISurface > | __swSurface | ) |
| CAD4FE_COMMON_ITEM bool SW_Surface_IsPlane | ( | CComPtr< ISurface > | __swSurface | ) |
| CAD4FE_COMMON_ITEM bool SW_Surface_IsSphere | ( | CComPtr< ISurface > | __swSurface | ) |
| CAD4FE_COMMON_ITEM bool SW_Surface_IsSwept | ( | CComPtr< ISurface > | __swSurface | ) |
| CAD4FE_COMMON_ITEM bool SW_Surface_IsTorus | ( | CComPtr< ISurface > | __swSurface | ) |
| void CAD4FE_COMMON_ITEM SW_Surface_Parameterization | ( | CComPtr< ISurface > | __swSurface, |
| double | __uRange[2], | ||
| double | __vRange[2], | ||
| int | __uBoundType[2], | ||
| int | __vBoundType[2], | ||
| int | __uProps[4], | ||
| int | __vProps[4], | ||
| int | __numProps[2] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Vertex_GetId | ( | const CComPtr< IVertex > & | __swVertex | ) |
| CAD4FE_COMMON_ITEM void SW_Vertex_GetPoint | ( | CComPtr< IVertex > | __swVertex, |
| double | __pnt[3] | ||
| ) |
| CAD4FE_COMMON_ITEM int SW_Vertex_TestAttribute | ( | CComPtr< IVertex > & | __swVertex, |
| CComPtr< IAttributeDef > & | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_VertexName_Get | ( | CComPtr< IPartDoc > | , |
| CComPtr< IVertex > | , | ||
| char ** | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_VertexName_Get | ( | CComPtr< IPartDoc > | , |
| CComPtr< IVertex > | , | ||
| std::string & | |||
| ) |
| bool CAD4FE_COMMON_ITEM SW_VertexName_Set | ( | CComPtr< IPartDoc > | , |
| CComPtr< IVertex > | , | ||
| char * | , | ||
| bool | overwrite_option = false |
||
| ) |
| bool CAD4FE_COMMON_ITEM SW_VertexName_Set | ( | CComPtr< IPartDoc > | , |
| CComPtr< IVertex > | , | ||
| std::string & | , | ||
| bool | overwrite_option = false |
||
| ) |
| CAD4FE_COMMON_ITEM double* swEdgeGetTessPts | ( | CComPtr< IEdge > & | __swEdge, |
| int * | __size, | ||
| double | nChordTol = 0.000001, |
||
| double | nLengthTol = 0.000001 |
||
| ) |
this function returns the tessellation points of a SolidWorks Edge