|
|
发表于 2010-4-2 08:15:30
|
显示全部楼层
来自: 中国台湾
OSMODE System Variable4 i/ h/ i1 m) H
0 _1 Y% k% v) I6 p& Q& d: f! F" n
Type: Integer% I4 ^8 ^0 k$ {! ~. U; `5 T
Saved in: Registry. ~- B6 f+ N ^8 J' D
Initial value: 4133 U, x! n$ V4 @
" O/ j/ x) K0 C; [- g+ t+ w1 d/ I# J" ], N5 Y c, K# b D/ n
Sets running Object Snap modes using the following bitcodes:
6 {( Q o2 [$ U9 R# y e% `+ ]/ ^% ?1 Y# n; u7 c; j I
; J! B0 m, C/ h* e
0 NONe f0 `" G8 q f
+ m) j9 y# B( Q% y& i& _8 U8 Z1 ENDpoint
4 I" p% J6 L' U: o/ M% ]; t- [5 p. U5 G9 f
2 MIDpoint . L+ {, C6 Z: s5 E4 X
; t8 _2 |, ?% Q5 @3 Y4 CENter ) C- I4 o% w" k/ k* _
, y5 G( `/ [0 l" ~& Z; b! a
8 NODe
/ ]7 P0 L3 c! m9 u7 l( p! i* d: q
16 QUAdrant
1 M+ G8 d; K1 s; q/ _3 b: g: `4 Q0 A0 {! C( B4 ~
32 INTersection
0 `9 S8 U# O- i/ q/ Y c) r& U
U* J4 Y1 `" {2 Y' @! X' ^: o64 INSertion $ m. e; Y$ `! x I: w
3 Q: X" ^9 r; V/ L+ a3 k
128 PERpendicular : E2 n2 D% `$ B# p
& Z' E4 C; p4 p
256 TANgent
; ?8 g1 J% M5 a; T& x2 k/ p$ B3 V. w! {
512 NEArest 2 Z- c, b" o( Q3 e* j' l8 s
0 W- q4 @0 I, R% ~7 ^1024 QUIck
9 K. j; _! q% w: t e8 k
n# t | P, j5 ]0 q2048 APParent Intersection 3 M% t- r8 Q& Y7 |; _3 V
* @; {# J+ v4 y7 K" h# H/ y4096 EXTension
, R+ {) g! {. [0 ^! i
5 j' x- E f" I, q& Q. V8192 PARallel% D" s$ S" v7 f0 P0 [% w
8 ~6 k4 y/ Y( Q
) L) s. K& g% o T# oTo specify more than one object snap, enter the sum of their values. 4 i* |3 F( H* s4 T+ b
For example, entering 3 specifies the Endpoint (bitcode 1)
6 {8 A: X) ~* s4 pand Midpoint (bitcode 2) object snaps.
) Y& m1 t* e! EEntering 16383 specifies all object snaps.
4 R2 l" s0 J$ h% b* o1 Z4 `1 Z l' K7 w- [/ Y B
) u1 {$ y* x/ D) ~( zWhen object snaps are switched off using the Osnap button - ~" b$ U& @5 M/ b L: m; T7 w
on the status bar, a bitcode of 16384 (0x4000) is returned,
, `3 T4 |2 f# i+ F' Uin addition to the normal value of OSMODE. With this additional value,
" E4 p3 P3 \- I: H2 Fdevelopers can write applications for AutoCAD, ! i4 x3 X' C: y6 s. Z
and distinguish this mode from Object Snap modes / f$ P8 l) g% b$ m) g6 r: b
that have been turned off from within the Drafting Settings dialog box.
* K$ d5 A) M( }8 aSetting this bit toggles running object snaps off.
6 w; m8 ?/ c9 _0 K/ SSetting OSMODE to a value with this bit off toggles running object snaps on. |
|