|
|
发表于 2010-4-2 08:15:30
|
显示全部楼层
来自: 中国台湾
OSMODE System Variable
# Q1 b3 x1 q7 c; P1 j4 y- v# K0 ^8 U8 f+ Z, \& s. q
Type: Integer$ ]) t" R1 K) x, t- _
Saved in: Registry% @ K/ V* c# V5 s- f L
Initial value: 4133
1 S6 N j5 M0 U; U: r" U( v" ~! R! a3 O& C" N
2 r0 }; ^; y* \6 ?, L6 Z$ B4 j
Sets running Object Snap modes using the following bitcodes:
9 S' Q9 u' C7 ~9 `: O6 L
% u7 n" v! r# i" m
* }+ O$ s- ?# ^; x0 K0 NONe " N/ z5 o& ^" j2 ]' p5 Q- G# L
% M6 d% O) E* s( b+ b1 ENDpoint 9 x3 V( O* S( z8 a) e
# ` i! r; z6 a+ A
2 MIDpoint
3 @ W; H# q/ k( }
+ ]2 ^3 M5 J: ^7 b4 CENter
6 J8 g2 ~0 ]0 N& Q5 ]: ]4 I8 O& L( M: V6 m1 L; x7 |& G
8 NODe ( {5 X- ?' v9 v
- X! N. r0 r3 Q) p( b; r
16 QUAdrant
2 T4 E8 |9 x1 n( o
0 ]' Q: M0 L5 |4 c32 INTersection 2 Q- P+ I3 i7 c7 _
! G q, _$ \; p- k u/ O64 INSertion
8 V: D; I" w( |8 {8 x: h3 B
4 ?7 Q& Z; i" m+ b: @% d7 s128 PERpendicular * S8 I4 v- {) {# f5 `
z2 y! A3 _6 k( R256 TANgent
4 x( Q4 I1 v! y! a$ a
" `+ F! v: o0 S' o8 M512 NEArest
8 g9 d# d$ O3 ]# l! z
8 q1 v6 K+ l9 \- v7 F1024 QUIck 2 {7 M8 U+ V/ U1 f3 t( Q! s/ c& K
6 N4 e- G, x& t6 f* c, i* C. ~2048 APParent Intersection
. `1 p# H! [) f k0 Z& R
) o+ ` b) |. w9 e1 l4096 EXTension 3 H$ K3 Y6 p' ?1 V& N( n
0 w9 k0 s; R4 Q- u3 z2 I/ \3 o8192 PARallel
- ~4 y0 h3 |$ K( E0 `2 \ P2 y: ?% y' A% ?+ l5 n7 J$ C+ W( x7 ]
& T- S0 _/ |( [; ITo specify more than one object snap, enter the sum of their values. * r, ~& a) ]& S1 P7 `+ i" d1 i
For example, entering 3 specifies the Endpoint (bitcode 1)
7 [4 j' c* s1 |( B% O Dand Midpoint (bitcode 2) object snaps.
( O" h4 F K6 G* Z. WEntering 16383 specifies all object snaps.
1 w3 N' ?! G. I, Z3 S0 J; ~* G- T8 H# M; S7 A$ T8 d9 o3 n# L% f$ M
1 ~8 ?5 D% d4 f. |9 XWhen object snaps are switched off using the Osnap button
% ]' A; \. V+ ~) t9 n& \" L0 xon the status bar, a bitcode of 16384 (0x4000) is returned,
6 Y. o' o) [& k. e# min addition to the normal value of OSMODE. With this additional value, 0 s: @. S) n9 p2 I9 n f r
developers can write applications for AutoCAD, * X/ u' x! [3 a* Q: p# @
and distinguish this mode from Object Snap modes
* m5 }* X! B7 ]that have been turned off from within the Drafting Settings dialog box.
' u$ T6 n6 C! g' t7 P: ]" @Setting this bit toggles running object snaps off.
9 H. M9 Q+ M1 r6 F* S% W( M1 KSetting OSMODE to a value with this bit off toggles running object snaps on. |
|