|
|
发表于 2010-4-2 08:15:30
|
显示全部楼层
来自: 中国台湾
OSMODE System Variable/ z1 z: p8 D( {" N6 }3 l9 a
6 I+ c2 ?3 p& X
Type: Integer
# y3 W0 a/ E: e! Z: ]. n9 o5 e+ lSaved in: Registry
2 z6 E0 O& y8 J+ z0 nInitial value: 4133
# ?+ p2 b* ^. W
7 ?# ]- c. {+ Y; d9 j1 j" N6 W1 a9 n2 p9 s1 {& U: A2 T
Sets running Object Snap modes using the following bitcodes: W4 k6 V/ Y( e0 e) a8 o
; N5 t6 [; o b( T- M1 S; P/ g, n9 r) N( f4 V
0 NONe
4 {! G- t$ X/ C1 m" H
0 h+ F* B! g0 I3 g8 t2 f0 k1 ENDpoint
* a6 s" H v2 [" Z1 r
* B2 {. \! c6 n$ r2 MIDpoint - G. e) d% c# ~
: J, Q" a7 r( s4 CENter
* x4 { q* e' @, d& B
- X1 D0 d3 U$ A3 \& X# l$ S# C8 NODe
, r+ `& b. u/ e6 A1 _# R& s
: y& G, n$ B' N1 F0 j- {& j16 QUAdrant
) j( T% ? c [: ^; V
, |% f4 } e& F! t4 Z4 m7 ]32 INTersection
: n p4 ]# h2 ^) B! t4 N
% z) R$ Q* G V" ~9 Y7 S64 INSertion 0 `1 J6 N* c: z- [; z
/ `5 Q. C0 N% |0 @% Z3 J
128 PERpendicular
! p' u6 D6 G' i8 g" \# `2 r$ W' ]) P/ M2 H H& j3 C7 b
256 TANgent
7 q# C3 n3 N( ?9 }2 J5 ~6 ?$ _3 v8 L$ d! [* V3 `: y& {
512 NEArest
, f# E( v, H! T9 ]
$ v7 g8 l" B3 \# K1024 QUIck # u+ }3 B9 E6 _( ~: ^! D4 r
3 t7 |$ f% H4 x% h
2048 APParent Intersection
0 {/ Q2 P7 z% L0 d) \1 o7 |' s* g2 Y
4096 EXTension 8 J% C& B7 [: a1 t
! W( {5 y/ Y/ n+ I8192 PARallel
4 ]) l5 B& V4 S9 I7 o, _( m& M
3 Z4 }- }, v6 O7 A% N8 z7 P) `, V' N
To specify more than one object snap, enter the sum of their values.
: }% `0 \; e+ lFor example, entering 3 specifies the Endpoint (bitcode 1)
' {1 y* x' a6 N1 @and Midpoint (bitcode 2) object snaps. $ a3 K$ y; r* ?) K
Entering 16383 specifies all object snaps.
% q0 W1 V/ b) `' j. |2 N# o1 B b% |# q, w
7 x# H+ J+ `- E2 ?$ L
When object snaps are switched off using the Osnap button
# A A/ ^( ?6 `" _6 Y3 B4 Don the status bar, a bitcode of 16384 (0x4000) is returned, 5 A; X w" N) j& K/ f4 v9 E
in addition to the normal value of OSMODE. With this additional value, * b( L3 f6 v2 `6 x% w% a
developers can write applications for AutoCAD,
0 l. i0 C6 f" t+ S! E: ^and distinguish this mode from Object Snap modes
6 e3 i2 l* ^1 C0 Dthat have been turned off from within the Drafting Settings dialog box. 9 R* c6 |; X4 i+ |" m9 r; I
Setting this bit toggles running object snaps off. : S( C* c( x- @1 t* Q) X/ i
Setting OSMODE to a value with this bit off toggles running object snaps on. |
|