|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
; [0 Q- K& Q: D K: n* a
NX二次开发源码分享,显示点的临时符号的方法
6 m4 J1 n- ^+ |+ }) S6 T# J1 X+ sstatic void display_temporary_asterisk(double *coords)
# t8 g* c. @7 w, ]{* A& q' @; q+ a" n K
UF_OBJ_disp_props_t
- A# }1 q1 H! u: {! d, E) C attrib = { 1, 0, UF_OBJ_NOT_BLANKED, UF_OBJ_WIDTH_NORMAL,: a' x! r6 j! A6 X, I8 t
UF_OBJ_FONT_SOLID, FALSE};/ C# `2 |, I) H( M; x0 y
UF_CALL(UF_DISP_display_temporary_point(NULL_TAG, UF_DISP_USE_ACTIVE_PLUS,$ o* `( E3 I& ?) V
coords, &attrib, UF_DISP_ASTERISK));
! d" `. s! L, a; U$ N3 Y}
3 r. Z: q9 K- e9 ]0 s% Y* r0 s这里可以将UF_DISP_ASTERISK改成其他类型+ G! y3 P6 p/ s8 C' N. j
UF_DISP_NO_MARKER = 0& d& c6 a) h5 N# Z
UF_DISP_POINT
4 ~$ d& ^6 q8 |UF_DISP_DOT# Z3 I! I2 ?0 P5 ?1 U/ g$ h" d& n
UF_DISP_ASTERISK1 t# f- M5 v1 f9 C! p/ T7 E
UF_DISP_CIRCLE- j3 f* v! E" P7 {0 q# @7 R
UF_DISP_POUNDSIGN. B2 s2 t$ g6 }1 N. M
UF_DISP_X% K- m* R% i$ G+ j
UF_DISP_GRIDPOINT: ^ R9 W! m! T1 O8 J3 V
UF_DISP_SQUARE7 E8 Q; Z1 b2 w0 Z" ]2 ]! C8 d
UF_DISP_TRIANGLE_MARKER: c% q2 P& p$ U& W7 _
UF_DISP_DIAMOND
1 Z. O! I( d& SUF_DISP_CENTERLINE
7 m, F# `, Q: {9 lUF_DISP_CONS_FIX
; ~4 h* y, o" d5 J/ JUF_DISP_CONS_HORIZONTAL
0 J7 R: V* m. s7 H J4 {% lUF_DISP_CONS_VERTICAL
1 S: s/ c+ f* {7 N9 n9 V% R J h. SUF_DISP_CONS_PARALLEL4 Q- u& w" I" u
UF_DISP_CONS_PERPENDICULAR
) |* h$ m) _3 L# n0 p0 t. @UF_DISP_CONS_TANGENT, q1 |# P; T+ H
UF_DISP_CONS_CONCENTRIC
8 L/ {9 C- L) ~3 dUF_DISP_CONS_COINCIDENT
0 x7 v7 C3 i8 lUF_DISP_CONS_COLLINEAR+ d. S0 \ k7 q2 A
UF_DISP_CONS_POINT_ON_CURVE% P8 y# Z4 Q; p1 Y! J( J9 a
UF_DISP_CONS_MIDPOINT, A0 V R4 M$ l' N: K
UF_DISP_CONS_EQUAL_LENGTH6 S! N* J4 I/ ~, }0 U$ ^
UF_DISP_CONS_EQUAL_RADIUS
% b a, ~- T @- pUF_DISP_CONS_CONSTANT_LENGTH. D, p# G6 y3 U4 z
UF_DISP_CONS_CONSTANT_ANGLE
' F1 L2 W% F2 L& Q2 o' ~UF_DISP_CONS_MIRROR; ^5 P3 Q* z8 }
UF_DISP_DIM_RADIUS
3 d; l9 ?$ @0 k+ g4 g) w9 XUF_DISP_DIM_DIAMETER$ u* q/ T0 Z5 y4 u4 X
UF_DISP_DIM_PARALLEL
3 l+ r: i. H8 d) Z% u0 C7 }4 UUF_DISP_DIM_PERPENDICULAR
# O& e o, w5 x" z7 N/ N# `UF_DISP_CONS_SLOPE
$ i* |$ e1 k5 \( b, r; n. zUF_DISP_CONS_STRING+ V: x. o% Z9 M: W
UF_DISP_CONS_UNIFORM_SCALED5 w' i) h/ Z: Y7 f x
UF_DISP_CONS_NON_UNIFORM_SCALED
2 Q. c3 z& m/ R7 v. UUF_DISP_CONS_ASSOC_TRIM
+ _$ _* ]9 c, r3 u# H9 c9 bUF_DISP_CONS_ASSOC_OFFSET
: v6 C @# M- w6 e" j* OUF_DISP_2T_RES_SPOT_WELD5 O: g! Q6 ^' P( D, S8 ~" O& E
UF_DISP_3T_RES_SPOT_WELD
Y" k- u7 r/ k" R8 F$ C' t ]5 bUF_DISP_4T_RES_SPOT_WELD m* D7 Y* w" Q; c- |! v
UF_DISP_2T_DC_SPOT_WELD
6 \# t4 F) \# B4 _* hUF_DISP_3T_DC_SPOT_WELD, s) S6 M+ t5 T( _' h3 R
UF_DISP_4T_DC_SPOT_WELD, e3 {) r# S5 @
UF_DISP_2T_KPC_SPOT_WELD8 N& Y7 M9 Y; D; a9 w" R
UF_DISP_3T_KPC_SPOT_WELD
+ D) a" q& H9 E9 i# Y- g/ y8 |UF_DISP_4T_KPC_SPOT_WELD
% O0 c" _# @9 K6 ^1 X# ]UF_DISP_2T_PROC_SPOT_WELD( D G \* [1 k' N9 {
UF_DISP_3T_PROC_SPOT_WELD
5 B7 {7 \$ g9 y8 s4 \1 D1 kUF_DISP_4T_PROC_SPOT_WELD
$ G4 n* b8 y* j. w/ zUF_DISP_ARC_SPOT_WELD
% l5 w: Y6 `. w( {) nUF_DISP_CLINCH_WELD
* P, a( y# y6 D0 t8 U+ Y) uUF_DISP_ANCHOR
0 k2 k3 J; W+ @( W' OUF_DISP_LEFT_LEADER_CONNECTION
+ V% }8 [7 l: f& h( g0 ] NUF_DISP_RIGHT_LEADER_CONNECTION
% V, r1 b3 o( m2 d/ LUF_DISP_FILLED_CIRCLE
: p ^8 N3 z) o3 [ jUF_DISP_FILLED_SQUARE2 M9 @, B. o8 w4 Q- A7 [8 U6 n
UF_DISP_LARGE_FILLED_SQUARE0 H. c1 D$ Z: M9 }1 z2 q+ J7 d" R9 |
UF_DISP_DATUM_POINT5 K% b" K3 r+ c0 H2 a$ P
UF_DISP_SNAPPING_DIAMOND; A2 [ ]+ {& _/ ~9 w' G
UF_DISP_CIRCLE_IN_CIRCLE
2 E. ^! D4 u* HUF_DISP_CIRCLE_IN_SQUARE
h2 K3 H' c8 A8 l I6 nUF_DISP_SQUARE_IN_SQUARE6 M2 a: c: z9 ?* n9 I' C$ ~6 H
UF_DISP_FILLED_LEFT_TRIANGLE+ u. U: b' l9 l Q* W$ [
UF_DISP_FILLED_RIGHT_TRIANGLE
; P" _/ H3 N: o0 @5 n: x2 D' m1 yUF_DISP_FILLED_UP_TRIANGLE. G" y0 q5 ?& r5 b
UF_DISP_FILLED_DOWN_TRIANGLE$ ]0 p a2 B, L6 ] ?4 ]$ |! L
UF_DISP_FILLED_LEFT_TRIANGLE_IN_CIRCLE
' I3 r; g# \: Q/ F- TUF_DISP_FILLED_RIGHT_TRIANGLE_IN_CIRCLE
m4 Q5 R5 M/ i/ J" F7 uUF_DISP_FILLED_UP_TRIANGLE_IN_CIRCLE
6 E# ]- y2 a1 i; M- UUF_DISP_FILLED_DOWN_TRIANGLE_IN_CIRCLE
0 Z# `* Z3 [0 n; J$ P" HUF_DISP_FILLED_LEFT_TRIANGLE_IN_SQUARE
1 m+ i7 u) o' W0 {; xUF_DISP_FILLED_RIGHT_TRIANGLE_IN_SQUARE, r) k8 c" m# F) _! }
UF_DISP_FILLED_UP_TRIANGLE_IN_SQUARE; v# O8 r! W% x8 ]) _
UF_DISP_FILLED_DOWN_TRIANGLEIN_SQUARE, p& c: \7 j6 H0 g8 U% D
UF_DISP_ROUNDED_CROSS& s& e. K5 I* v4 S
UF_DISP_FILLED_DIAMOND3 i! E& R& O; l! g4 p" r( T3 n: f* a
UF_DISP_UP_DOWN_TRIANGLES
, |6 c! Z9 m' U# TUF_DISP_LEFT_RIGHT_TRIANGLES
: O5 \$ |2 ~* L& h, F% j/ b; i) m# r3 i, UUF_DISP_SMALL_WHEEL' ]' @4 V: w% [5 s+ r; D* G& V
UF_DISP_LARGE_WHEEL
3 o9 | |! g- R6 T1 y; _% zUF_DISP_HOLLOW_CIRCLE
$ n; f7 a# _/ ? e; S' CUF_DISP_PREVIEW_PERPENDICULAR$ z8 S6 g3 h' v
UF_DISP_PREVIEW_HORIZONTAL
# w- m/ D/ {2 d- g0 VUF_DISP_PREVIEW_VERTICAL1 M9 V/ o+ j0 l% [
UF_DISP_PREVIEW_TANGENT# I4 _$ o5 H( A
UF_DISP_PREVIEW_PARALLEL
5 c# L2 j+ {: k7 l( l. X7 AUF_DISP_PREVIEW_POINT_ON_CURVE( [7 Z% V- m8 ]* \0 P. |4 N
UF_DISP_PREVIEW_COLLINEAR
( Q% X8 J) p/ h2 gUF_DISP_RULER8 P8 a, B# _" _) E' K) @2 `8 g
UF_DISP_PROTRACTOR
9 j$ }; D& p- f2 p- nUF_DISP_SKETCH_NOTEBOOK
+ r/ X+ E: [$ R% GUF_DISP_ARC_END_POINT# s9 h8 m5 Q& t' W. y+ X9 l7 @6 K
UF_DISP_2_PT_ARC_MARKER
7 T) Y5 N& K) ~# ^- XUF_DISP_BIG_ASTERISK
- d+ i0 f" D: B4 J! a* A" m6 ? D0 MUF_DISP_LINE_IN_CIRCLE
/ q3 M6 F8 @: _# o. XUF_DISP_PLUS_IN_CIRCLE
, S4 B# y: G9 l' w& e2 IUF_DISP_CENTER_OF_ROTATION7 l6 A: r7 I+ r2 P; r7 y8 x
UF_DISP_PREVIEW_X3 B; g' K; N4 p0 \* N" ]
UF_DISP_PREVIEW_Y
# t/ L$ {6 D; {0 l! b/ ]) U4 fUF_DISP_PREVIEW_Z
' b: g* z- L2 N% `1 ?" MUF_DISP_2T_GENERAL_SPOT_WELD
7 j; c, Z1 X. }% w# d; ]' dUF_DISP_3T_GENERAL_SPOT_WELD
7 R, W% ~6 z0 ?1 SUF_DISP_4T_GENERAL_SPOT_WELD, e N) a( I+ |* C
UF_DISP_2T_VITAL_SPOT_WELD
' T: C' c! T0 M [0 ?UF_DISP_3T_VITAL_SPOT_WELD. [: ?3 D: o4 _- ^
UF_DISP_4T_VITAL_SPOT_WELD) @! }5 B7 W& X6 x6 O
UF_DISP_2T_IMPORTANT_SPOT_WELD
8 g% h. W8 V9 l2 K: e2 ]: JUF_DISP_3T_IMPORTANT_SPOT_WELD$ X; `8 v4 x4 J: w8 j* A5 l$ O
UF_DISP_4T_IMPORTANT_SPOT_WELD
0 u8 V+ R- }" t. j9 E) {" r" bUF_DISP_2T_SEMIPANEL_SPOT_WELD, W- K, n, _) T: @
UF_DISP_3T_SEMIPANEL_SPOT_WELD, @) d5 N) l" o. {
UF_DISP_4T_SEMIPANEL_SPOT_WELD
2 H6 g3 F4 W) h- YUF_DISP_SPOT_WELD_NUT
3 ?/ O& J+ w0 \9 L1 \0 T, EUF_DISP_SPOT_WELD_STUD
; z# ^" e* g/ v4 K6 yUF_DISP_INVALID_MARKER2 L" I% Y$ ?% [/ Q6 p9 L
) Y" q/ w: y* q& x5 S5 _$ _: d% z3 f. A. |+ f3 H
|
|