|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
- n9 m8 F1 z! N" j" y8 z
NX二次开发源码分享,显示点的临时符号的方法8 W* T _! s1 y, y: u
static void display_temporary_asterisk(double *coords)- M( c2 C( g. Y- T5 P# t
{
5 n I6 d+ Z$ K UF_OBJ_disp_props_t
8 T9 d: ]! G7 X1 z6 U) } attrib = { 1, 0, UF_OBJ_NOT_BLANKED, UF_OBJ_WIDTH_NORMAL,& [2 G& R& b! `. A) I
UF_OBJ_FONT_SOLID, FALSE};. D' k& `4 Q5 ]$ o4 ?5 N$ |( T# V- |; Y
UF_CALL(UF_DISP_display_temporary_point(NULL_TAG, UF_DISP_USE_ACTIVE_PLUS,+ h6 c" q% b3 ?2 F5 v
coords, &attrib, UF_DISP_ASTERISK));2 ~0 K# e! G' g( l
}
8 \1 O2 p/ v/ d3 }) a% i4 b2 P. }这里可以将UF_DISP_ASTERISK改成其他类型
, p! Q6 C8 c* \) S2 M0 `" h) uUF_DISP_NO_MARKER = 0
$ ~5 ?2 i0 l) ]5 KUF_DISP_POINT
$ p$ m( M5 P' ?6 `UF_DISP_DOT
8 d* Y% f, B" c! y- H: RUF_DISP_ASTERISK
/ [9 E- Z( g" H7 x. ]/ J9 `UF_DISP_CIRCLE! c) @/ R9 ], \* c- @$ Y* w
UF_DISP_POUNDSIGN, o6 m5 j m- ^$ V" q
UF_DISP_X8 l4 _8 K4 I0 n
UF_DISP_GRIDPOINT& W0 B' e( B& P8 _0 ~7 H( g
UF_DISP_SQUARE; ^6 g4 W* l j% S* H* ]' M
UF_DISP_TRIANGLE_MARKER
2 I$ _2 a2 O7 _$ J5 OUF_DISP_DIAMOND
; F9 w- o. J- l5 y* q& h1 eUF_DISP_CENTERLINE, n" @- H% p: ^* O( `4 |6 V* ~
UF_DISP_CONS_FIX! ]! l: V, d+ I
UF_DISP_CONS_HORIZONTAL
T% W6 x3 t$ C' P. w5 dUF_DISP_CONS_VERTICAL, b/ x2 l% c2 U" G3 J
UF_DISP_CONS_PARALLEL
u+ B7 O% L6 H/ ?3 T' V' t& ^4 a$ UUF_DISP_CONS_PERPENDICULAR
( M" P! w- A& c3 BUF_DISP_CONS_TANGENT
% T9 G1 r9 E& BUF_DISP_CONS_CONCENTRIC2 t0 u% n9 e1 n& `9 g& T
UF_DISP_CONS_COINCIDENT" k! s) z" ]' q. f
UF_DISP_CONS_COLLINEAR1 X* t* O+ M/ @
UF_DISP_CONS_POINT_ON_CURVE+ [' j R+ N" K8 C( H6 w
UF_DISP_CONS_MIDPOINT5 k9 ^3 [; s9 X+ M
UF_DISP_CONS_EQUAL_LENGTH
- ~4 r1 q2 h3 yUF_DISP_CONS_EQUAL_RADIUS
7 E4 s$ A( s$ GUF_DISP_CONS_CONSTANT_LENGTH) W F% u8 z- ~( w2 R& `8 v9 ]8 Q
UF_DISP_CONS_CONSTANT_ANGLE
: Y$ r# r9 }% n. J! P3 }( \. XUF_DISP_CONS_MIRROR7 G- E* g9 O* D, f
UF_DISP_DIM_RADIUS
, |$ x5 w5 N$ ?8 t; V% \$ D# b! fUF_DISP_DIM_DIAMETER
) a0 v) R" |3 e: }UF_DISP_DIM_PARALLEL
7 P' l" W! F, g7 _UF_DISP_DIM_PERPENDICULAR3 Y7 R# X8 `& B( [( b" Y' i( }
UF_DISP_CONS_SLOPE" i/ |4 L$ }6 C0 T8 W/ x; ]
UF_DISP_CONS_STRING
( T6 a" L' r; s- X; m Z$ IUF_DISP_CONS_UNIFORM_SCALED
" J$ |2 [, x8 c3 eUF_DISP_CONS_NON_UNIFORM_SCALED
+ q9 y; O4 t! G$ h7 cUF_DISP_CONS_ASSOC_TRIM; J7 @# D2 `$ ]9 P
UF_DISP_CONS_ASSOC_OFFSET
5 x" i7 D# C8 }" `2 a- aUF_DISP_2T_RES_SPOT_WELD/ i/ L/ [0 {% v2 j4 U, e6 W$ p, H8 Z9 y
UF_DISP_3T_RES_SPOT_WELD7 g6 Q! C7 g8 f% ~. T: a1 Y
UF_DISP_4T_RES_SPOT_WELD
+ q' ] e! J$ s% vUF_DISP_2T_DC_SPOT_WELD" {+ A C, A+ T7 o. t" y
UF_DISP_3T_DC_SPOT_WELD: E% S0 d8 p+ j+ H9 e ~9 e1 y
UF_DISP_4T_DC_SPOT_WELD+ D8 |6 u3 z/ e" A- n+ j
UF_DISP_2T_KPC_SPOT_WELD+ U% I" L. B* ?) I
UF_DISP_3T_KPC_SPOT_WELD4 [8 G/ y. p( F. b
UF_DISP_4T_KPC_SPOT_WELD
2 r, N& x* B8 i6 j4 D5 i% V# YUF_DISP_2T_PROC_SPOT_WELD
6 i' O: J/ J- g% @3 g4 B, p* @0 jUF_DISP_3T_PROC_SPOT_WELD" l# i' s( A8 ^6 x! d8 [; {0 l' b
UF_DISP_4T_PROC_SPOT_WELD( V J, B1 ^* m ?! A
UF_DISP_ARC_SPOT_WELD
! [4 n! ]8 Z! P; AUF_DISP_CLINCH_WELD5 N! x3 ^, [$ A9 K0 C; O0 |
UF_DISP_ANCHOR& l: M' B# ]' M. |
UF_DISP_LEFT_LEADER_CONNECTION2 c4 y6 K9 d& D- T
UF_DISP_RIGHT_LEADER_CONNECTION+ g8 u$ f0 g9 C7 u1 K$ c- ^# i
UF_DISP_FILLED_CIRCLE$ P$ F+ r5 ^) t' i; e' O
UF_DISP_FILLED_SQUARE3 L+ z% [. W. c/ f: Z" {6 x G
UF_DISP_LARGE_FILLED_SQUARE+ `: Z0 I- X* q
UF_DISP_DATUM_POINT5 R. e, C+ s5 @. d. e y
UF_DISP_SNAPPING_DIAMOND) h1 `% t; R( ]7 ^
UF_DISP_CIRCLE_IN_CIRCLE
( c' F) ^- l; T' b6 j1 JUF_DISP_CIRCLE_IN_SQUARE+ O! _ Q# J+ x
UF_DISP_SQUARE_IN_SQUARE
2 k$ ^, s, B0 z1 LUF_DISP_FILLED_LEFT_TRIANGLE
( Q/ _0 X# N1 L9 N# G2 L2 @UF_DISP_FILLED_RIGHT_TRIANGLE
. C F5 ]; c; K& P% vUF_DISP_FILLED_UP_TRIANGLE3 o' C; ]4 ?2 Y2 a8 r9 e
UF_DISP_FILLED_DOWN_TRIANGLE, w9 [6 `; x6 V
UF_DISP_FILLED_LEFT_TRIANGLE_IN_CIRCLE2 m$ p N& l3 x5 w
UF_DISP_FILLED_RIGHT_TRIANGLE_IN_CIRCLE
! ~) v: U3 F8 {; @% [" `- P4 l MUF_DISP_FILLED_UP_TRIANGLE_IN_CIRCLE, L% d" L! t$ b/ g- R3 Y2 ?
UF_DISP_FILLED_DOWN_TRIANGLE_IN_CIRCLE' `: o" p+ T6 r x; @! j ~8 @
UF_DISP_FILLED_LEFT_TRIANGLE_IN_SQUARE; v2 @$ {" d8 I9 A
UF_DISP_FILLED_RIGHT_TRIANGLE_IN_SQUARE% w' n' v& v1 c/ s9 a
UF_DISP_FILLED_UP_TRIANGLE_IN_SQUARE0 B! s, U# ~+ D
UF_DISP_FILLED_DOWN_TRIANGLEIN_SQUARE+ [0 B) a6 M: u1 X! z2 s
UF_DISP_ROUNDED_CROSS
( Y% d' |, e2 CUF_DISP_FILLED_DIAMOND+ N/ \* M3 ?, j }
UF_DISP_UP_DOWN_TRIANGLES
9 y. l+ @3 I: v' s) H; N* FUF_DISP_LEFT_RIGHT_TRIANGLES
2 z) T @" S( P8 g2 A0 I1 U) l& JUF_DISP_SMALL_WHEEL
4 {: a" `! [% O, \9 B! ~+ @; |( G) [UF_DISP_LARGE_WHEEL: p& x, }4 W9 d% i. D5 [1 N
UF_DISP_HOLLOW_CIRCLE5 X% q+ f1 D, X, h0 n
UF_DISP_PREVIEW_PERPENDICULAR6 i+ X3 d4 c- ?3 @' l' }
UF_DISP_PREVIEW_HORIZONTAL
, x8 X, f, {/ \* C% tUF_DISP_PREVIEW_VERTICAL# {$ W5 q# H1 x* b$ b+ `
UF_DISP_PREVIEW_TANGENT
2 w" r o7 w# x0 ~, v3 cUF_DISP_PREVIEW_PARALLEL
9 E& H- i9 L" H% G0 e; w5 aUF_DISP_PREVIEW_POINT_ON_CURVE
2 A1 Z* B8 J7 c9 p2 D3 UUF_DISP_PREVIEW_COLLINEAR
: U+ _3 t+ J3 F4 q: IUF_DISP_RULER
6 ~7 A; v" \, x. Y% g* ?* \0 o. u, {UF_DISP_PROTRACTOR( [7 w, g( b* q9 o& A3 `6 k
UF_DISP_SKETCH_NOTEBOOK
0 ?5 A$ m o1 v2 H; K1 z% fUF_DISP_ARC_END_POINT
% e" p2 T" I5 lUF_DISP_2_PT_ARC_MARKER% K3 f8 R+ b7 ~( ^, `% ], ~+ F
UF_DISP_BIG_ASTERISK
; T7 H Z) w" M5 g! x: sUF_DISP_LINE_IN_CIRCLE* R- }, D5 r) d/ M8 u) s: X
UF_DISP_PLUS_IN_CIRCLE, E4 d4 B, N& A( g. V( V$ O
UF_DISP_CENTER_OF_ROTATION
) `, B* e4 S$ g+ P( iUF_DISP_PREVIEW_X
9 Q/ q# w% U2 l& W! a- IUF_DISP_PREVIEW_Y5 U q: o8 `% A! R% [
UF_DISP_PREVIEW_Z
, E% f7 x0 S. aUF_DISP_2T_GENERAL_SPOT_WELD& w( R/ i. n- W) y
UF_DISP_3T_GENERAL_SPOT_WELD
9 S9 s. s$ e) ^: nUF_DISP_4T_GENERAL_SPOT_WELD
2 x0 y- N9 c3 |8 \/ PUF_DISP_2T_VITAL_SPOT_WELD: h: t; t3 |' T
UF_DISP_3T_VITAL_SPOT_WELD
0 f7 x$ x1 ~ N: TUF_DISP_4T_VITAL_SPOT_WELD2 F% v; @. ]$ N o0 m
UF_DISP_2T_IMPORTANT_SPOT_WELD
2 R- A# o) o" Y' k1 Y9 p7 gUF_DISP_3T_IMPORTANT_SPOT_WELD7 w. c' W; G; Q+ j2 D+ l
UF_DISP_4T_IMPORTANT_SPOT_WELD/ i O9 C" v$ n% i# q
UF_DISP_2T_SEMIPANEL_SPOT_WELD8 D ^2 J& M1 R6 p& [6 r0 n; y2 ?; E. U
UF_DISP_3T_SEMIPANEL_SPOT_WELD' t' L0 M# n$ I$ \' H4 d/ \6 T
UF_DISP_4T_SEMIPANEL_SPOT_WELD" \% q E* b, B
UF_DISP_SPOT_WELD_NUT
3 D6 o8 g- Y; S3 ~$ X# GUF_DISP_SPOT_WELD_STUD
, j5 H2 Z+ t# ~$ oUF_DISP_INVALID_MARKER
& ]; Y+ v( R4 @2 c# N
( x" }" ^2 Y( g3 B& q: t0 E5 K
& e; n+ A0 Y& G5 q9 z" ^ |
|