|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
! F8 h Y& N7 a' \) J! a5 o! j
NX二次开发源码分享,显示点的临时符号的方法. U; S+ v& t0 ^# u
static void display_temporary_asterisk(double *coords)# W8 u9 N3 R9 ]1 J" l+ n) m6 O5 J" d
{- {7 K7 \9 B9 G7 }: t. q, k; l
UF_OBJ_disp_props_t; C1 z/ N4 L% |% `/ e
attrib = { 1, 0, UF_OBJ_NOT_BLANKED, UF_OBJ_WIDTH_NORMAL,
+ w! u; ~8 ]% ?9 z5 S UF_OBJ_FONT_SOLID, FALSE};' e) V7 p" P. T1 q3 O6 ^+ w. z
UF_CALL(UF_DISP_display_temporary_point(NULL_TAG, UF_DISP_USE_ACTIVE_PLUS,
: v' }2 a/ R/ _& ?- K, A& H coords, &attrib, UF_DISP_ASTERISK));0 d; D( E* ~5 I1 r
}
- W! u0 F- o- ^% F4 l% ]) `这里可以将UF_DISP_ASTERISK改成其他类型$ b9 E7 `0 v5 E1 C
UF_DISP_NO_MARKER = 0
7 R8 v S5 E# v3 C# QUF_DISP_POINT2 `* [6 {$ m0 t) f# V/ h& l
UF_DISP_DOT
8 e* i( h) G5 n9 K" D# B+ M2 HUF_DISP_ASTERISK i/ B% q/ q: a- E% e( P) E% e2 ? d
UF_DISP_CIRCLE
# n0 d7 ]; C4 Z7 SUF_DISP_POUNDSIGN2 v4 ]5 g0 t; H1 Y" q' K z
UF_DISP_X0 R1 s; ?; e* `! `
UF_DISP_GRIDPOINT8 @9 d. `) T* d: D
UF_DISP_SQUARE
: |6 u9 @% z. X; f. `3 RUF_DISP_TRIANGLE_MARKER3 [$ D- W: e1 k+ I
UF_DISP_DIAMOND8 b, F: q( \$ {$ r0 l7 U4 s+ h8 Y* b
UF_DISP_CENTERLINE* B& s* R r& Q' j9 j
UF_DISP_CONS_FIX
" e/ D( O( T% a w9 a7 E/ uUF_DISP_CONS_HORIZONTAL
& R' @ L4 `/ B* \7 v& eUF_DISP_CONS_VERTICAL
& K: d: u8 Z1 k9 f7 NUF_DISP_CONS_PARALLEL
, e8 ?0 G- l# q. Q* H! e3 qUF_DISP_CONS_PERPENDICULAR0 e" |* \8 A4 T& U4 L" S& P
UF_DISP_CONS_TANGENT2 T* g0 o Z! m' M8 U
UF_DISP_CONS_CONCENTRIC
/ E( f0 V& v r z1 ]1 `: G4 i. [4 cUF_DISP_CONS_COINCIDENT2 c# p' p4 H& |' W
UF_DISP_CONS_COLLINEAR: j& |' Q# j- ]* v8 D) g T
UF_DISP_CONS_POINT_ON_CURVE. Q3 J9 L% W% O- M! D Q
UF_DISP_CONS_MIDPOINT
# a" X* ?2 v+ ~, M( JUF_DISP_CONS_EQUAL_LENGTH
4 T+ Q1 ^5 r1 R$ R; W; WUF_DISP_CONS_EQUAL_RADIUS
1 j) W* M6 a: o) N. |- a) q8 OUF_DISP_CONS_CONSTANT_LENGTH U1 b" Y% I4 r( V
UF_DISP_CONS_CONSTANT_ANGLE/ z; C- i+ U. F+ ~0 k1 {
UF_DISP_CONS_MIRROR
- V3 k8 \+ c' {* ]% R. p0 mUF_DISP_DIM_RADIUS
5 [) Z7 m3 K$ J! n4 {0 z& KUF_DISP_DIM_DIAMETER
; d/ `4 |& {# B6 g. _UF_DISP_DIM_PARALLEL+ t$ u y. t: a/ }& q
UF_DISP_DIM_PERPENDICULAR
L3 }1 Z8 J* T- g7 Y/ m+ QUF_DISP_CONS_SLOPE
8 _2 \. a9 N6 `, JUF_DISP_CONS_STRING
$ j3 [6 x1 R# @UF_DISP_CONS_UNIFORM_SCALED
' L8 j( t/ U7 a# QUF_DISP_CONS_NON_UNIFORM_SCALED
2 w+ Z0 i) d. TUF_DISP_CONS_ASSOC_TRIM, | Q- e4 o3 y! f2 U+ n+ Z7 H6 }
UF_DISP_CONS_ASSOC_OFFSET
, x5 h& a% P2 `4 c% p& N4 r/ {UF_DISP_2T_RES_SPOT_WELD. M( _; M& p& H% Z' `7 B% g
UF_DISP_3T_RES_SPOT_WELD
6 W8 G( f0 q, S# a* zUF_DISP_4T_RES_SPOT_WELD
+ O2 ^2 d+ x8 R# Y9 bUF_DISP_2T_DC_SPOT_WELD7 l' h9 _4 @8 W( @3 k
UF_DISP_3T_DC_SPOT_WELD
8 {; l& Q: N8 E: {/ q1 ZUF_DISP_4T_DC_SPOT_WELD9 l Z3 ?7 S, Y" j1 |1 T. A! Z
UF_DISP_2T_KPC_SPOT_WELD5 A, t1 o/ L! q- m5 x3 t. M w1 G
UF_DISP_3T_KPC_SPOT_WELD6 A0 \' a; D& P* G8 }7 m
UF_DISP_4T_KPC_SPOT_WELD V' @ F+ Z' H4 Z- Q* [8 ]1 {9 ]$ ~
UF_DISP_2T_PROC_SPOT_WELD
! C" {( J& b0 \2 jUF_DISP_3T_PROC_SPOT_WELD
/ Q) t0 A& q4 r1 Z+ s; X4 I% D. I4 `4 dUF_DISP_4T_PROC_SPOT_WELD
& H& y- ?9 d. N; R8 b" fUF_DISP_ARC_SPOT_WELD1 W0 ]; y% Y% F+ m) Q
UF_DISP_CLINCH_WELD
2 g9 q' e7 G% s; UUF_DISP_ANCHOR) E! c* B! y5 z" j; }- N' v
UF_DISP_LEFT_LEADER_CONNECTION
5 G! T) g% `- D* O9 kUF_DISP_RIGHT_LEADER_CONNECTION
8 }+ }, U8 a C2 F' M. \2 M3 |UF_DISP_FILLED_CIRCLE; z, y6 w- \ Q7 s% k3 }
UF_DISP_FILLED_SQUARE/ J7 }7 I( H5 a$ W4 Z. t
UF_DISP_LARGE_FILLED_SQUARE0 j# h: ~9 I5 A8 B4 |* E; ?; g$ o- j
UF_DISP_DATUM_POINT
1 N; |' h# P0 y! _% E hUF_DISP_SNAPPING_DIAMOND0 g9 U7 }( P8 f5 _
UF_DISP_CIRCLE_IN_CIRCLE, g9 _* X. q% I* y9 e- _* q+ @
UF_DISP_CIRCLE_IN_SQUARE) V% n* V z9 Y
UF_DISP_SQUARE_IN_SQUARE
. k- O8 H" l* Y U2 t+ @UF_DISP_FILLED_LEFT_TRIANGLE0 `' L0 S: W4 W; v2 A5 T
UF_DISP_FILLED_RIGHT_TRIANGLE( H* G! J; a: }" q6 t% }8 c
UF_DISP_FILLED_UP_TRIANGLE, M2 R8 X' f6 P! ~: o+ \) w
UF_DISP_FILLED_DOWN_TRIANGLE
, }/ f D9 G! q0 u0 Y2 GUF_DISP_FILLED_LEFT_TRIANGLE_IN_CIRCLE! M$ {5 P$ ~/ f+ u) O
UF_DISP_FILLED_RIGHT_TRIANGLE_IN_CIRCLE
* x7 R- b8 d i' l* wUF_DISP_FILLED_UP_TRIANGLE_IN_CIRCLE* I8 Z& T1 F( T o
UF_DISP_FILLED_DOWN_TRIANGLE_IN_CIRCLE2 `5 A5 }9 q" R3 O2 `/ L
UF_DISP_FILLED_LEFT_TRIANGLE_IN_SQUARE
0 p. Z; d2 I/ \7 s1 cUF_DISP_FILLED_RIGHT_TRIANGLE_IN_SQUARE
: J' u3 D" O/ f& u7 i6 B; HUF_DISP_FILLED_UP_TRIANGLE_IN_SQUARE
/ Z& }. S$ `6 E# Q QUF_DISP_FILLED_DOWN_TRIANGLEIN_SQUARE
, p7 v6 |$ |, RUF_DISP_ROUNDED_CROSS( N3 t- L; e3 x1 A4 {; h5 g
UF_DISP_FILLED_DIAMOND
) t0 I3 O2 \- F1 o9 PUF_DISP_UP_DOWN_TRIANGLES) a/ f% }4 |7 v" i1 K1 y$ H
UF_DISP_LEFT_RIGHT_TRIANGLES' D3 z. G* q$ Z! ?+ m
UF_DISP_SMALL_WHEEL1 p! O4 X$ ]. U& ]
UF_DISP_LARGE_WHEEL/ p! a7 N T7 P# ]
UF_DISP_HOLLOW_CIRCLE9 d( V2 p# L: T, s p, |7 D) K2 f
UF_DISP_PREVIEW_PERPENDICULAR! [* l0 _4 f$ q2 ~9 V* }
UF_DISP_PREVIEW_HORIZONTAL
. ~! A; ]+ O$ {, |UF_DISP_PREVIEW_VERTICAL1 ^/ q9 T, ^! Z- d5 N! J) _" T
UF_DISP_PREVIEW_TANGENT
- H8 c# [9 ]6 v5 _UF_DISP_PREVIEW_PARALLEL) m* ?" \* z8 V: u0 ^6 S
UF_DISP_PREVIEW_POINT_ON_CURVE
' M! A1 _9 P7 [8 NUF_DISP_PREVIEW_COLLINEAR) m+ k. h2 E `2 W& A
UF_DISP_RULER
0 G' t, R+ O" E, XUF_DISP_PROTRACTOR
9 B% [" f6 A: m, [4 E$ UUF_DISP_SKETCH_NOTEBOOK* _0 u# Z/ O. U
UF_DISP_ARC_END_POINT
: k3 I/ B3 Z( D2 f ?/ W; WUF_DISP_2_PT_ARC_MARKER
: O. U; z9 n/ i4 \: TUF_DISP_BIG_ASTERISK
( \& ^$ R& I* ^0 A+ M6 P1 `UF_DISP_LINE_IN_CIRCLE
8 L1 u' h2 P! [% d+ F8 OUF_DISP_PLUS_IN_CIRCLE
+ C! F- n: x( t. s% k3 J( Z* oUF_DISP_CENTER_OF_ROTATION T3 R E! f7 R- o% G
UF_DISP_PREVIEW_X v+ _1 W0 Y: x; |% Q6 X/ a
UF_DISP_PREVIEW_Y% l3 J+ X* w: I
UF_DISP_PREVIEW_Z9 u: R8 d' Z I0 h
UF_DISP_2T_GENERAL_SPOT_WELD# N, w' Q8 n- v' Z4 G* w$ q$ k
UF_DISP_3T_GENERAL_SPOT_WELD' o% P. |# I( O7 H
UF_DISP_4T_GENERAL_SPOT_WELD
- M( I+ _4 w% j6 jUF_DISP_2T_VITAL_SPOT_WELD
$ J( I/ W s' |3 q4 iUF_DISP_3T_VITAL_SPOT_WELD6 r1 d) O0 w0 h- g# [
UF_DISP_4T_VITAL_SPOT_WELD
! E$ h8 v2 Q( R( VUF_DISP_2T_IMPORTANT_SPOT_WELD0 |6 o# T6 a9 ]/ @* h; s
UF_DISP_3T_IMPORTANT_SPOT_WELD) d1 x. V1 I$ r! D% v
UF_DISP_4T_IMPORTANT_SPOT_WELD& m# l# X2 c5 p. [
UF_DISP_2T_SEMIPANEL_SPOT_WELD
# k. |' i0 d/ U$ @0 M$ t. V# T$ s- tUF_DISP_3T_SEMIPANEL_SPOT_WELD
* E1 k: _. I& p" t- d7 F! f8 LUF_DISP_4T_SEMIPANEL_SPOT_WELD
+ a' m4 c2 C7 ~4 aUF_DISP_SPOT_WELD_NUT' |# ^; m; `4 w: y. ]! o
UF_DISP_SPOT_WELD_STUD
0 Z4 Y& |" T# \7 Z, r; pUF_DISP_INVALID_MARKER
$ ] C2 |9 ]4 x# J! o: H. P0 V; R: R6 A
& B* E0 x B1 n# V: ~9 _ |
|