ProGeomitem types are as follows: • ProSurface—Surface, datum surface, or datum plane • ProEdge—Edge • ProCurve—Datum curve • ProCompcrv—Composite datum curve • ProQuilt—Quilt • ProAxis—Axis • ProPoint—Datum point • ProCsys—Datum coordinate system
status = ProArcdataGet(geomitem_data->data.p_curve_data, vector1, vector2, centerinCsys, &p_start_angle, &p_end_angle, &p_radius);
描述圆弧的几何信息结构体及其官方描述如下:
1 2 3 4 5 6 7 8 9 10
typedefstructptc_arc { int type; ProVector vector1; /* First vector of the arc coordinate system*/ ProVector vector2; /* Second vector of the arc coordinate system*/ Pro3dPnt origin; /* Center of the arc coordinate system */ double start_angle; /* Starting angle (in radians) of the arc */ double end_angle; /* End angle (in radians) of the arc */ double radius; /* Radius of the arc */ } ProArcdata;
Creo Parametric and Creo Parametric TOOLKIT use the following coordinate systems: • Solid coordinate system • Screen coordinate system • Window coordinate system • Drawing coordinate system • Drawing view coordinate system • Assembly coordinate system • Datum coordinate system • Section coordinate system
status = ProSelectionViewGet(SelBuffer[0], &view); status = ProDrawingViewTransformGet(drawing, view, PRO_B_TRUE, transform); status = ProPntTrfEval(centerinCsys, transform, centerinDrawing);
status = ProDtlentitydataAlloc(Drawing, &edata); status = ProCurvedataAlloc(&curve); status = ProLinedataInit(Start, End, curve); status = ProDtlentitydataCurveSet(edata, curve); status = ProDtlentitydataViewSet(edata, View);
entity_color.value.type = PRO_COLOR_LETTER; entity_color.method = PRO_COLOR_METHOD_TYPE; status = ProDtlentitydataColorSet(edata, &entity_color); status = ProDtlentitydataWidthSet(edata, 0); status = ProDtlentitydataFontSet(edata, Font);
status = ProDtlentityCreate(Drawing, NULL, edata, &entity); status = ProDtlentitydataFree(edata);