admin 发表于 2015-3-11 22:39:45

NX二次开发源码分享,显示点的临时符号的方法


NX二次开发源码分享,显示点的临时符号的方法
static void display_temporary_asterisk(double *coords)
{
    UF_OBJ_disp_props_t
      attrib = { 1, 0, UF_OBJ_NOT_BLANKED, UF_OBJ_WIDTH_NORMAL,
            UF_OBJ_FONT_SOLID, FALSE};
    UF_CALL(UF_DISP_display_temporary_point(NULL_TAG, UF_DISP_USE_ACTIVE_PLUS,
      coords, &attrib, UF_DISP_ASTERISK));
}
这里可以将UF_DISP_ASTERISK改成其他类型
UF_DISP_NO_MARKER = 0
UF_DISP_POINT
UF_DISP_DOT
UF_DISP_ASTERISK
UF_DISP_CIRCLE
UF_DISP_POUNDSIGN
UF_DISP_X
UF_DISP_GRIDPOINT
UF_DISP_SQUARE
UF_DISP_TRIANGLE_MARKER
UF_DISP_DIAMOND
UF_DISP_CENTERLINE
UF_DISP_CONS_FIX
UF_DISP_CONS_HORIZONTAL
UF_DISP_CONS_VERTICAL
UF_DISP_CONS_PARALLEL
UF_DISP_CONS_PERPENDICULAR
UF_DISP_CONS_TANGENT
UF_DISP_CONS_CONCENTRIC
UF_DISP_CONS_COINCIDENT
UF_DISP_CONS_COLLINEAR
UF_DISP_CONS_POINT_ON_CURVE
UF_DISP_CONS_MIDPOINT
UF_DISP_CONS_EQUAL_LENGTH
UF_DISP_CONS_EQUAL_RADIUS
UF_DISP_CONS_CONSTANT_LENGTH
UF_DISP_CONS_CONSTANT_ANGLE
UF_DISP_CONS_MIRROR
UF_DISP_DIM_RADIUS
UF_DISP_DIM_DIAMETER
UF_DISP_DIM_PARALLEL
UF_DISP_DIM_PERPENDICULAR
UF_DISP_CONS_SLOPE
UF_DISP_CONS_STRING
UF_DISP_CONS_UNIFORM_SCALED
UF_DISP_CONS_NON_UNIFORM_SCALED
UF_DISP_CONS_ASSOC_TRIM
UF_DISP_CONS_ASSOC_OFFSET
UF_DISP_2T_RES_SPOT_WELD
UF_DISP_3T_RES_SPOT_WELD
UF_DISP_4T_RES_SPOT_WELD
UF_DISP_2T_DC_SPOT_WELD
UF_DISP_3T_DC_SPOT_WELD
UF_DISP_4T_DC_SPOT_WELD
UF_DISP_2T_KPC_SPOT_WELD
UF_DISP_3T_KPC_SPOT_WELD
UF_DISP_4T_KPC_SPOT_WELD
UF_DISP_2T_PROC_SPOT_WELD
UF_DISP_3T_PROC_SPOT_WELD
UF_DISP_4T_PROC_SPOT_WELD
UF_DISP_ARC_SPOT_WELD
UF_DISP_CLINCH_WELD
UF_DISP_ANCHOR
UF_DISP_LEFT_LEADER_CONNECTION
UF_DISP_RIGHT_LEADER_CONNECTION
UF_DISP_FILLED_CIRCLE
UF_DISP_FILLED_SQUARE
UF_DISP_LARGE_FILLED_SQUARE
UF_DISP_DATUM_POINT
UF_DISP_SNAPPING_DIAMOND
UF_DISP_CIRCLE_IN_CIRCLE
UF_DISP_CIRCLE_IN_SQUARE
UF_DISP_SQUARE_IN_SQUARE
UF_DISP_FILLED_LEFT_TRIANGLE
UF_DISP_FILLED_RIGHT_TRIANGLE
UF_DISP_FILLED_UP_TRIANGLE
UF_DISP_FILLED_DOWN_TRIANGLE
UF_DISP_FILLED_LEFT_TRIANGLE_IN_CIRCLE
UF_DISP_FILLED_RIGHT_TRIANGLE_IN_CIRCLE
UF_DISP_FILLED_UP_TRIANGLE_IN_CIRCLE
UF_DISP_FILLED_DOWN_TRIANGLE_IN_CIRCLE
UF_DISP_FILLED_LEFT_TRIANGLE_IN_SQUARE
UF_DISP_FILLED_RIGHT_TRIANGLE_IN_SQUARE
UF_DISP_FILLED_UP_TRIANGLE_IN_SQUARE
UF_DISP_FILLED_DOWN_TRIANGLEIN_SQUARE
UF_DISP_ROUNDED_CROSS
UF_DISP_FILLED_DIAMOND
UF_DISP_UP_DOWN_TRIANGLES
UF_DISP_LEFT_RIGHT_TRIANGLES
UF_DISP_SMALL_WHEEL
UF_DISP_LARGE_WHEEL
UF_DISP_HOLLOW_CIRCLE
UF_DISP_PREVIEW_PERPENDICULAR
UF_DISP_PREVIEW_HORIZONTAL
UF_DISP_PREVIEW_VERTICAL
UF_DISP_PREVIEW_TANGENT
UF_DISP_PREVIEW_PARALLEL
UF_DISP_PREVIEW_POINT_ON_CURVE
UF_DISP_PREVIEW_COLLINEAR
UF_DISP_RULER
UF_DISP_PROTRACTOR
UF_DISP_SKETCH_NOTEBOOK
UF_DISP_ARC_END_POINT
UF_DISP_2_PT_ARC_MARKER
UF_DISP_BIG_ASTERISK
UF_DISP_LINE_IN_CIRCLE
UF_DISP_PLUS_IN_CIRCLE
UF_DISP_CENTER_OF_ROTATION
UF_DISP_PREVIEW_X
UF_DISP_PREVIEW_Y
UF_DISP_PREVIEW_Z
UF_DISP_2T_GENERAL_SPOT_WELD
UF_DISP_3T_GENERAL_SPOT_WELD
UF_DISP_4T_GENERAL_SPOT_WELD
UF_DISP_2T_VITAL_SPOT_WELD
UF_DISP_3T_VITAL_SPOT_WELD
UF_DISP_4T_VITAL_SPOT_WELD
UF_DISP_2T_IMPORTANT_SPOT_WELD
UF_DISP_3T_IMPORTANT_SPOT_WELD
UF_DISP_4T_IMPORTANT_SPOT_WELD
UF_DISP_2T_SEMIPANEL_SPOT_WELD
UF_DISP_3T_SEMIPANEL_SPOT_WELD
UF_DISP_4T_SEMIPANEL_SPOT_WELD
UF_DISP_SPOT_WELD_NUT
UF_DISP_SPOT_WELD_STUD
UF_DISP_INVALID_MARKER


页: [1]
查看完整版本: NX二次开发源码分享,显示点的临时符号的方法