Professional Documents
Culture Documents
Sham Tickoo-Customizing AutoCAD
Sham Tickoo-Customizing AutoCAD
32.973.26-018.2.75
40
681.3.07
..
. ..
..
:
info@williamspublishing.com, http://www.williamspublishing.com
115419, , / 783; 03150, , / 152
, .
40
AutoCAD. : . . . : , 2006.
768 . : . . . .
ISBN 5-8459-0931-7 (.)
, Autodesk,
,
AutoCAD 2004/2005/2006. , .
, ,
, . AutoLISP, Visual Basic for Applications (VBA), Visual LISP
DIESEL, AutoCAD.
AutoCAD
, .
32.973.26-018.2.75
.
, ,
,
Autodesk Press.
Authorized translation from the English language edition published by Delmar Learning, a division of
Thomson Learning, Inc. Copyright 2004
All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording or by any information storage retrieval system,
without permission from the Publisher.
Russian language edition is published by Williams Publishing House according to the Agreement with R&I
Enterprises International, Copyright 2006.
, 2006
Delmar Learning, 2004
1.
16
21
2.
53
3.
97
4. ACAD.PGP
143
5. ,
157
6.
207
7.
223
8.
241
9.
265
10. AutoCAD
313
11.
369
12. AutoLISP
403
459
497
15.
Dialog Control Language
515
16. DIESEL:
567
585
18.
619
19.
645
. AutoCAD
666
. AutoCAD
669
. AutoCAD
704
763
16
1.
21
22
22
28
29
35
39
42
2.
?
AutoCAD
3.
LTSCALE
(CELTSCALE)
53
54
57
64
65
66
66
67
78
78
78
79
82
84
88
89
97
98
98
98
98
99
100
105
106
109
110
111
112
115
115
120
124
124
125
125
127
128
129
130
132
133
138
138
4. ACAD.PGP
143
144
151
151
151
152
154
AutoCAD
ACAD.PGP
ACAD.PGP
5. ,
AutoCAD
157
158
159
159
167
169
169
175
178
179
179
180
180
180
180
184
184
184
189
190
191
191
196
196
199
200
6.
7.
8.
9.
201
201
201
202
207
208
209
209
209
210
210
211
216
217
218
218
223
224
224
228
231
231
232
232
232
233
233
236
241
242
243
244
245
247
249
250
253
254
265
266
270
272
272
273
274
MENUECHO
,
AutoLISP
DIESEL
280
294
296
297
298
298
299
299
301
303
303
304
10. AutoCAD
313
314
330
330
331
331
332
332
332
337
341
341
344
345
350
351
354
355
355
356
357
357
360
360
361
AutoCAD
1
2
3
4
11.
369
370
370
370
370
371
374
375
389
389
10
12. AutoLISP
AutoLISP
(sin)
(cos)
(atan)
angtos
defun, setq, getpoint Command
defun
setq
getpoint
Command
AutoLISP
Load
Loaded Applications
History List
Add to History
Unload
Remove
Startup Suit
getcorner, getdist setvar
getcorner
getdist
setvar
list
car, cdr cadr
car
cdr
cadr
390
391
403
404
405
405
405
406
406
406
406
407
407
407
407
407
408
408
409
409
409
410
410
410
411
411
411
412
413
413
417
418
418
418
418
418
418
418
420
420
420
421
423
424
424
424
424
11
-
if
progn
while
repeat
425
425
425
425
426
430
430
431
432
432
433
433
433
434
434
434
437
437
437
438
438
441
442
443
444
448
448
451
459
460
460
465
469
471
473
477
488
489
Visual LISP
Visual LISP
Visual LISP
Visual LISP
Visual LISP
AutoLISP
, Visual LISP
497
498
498
500
501
502
502
503
503
12
entget
assoc
cons
subst
entmod
,
entnext
entlast
entsel
15.
Dialog Control Language
key, label is_default
key
label
is_default
fixed_width alignment
fixed_width
alignment
DCL
AutoLISP DCL
AutoLISP
load_dialog
unload_dialog
new_dialog
start_dialog
done_dialog
action_tile
AutoLISP
( row)
504
504
504
505
505
506
508
508
508
508
515
516
516
517
519
519
519
519
519
520
521
521
521
522
522
522
523
524
525
527
527
528
528
528
528
529
529
529
529
532
532
532
532
532
532
532
13
AutoLISP
logand logior
atof rtos
get_tile set_tile
,
width edit_width
width
edit_width
533
537
537
538
538
541
541
541
541
542
548
548
548
548
552
552
552
552
553
556
556
556
557
557
557
558
16. DIESEL:
567
568
568
569
570
571
574
575
576
577
577
578
578
578
578
580
580
580
581
581
581
DIESEL:
MODEMACRO
, DIESEL
MODEMACRO AutoLISP
DIESEL
MACROTRACE
DIESEL
eq
angtos
eval
fix
getvar
rtos
14
if
strlen
upper
edtime
18.
AutoCAD
DBCONNECT MANAGER
Read-only ( )
Edit ()
581
582
582
582
585
586
586
587
587
590
590
591
591
592
592
593
594
594
595
596
600
600
601
601
606
606
607
612
619
620
620
620
620
621
622
622
624
625
625
626
629
629
630
630
631
633
633
15
(ASE)
AutoCAD
Quick Query
Range Query
Query Builder
SQL Query
SQL
ASE AutoCAD 2000
AutoCAD 2004/2006 R13/R14
634
635
635
635
635
636
639
639
640
640
640
640
640
19.
,
ang(v)
ang(1,2)
ang(apex,p1,p2)
ang(apex,p1,p2,)
AutoLISP
645
646
646
646
647
647
648
649
650
652
652
653
653
654
654
655
658
659
660
661
. AutoCAD
666
. AutoCAD
669
. AutoCAD
704
763
642
643
AutoCAD, Autodesk, . AutoCAD, , 2,1 80 . 2000
AutoCAD 78 , .
, AutoCAD , ,
. ,
SMLayout ,
, , , ,
.
, . , AutoCAD
, ,
.
,
AutoCAD 2004/2005/2006. .
,
AutoCAD. , , , , ,
, , AutoLISP,
, ,
DCL,
DIESEL (ACAD.PGP). ,
AutoCAD, .
, AutoCAD .
.
AutoCAD, , .
, . , .
, .
, , . ,
AutoLISP, , , , -
17
. , ,
,
, , . :
, ,
. ,
, AutoLISP. , ,
, .
.
1,
, .
, , (.. ) ().
2,
AutoCAD, .
, .
3,
, (acad.lin). .
4, ACAD.PGP
(acad.pgp) AutoCAD.
5, ,
,
. . , , .
6,
. ,
, .
18
7,
, , AutoCAD - .
8,
. ,
, , AutoCAD .
9,
, ,
.
10, AutoCAD
AutoCAD (acad.mnu).
.
11,
,
AutoCAD, . ,
.
12, AutoLISP
AutoLISP
.
.
15,
Dialog Control Language
(DCL Dialog
Control Language) -
19
. , AutoLISP.
16, DIESEL:
DIESEL,
, MODEMACRO.
18,
, AutoCAD ( ).
.
19,
Geometry Calculator ADS, . ,
. ,
AutoCAD (, MID, CEN, END ..).
Web-
-
stickoo@calumet.purdue.edu,
Web-,
:
1. , ,
.
2. , , .
, , , , Web-
www.cadcim.com http://technology.calumet.purdue.edu/met/tickoo/students/
students.htm.
20
,
.
,
, .
- (. ),
.
(Deepak Maini), (Abhinav Rai), (Saket
Singhal), (Puja Manchanda), (Gurpreet Singh)
.
(Manash Chatterjee)
(Ashvin Ambalia), (Anupama Sharma)
.
!
, , .
, , .
, .
.
Web- . , ,
, ,
.
, ,
. .
:
info@williamspublishing.com
E-mail:
http://www.williamspublishing.com
WWW:
:
: 115419, , / 783
: 03150, , / 152
, :
;
,
;
;
,
;
, ,
.
22
AutoCAD ,
,
. , , .
AutoCAD , . , (0.0, 0.0) (12.0, 9.0), 0 (
), . ,
AutoCAD
. , , , ,
, , , ,
, .
.
.
, , , , , , LTSCALE
. , , ,
, . , ,
.
,
, , , , , ,
(, ).
AutoCAD , Acad.dwt, Acadiso.dwt, Ansi a (portrait) -color dependent plot styles.dwt,
Din a1 -named plot styles.dwt . ANSI, DIN ISO
,
(ANSI American National Standards Institute), DIN ()
(ISO International Organization
for Standardization). ,
Startup ( ), Create New Drawing
( ). - ,
Use a Template ( ) . , . , ,
Create New Drawing Start from Scratch
( ). , , :
CHAMFERA
CHAMFERB
COLOR
DIMALT
DIMALTD
DIMALTF
DIMPOST
DIMASO
DIMASZ
FILLETRAD
GRID
GRIDMODE
ISOPLANE
LIMMIN
LIMMAX
LTSCALE
MIRRTEXT
TILEMODE
23
0.500
0.500
ByLayer
Off
2
25.4
None
On
0.18
0.500
0.500
0
Left
0.0000,0.0000
12.000,9.0000
1.0
1 (
, )
1 (On)
1
Advanced Setup ( ), Create New Drawing (
).
proto1.dwr.
0'-0.00"
0
14496
1
Options (), Tools Options
(), System () Show
Startup dialog box ( ) Startup
( ). Create New Drawing,
FileNew (). Use a Wizard ( )
Advanced Setup ( ), . 1.1. . Units () Advanced Setup.
2
Select the unit of measurement ( ) Engineering (). Precision ()
0'-0.00", . 1.2, Next
(). Advanced Setup,
Angle ().
24
3
Angle Decimal Degrees ( ), Precision () 0,
. 1.3. Next ().
Advanced Setup, Angle Measure ( ).
4
Angle Measure East ().
Angle Direction ( ), Next ().
25
5
Counter-Clockwise ( )
Next (). Area ( ).
(14496 ), 144 96 Width
() Length (). Finish (). , ZOOM All.
, proto1.dwt.
2
c , ,
proto2.dwt.
18.0, 12.0
0.25
0.50
0.125
( )
X ()
,
26
1:
AutoCAD Start from Scratch (
) Create New Drawing ( ).
Default Settings ( ) Imperial (feet and
inches) ( ( )), . 1.4. ,
OK.
2: , ,
LIMITS (). Drawing Limits
( ) Format () LIMITS :
Command: LIMITS
Specify lower left corner or [ON/OFF] <0.00,0.00>: 0,0
Specify upper right corner <12.0,9.0>: 18.0,12.0
: LIMITS
[/] <0.00,0.00>: 0,0
<12.0,9.0>: 18.0,12.0
27
SNAP GRID.
, TEXTSIZE :
Command: TEXTSIZE
Enter new value for TEXTSIZE <0.2000>: 0.125
: TEXTSIZE
TEXTSIZE <0.2000>: 0.125
3:
Drawing Units ( ),
. 1.5. FormatUnits ()
UNITS . 0.000
Precision (), Length ( ).
Decimal Degrees ( ) Type () 0.00 Precision (),
Angle (). , Clockwise
( ), Angle.
Direction Control ( ),
Direction (), East () (. 1.6).
.
4
proto2.dwt, SAVE
(). AutoCAD Drawing Template (*dwt) (
AutoCAD (*.dwt)) Files of type ( ), Save Drawing As (), proto2.dwt File name ( ) Save ().
28
, .
Save Drawing As, , A B.
.
AutoCAD QNEW (),
Standard ().
, , Options (). Startup
( ) Show Startup dialog box, AutoCAD
Create New Drawing ( ).
Use a Template ( ). Select a Template
( ) , Templates
(. 1.7). , Browse
(). Select a template file ( ), , .
. 1.7. , Templates
29
, proto1.dwt.
AutoCAD , , proto1.dwt.
,
(, PROTOB, 1812
, PROTOC, 2418 ).
. FILEDIA 0, QNEW. ,
.
, . ,
. ,
, , .
. -
30
, , .
3
proto3.dwt
, (. 1.9).
. 1.9. 3
48.0,36.0
0.25
0.012"
4.0
4.0
0
OBJ
CEN
HID
DIM
BOR
Continuous ()
Continuous ()
Center ()
Hidden ()
Continuous ()
Continuous ()
White ()
Red ()
Yellow ()
Blue ()
Green ()
Magenta ()
31
1: , ,
, , .
Create New Drawings ( )
Start from Scratch ( ). .
(. 1.9). , , ,
1 (1.0 ) . 0.012".
3, :
1. LIMITS, Drawing Limits ( )
Format () LIMITS . :
Command: LIMITS
Specify lower left corner or [ON/OFF] <0.00,0.00>: 0,0
Specify upper right corner <12.0,9.0>: 48.0,36.0
: LIMITS
[./.] <0.00,0.00>: 0,0
<12.0,9.0>: 48.0,36.0
2. , , ZOOM
All.
3. , TEXTSIZE .
Command: TEXTSIZE
Enter new value for TEXTSIZE <0.2000>: 0.25
: TEXTSIZE
TEXTSIZE <0.2000>: 0.25
4. , RECTANG. :
Command: RECTANG
Specify first corner point or
[Chamfer/Elevation/Fillet/Thickness/Width]: 1.0,1.0
Specify other corner point or [Dimensions]: 47.0,35.0
: RECTANG
[////]: 1.0,1.0
[]: 47.0,35.0
32
6. ,
LTSCALE .
Command: LTSCALE
Enter new linetype scale factor <current>: 4.0
: LTSCALE
<>: 4.0
2: ,
Dimension Style Manager ( ), . 1.10.
, Dimension Style (
), Dimension (),
Style () Dimension ().
, DIMSTYLE
. New (), Dimension Style Manager. Create New
Dimension Style ( ).
MYDIM1, New Style Name ( ),
Continue () (. 1.11).
New Dimension Style:MYDIM1 ( :MYDIM1).
, Fit
() New Dimension Style:MYDIM1. 4
Use overal scale of ( ), Scale for
Dimension Features ( ) (. 1.12).
33
Text () New Dimension Style ( ) Over the dimension line, with a leader (
), Text Placement ( ).
Aligned with the dimension line ( ),
Text () Text Alignment ( ). New Dimension Style ( ),
.
, MYDIM1, Styles
() Dimension Style Manager ( ).
, , Set Current (). , Close
().
34
3:
Layer Properties Manager ( ), Layer Properties Manager ( ),
Layers (), Layer () Format ()
(. 1.13).
, Layer Properties
Manager. LAYER .
New (),
Layer Properties Manager, Layer1, OBJ.
Select Color ( ), OBJ, (red) OK; OBJ. , New,
, Layer1 CEN. Select
Linetype ( ),
.
, .
Load or Reload Linetypes ( ), Load (). CENTER Available Linetypes (
) OK. Select Color (
), (yellow) OK;
CEN. , .
(, ).
-LAYER.
4:
.
proto3.dwt. , (PROTO3),
, 3.
35
( )
()
() . , , , , . -,
, .
. - .
4
, . 1.14. (3)
, , , . 10,58 . 0,5 1/2"=1".
:
1, -1, 1
0, 0, 1
1, 0, 0
0, -1,0
. 1.14.
36
AutoCAD . , .
1
, LAYOUT.
, Model ()
Layout (), New Layout ( ).
Command: LAYOUT
Enter layout option
[Copy/Delete/New/Template/Rename/SAveas/Set/?] <set>: N
Enter new Layout name <Layout3>: Layout3
: LAYOUT
[/////
//?] <>: N
<Layout3>: Layout3
2
Page Setup - Layout3 ( - 3),
(Layout3). Plot
Device ( ). , . HP LaserJet 4000.
3
Layout Settings ( ) , .
8,511 . , . (Layout3)
, . , ERASE
.
4
VIEW, , . Layer Properties Manager
( ). New (),
Layer1, VIEW. Select
Color ( ), VIEW, (green) OK; VIEW.
, , OK.
5
, MVIEW. Viewports4Viewports ( 4
) View () MVIEW .
, ,
.
37
Command: MVIEW
Specify corner of viewport or
[ON/OFF/Fit/Hideplot/Lock/Object/Polygonal/Restore/2/3/4] <Fit>: 4
Specify first corner or [Fit] <Fit>: 0.25,0.25
Specify opposite corner: 10.25,7.75
: MVIEW
[///////
/2/3/4] <>: 4
[] <>: 0.25,0.25
: 10.25,7.75
, ,
0,5, ZOOM.
ViewZoomScale () ZOOM .
Command: ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or
[All/Center/Dynamic/Extents/Previous/Scale/Window] <real time>: 0.5XP
: ZOOM
, (nX nXP)
[/ // ///]
< >: 0.5XP
.
.
6
VPOINT , .
View3D ViewsVPOINT VPOINT
.
Command: VPOINT
Current view direction: VIEWDIR=0.0000, 0.0000, 1.0000
Specify a view point or [Rotate] <display compass and tripod>: 0,-1,0
: VPOINT
: VIEWDIR=0.0000,0.0000,1.0000
[] <
>: 0,-1,0
38
7
, MODEL (), , PBORDER .
, , PLINE, ( ).
PSPACE.
PLINE (), Polyline (),
Draw (),
Polyline () Draw (). PLINE
.
Command: PLINE
Specify start point: 0,0
Current line-width is 0.0000
Specify next point or
[Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or
[Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or
[Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or
[Arc/Close/Halfwidth/Length/Undo/Width]:
0,8.0
10.5,8.0
10.5,0
C
: PLINE
: 0,0
0.0000
[/////]:
[/////]:
[/////]:
[/////]:
0,8.0
10.5,8.0
10.5,0
C
8
: Model ( TILEMODE 1) -.
, , . 1.18, - . Layout3, (. 1.15). ,
PAN (). , , VIEW. Layout3,
1:1, .
39
. 1.15.
,
.
. -,
( ) ,
.
.
-, () .
5
- ,
. 1.16.
:
1, -1, 1
0, 0, 1
1, 0, 0
0, -1, 0
40
. 1.16. ,
1
AutoCAD .
2:
VPORTS ().
Viewports ( ), . 1.17, Display
Viewports Dialog, Viewports ( ), ViewportsNew Viewports (
) View (). Standard Viewports ( ) Four:Equal (: ).
Preview () . Setup () 3D. , : Top (
), Front ( ), Right ( ) SE Isometric ( ). :
(Top) 0,0,1, (Front) 0,-1,0, (Right) 1,0,0,
(SE Isometric) 1,-1,1, .
OK. , proto5.dwt.
VPOINT -VPORTS,
.
3
, . 1.18.
41
4
TEST,
proto5.dwt. , . 1.18.
(. 1.19).
. 1.17. Viewports
. 1.18.
42
. 1.19.
. , , ,
, . , ,
, , , .
. , ,
1/16"=1', 3624 , , , DIMSCALE
LTSCALE, . , , .
, .
43
6
(PROTO6), :
3624 (. 1.20)
1/8"=1.0'
3'
6'
1/4"
0'-01/16"
//
0d00'
X ()
,
1"
.
1/32" (. 1.20)
. 1.20.
1: , ,
. , ()
. ,
LTSCALE DIMSCALE , .
,
, , .
44
:
3624
1/8"=1' 1"=8'
:
X (X Limit)
Y (Y Limit)
3624 , 1/8"=1',
X Limit = 36 8' = 288'
Y Limit = 24 8' = 192'
:
1/4"
1/8"=1'
:
1/8"=1'
1/8"=12"
1"=96",
, 96.
, 1/4" 96 = 24" = 2'
,
:
1/8"=1'
1/8'=12"
1"=96"
:
LTSCALE DIMSCALE
96,
LTSCALE = = 96.
, DIMSCALE = 96
( , DIMTXT DIMASZ, 96.)
:
1/8"=1'
:
45
1/8"=1'
1/8'=12"
1"=96",
1/32 96 = 3"
, ,
AutoCAD,
proto6.dwt.
2:
Drawing Units ( ), Units () Format ()
UNITS . Architectural () Type (), Length ( ).
Precision () 0'-01/16". ,
Clockwise ( ), Angle ( ). Type
() Deg/Min/Sec (//),
Precision () 0d00'. Directional
Control ( ), Direction (). Base Angle ( ) East (),
OK.
3: , ,
, ,
LIMITS. Drawing Limits ( ) Format () LIMITS .
Command: LIMITS
Specify lower left corner or [ON/OFF] <0'-00",0'-00">: 0,0
Specify upper right corner <1'-0",0'-9">: 288',192'
: LIMITS
[/] <0'-00",0'-00">: 0,0
<1'-0",0'-9">: 288',192'
46
, TEXTSIZE :
Command: TEXTSIZE
Enter new value for TEXTSIZE <current>: 2'
: TEXTSIZE
TEXTSIZE <>: 2'
LTSCALE, Linetype
Manager ( ), Linetype ( )
Format () LINETYPE .
Show details ( ) 96 Global
scale factor ( ).
, LTSCALE .
DIMSTYLE,
Dimension Style Manager ( ), Dimension
Style ( ), Dimension
(), Style () Dimension ().
New (), Dimension
Style Manager. Create New Dimension Style (
). MYDIM2, New Style Name ( ), Continue
(). New Dimension Style:MYDIM2 (
:MYDIM2).
Fit () New Dimension Style:MYDIM2.
96 Use overal scale of ( ), Scale for Dimension Features ( ).
Dimension Style Manager, . ,
Close ().
PLINE (), Polyline (),
Draw (),
PLINE .
Command: PLINE
Specify start point: 8',8'
Current line-width is 0.0000
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: W
Specify starting width <0.00>: 3
Specify ending width <0'-3">: <Enter>
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: 280',8'
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: 280',184'
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: 8',184'
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: C
: PLINE
: 8',8'
0.0000
[/////]: W
<0.00>: 3
47
<0'-3">: <Enter>
[/////]: 280',8'
[/////]: 280',184'
[/////]: 8',184'
[/////]: C
, proto6.dwt.
,
.
1. ___________.
2. , _____________,
Create New Drawing (
).
3. , _________
Create New Drawing ( ).
4. 3624 ,
1/2"=1', ________ X ________
Y.
5. AutoCAD __________.
.
1. , DIMSCALE, ________.
2. , DIMTEXT, _________.
3. , SNAP, _________.
4.
__________ _________.
5. AutoCAD :
___________, ___________ __________.
6. 2418 , 1=20,
________ X _________ Y.
7. 200150,
(0.00,0.00) (600.00,450.00),
LTSCALE _________.
8. , _______.
9. TILEMODE ________ ________.
10. , , ZOOM __________.
48
1 ()
(protoe1.dwt) .
0'-0 1/16"
0
48'36'
2 ()
(protoe2.dwt) .
36.0,24.0
0.5
1.0
0.25
0.00
0
X ()
,
3 ()
(protoe3.dwt) .
LTSCALE
DIMSCALE
48.0,36.0
0.25
0.03
4.0
4.0
10.58
0
OBJECT
CENTER
HIDDEN
DIM
BORDER
(Continuous)
(Continuous)
(Center)
(Hidden)
(Continuous)
(Continuous)
(White)
(Green)
(Magenta)
(Blue)
(Red)
(Cyan)
49
4 ()
-
protoe4.dwt.
LTSCALE
36.0,24.0
35.0,23.0
1.0
0.5
0.15
( )
1.0
Object
0
Object
Hidden
Center
Dim
Border
Notes
(Continuous)
(Continuous)
(Hidden)
(Center)
(Continuous)
(Continuous)
(Continuous)
(White)
(Red)
(Yellow)
(Green)
(Blue)
(Magenta)
(White)
- ,
. 1.21.
. 1.21. -
50
5 ()
-
protoe5.dwt.
LTSCALE
DIMSCALE
36"24" (. 1.22)
1/2" = 1.0'
1/4"
24
24
0'-0 1/32'
//
0d00"00"
,
1-1/2" .
1/32".
. 1.22. , 5
51
6 ()
-
protoe6.dwt.
24"18" (. 1.23)
1/2" = 1.0'
1" .
0.05"
(. 1.23).
. 1.23. -
1 .dwt, 2 Use a Template ( ), 3 Start From Scratch ( ), 4 72"48", 5 MVIEW.
, :
,
SCRIPT;
RSCRIPT DELAY
;
AutoCAD;
;
.
54
?
AutoCAD ,
AutoCAD,
. , , , Notepad
(), EDIT ( ACAD.PGP , EDIT ). .scr (, plot1.scr)
SCRIPT.
,
, . ,
, , . : - . , , , AutoCAD
,
.
1
,
( script1.scr). , 129 . ( 4.)
LTSCALE
DIMSCALE
. (On)
2.0
0.5
0,0 48.0,36.0
0.125
4.0
4.0
1:
,
AutoCAD , . , ,
, . AutoCAD, 1.
Command: ORTHO
Enter mode [ON/OFF] <OFF>: ON
: ORTHO
[/] <>: ON
Command: GRID
Specify grid spacing(X) or [ON/OFF/Snap/Aspect] <1.0>: 2.0
: GRID
X [///] <1.0>: 2.0
Command: SNAP
Specify snap spacing or [ON/OFF/Aspect/Rotate/Style/Type] <1.0>: 0.5
: SNAP
[/////] <1.0>: 0.5
Command: LIMITS
Reset Model space limits:
Specify lower left corner or [ON/OFF] <0.0,0.0>: 0,0
Specify upper right corner <12.0,9.0>: 48.0,36.0
: LIMITS
:
[/] <0.0,0.0>: 0,0
<12.0,9.0>: 48.0,36.0
Command: ZOOM
Specify corner or window, enter a scale factor (nX or nXP), or
[All/Center/Dynamic/Extents/Previous/Scale/Window] <real time>: A
: ZOOM
, (nX nXP)
[/ // ///]
< >: A
Command: TEXTSIZE
Enter new value for TEXTSIZE <0.02>: 0.125
: TEXTSIZE
TEXTSIZE <0.02>: 0.125
Command: LTSCALE
Enter new linetype scale factor <1.0000>: 4.0
: LTSCALE
<1.0000>: 4.0
Command: DIMSCALE
Enter new value for DIMSCALE <1.000>: 4.0
: DIMSCALE
DIMSCALE <1.0000>: 4.0
55
56
2:
, , , , - , Notepad ().
EDIT ().
AutoCAD , .
MS-DOS (MS-DOS Editor),
<Enter>. 1.
ORTHO
ON
GRID
2.0
SNAP
0.5
LIMITS
0,0
48.0,36.0
ZOOM
ALL
TEXTSIZE
0.125
LTSCALE
4.0
DIMSCALE 4.0
, . ,
, :
; , SCRIPT1.SCR
ORTHO ON
GRID 2.0
SNAP 0.5
LIMITS 0,0 48.0,36.0
ZOOM
ALL
TEXTSIZE 0.125
LTSCALE 4.0
DIMSCALE 4.0
script.scr
. , ,
.scr, . , , (, ORTHO
ON GRID 2.0).
.
, . , , , <Enter>
. , ZOOM
All, , .
57
AutoCAD ,
(;). ,
.
SCRIPT ()
. Select Script File
( ), . 2.1, Run Script (
) Tools (). ,
SCRIPT .
, . . ,
(.SCR). ( ,
.)
3:
1, SCRIPT
, Select Script File SCRIPT1,
Open () (. . 2.1).
,
FILEDIA 0. ,
, :
Command: FILEDIA
Enter new value for FILEDIA <1>: 0
Command: SCRIPT
Enter script file name <current>:
58
2
: FILEDIA
FILEDIA <1>: 0
: SCRIPT
<>:
2
, , .
script2.scr.
Object
Center
Hidden
Dimension
Border
Hatch
(Red)
(Yellow)
(Blue)
(Green)
(Magenta)
(Cyan)
(Continuous)
(Center)
(Hidden)
(Continuous)
(Continuous)
(Continuous)
0.05
1:
,
AutoCAD , .
, . :
Command: -LAYER
: -LAYER
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: N
Enter name list for new layer(s): OBJECT,CENTER,HIDDEN,DIM,BORDER,HATCH
[?////////
//////
/]: N
(): OBJECT,CENTER,HIDDEN,DIM,BORDER,HATCH
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: L
Enter loaded linetype name or [?] <Continuous>: CENTER
Enter name list of layer(s) for linetype "CENTER" <0>: CENTER
[?////////
//////
/]: L
[?] <>: CENTER
() "CENTER" <0>: CENTER
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: L
Enter loaded linetype name or [?] <Continuous>: HIDDEN
Enter name list of layer(s) for linetype "HIDDEN" <0>: HIDDEN
[?////////
//////
/]: L
[?] <>: HIDDEN
() "HIDDEN" <0>: HIDDEN
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: C
New color [Truecolor/COlorbook] <7 (white)>: RED
Enter name list of layer(s) for color 1 (red) <0>: OBJECT
[?////////
//////
/]: C
[/] <7 ()>: RED
() 1 () <0>: OBJECT
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: C
New color [Truecolor/COlorbook] <7 (white)>: YELLOW
Enter name list of layer(s) for color 2 (yellow) <0>: CENTER
[?////////
//////
/]: C
[/] <7 ()>: YELLOW
() 1 () <0>: CENTER
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: C
New color [Truecolor/COlorbook] <7 (white)>: BLUE
Enter name list of layer(s) for color 5 (blue) <0>: HIDDEN
[?////////
//////
/]: C
[/] <7 ()>: BLUE
() 1 () <0>: HIDDEN
59
60
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: C
New color [Truecolor/COlorbook] <7 (white)>: GREEN
Enter name list of layer(s) for color 3 (green) <0>: DIM
[?////////
//////
/]: C
[/] <7 ()>: GREEN
() 1 () <0>: DIM
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: C
New color [Truecolor/COlorbook] <7 (white)>: MAGENTA
Enter name list of layer(s) for color 6 (magenta) <0>: BORDER
[?////////
//////
/]: C
[/] <7 ()>: MAGENTA
() 1 () <0>: BORDER
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: C
New color [Truecolor/COlorbook] <7 (white)>: CYAN
Enter name list of layer(s) for color 4 (cyan) <0>: HATCH
[?////////
//////
/]: C
[/] <7 ()>: CYAN
() 1 () <0>: HATCH
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: LW
Enter lineweight (0.0mm - 2.11mm): 0.05
Enter name list of layer(s) for lineweight 0.05mm <0>: HATCH
[?/Make/Set/New/ON/OFF/Color/Ltype/Lweigth/Plot/Pstyle/Freeze/
Thaw/Lock/Unlock/stAte]: <Enter>
[?////////
//////
/]: LW
( (0,0 - 2,11 ): 0.05
61
2:
, :
;
;
LAYER
NEW
OBJECT,CENTER,HIDDEN,DIM,BORDER,HATCH
L
CENTER
CENTER
L
HIDDEN
HIDDEN
C
RED
OBJECT
C
YELLOW
CENTER
C
BLUE
HIDDEN
C
GREEN
DIM
C
MAGENTA
BORDER
C
CYAN
HATCH
( , LAYER. .)
, script2.scr.
3:
, ,
Select Script File ( ). Run Script
( ) Tools () SCRIPT . SCRIPT2, Open ().
SCRIPT ,
FILEDIA 0.
62
3
, ,
, 45-
(. 2.2). 45 2- .
, .
script3.scr.
. 2.2. , 45-
1:
,
AutoCAD , . ,
. AutoCAD, , , :
Command: ROTATE
Current positive angle in UCS: ANGDIR=counterclockwise ANGBASE=0
Select objects: W
Specify first corner: 2.25,5.0
Specify opposite corner: 6.25,9.0
Select objects: <Enter>
Specify base point: 4.25,6.5
Specify rotation angle or [Reference]: 45
: ROTATE
: ANGDIR= ANGBASE=0
: W ( Window (W), )
: 2.25,5.0
: 6.25,9.0
: <Enter>
: 4.25,6.5
[]: 45
63
2:
, AutoCAD, , , . , , , .
, . , .
ROTATE
W
2.25,5.0
6.25,9.0
( )
4.25,6.5
45
1
2
3
4
5
6
7
1
ROTATE
ROTATE AutoCAD, .
2
W
W Window (),
.
3
2.25,5.0
2.25 5.0 X Y
, .
4
6.25,9.0
6.25 9.0 X Y
, .
5
.
6
4.25,6.5
4.25 6.5 X Y .
7
45
45 .
64
,
, . , - Window (),
Window (W) ,
. , .
,
, . AutoLISP.
3:
, script3.scr.
4:
Select Script File ( ),
Run Script ( ) Tools () SCRIPT
() . SCRIPT3,
Open (). ,
, , , 45 . , .
, , , ,
. ,
() .
RSCRIPT
, . ,
. , , , RSCRIPT
, <Esc>. ,
.
, RSCRIPT,
.
ROTATE
W
2.25,5.0
6.25,9.0
( )
4.25,6.5
45
RSCRIPT
RSCRIPT, 8,
( 1-7) .
script3.scr , -
65
. ,
, . ,
, .. . , <Esc>
<Backspace>.
, . AutoLISP.
, , , , , , .
, . ,
, ,
,
. DELAY (), . :
Command: DELAY
Command AutoCAD;
DELAY DELAY ();
.
. ,
2000 , AutoCAD .
, .
, , 32 767 (
32 ). 3 DELAY , 7 8 , :
ROTATE
W
2.25,5.0
6.25,9.0
( )
4.25,6.5
45
DELAY 2000
RSCRIPT
45 . RSCRIPT, 8,
66
2000 ( 2 ). RSCRIPT
, 45 .
, ( 45 ) .
, - , RESUME.
Command: RESUME
,
, . RESUME () ,
, .
, , ('RESUME).
Command: 'RESUME
acad.exe,
AutoCAD. ,
Options ()
autoexec.bat.
, Options.
.
:
/c
/s
, ,
/b
, AutoCAD
/t
/nologo
AutoCAD ,
/v
, AutoCAD
/r
AutoCAD, ,
/p
67
AutoCAD
AutoCAD, .. ,
. , AutoCAD, :
"C:\Program Files\AutoCAD2004\acad.exe" [ ]
[/t ] [/v ] /b
. 2.3. Run,
AutoCAD
temp1 ;
Setup
68
AutoCAD
(Drawing), (Setup).
Setup .
, AutoCAD AutoCAD 2004.
AutoCAD, ,
, . , , . ,
Run
, .
, . , "" ,
. , , . .
4
, AutoCAD
, (
script4.scr).
LTSCALE
DIMSCALE
3.0
0.5
0,0
36.0,24.0
0.25
3.0
3.0
Obj
Cen
Hid
Dim
(Red)
(Yellow)
(Blue)
(Green)
(Continuous)
(Center)
(Hidden)
(Continuous)
1:
script4.scr. ,
:
69
GRID 3.0
SNAP 0.5
LIMITS 0,0 36.0,24.0 ZOOM ALL
TEXTSIZE 0.25
LTSCALE 3
DIMSCALE 3.0
LAYER NEW
OBJ,CEN,HID,DIM
L CENTER CEN
L HIDDEN HID
C RED OBJ
C YELLOW CEN
C BLUE HID
C GREEN DIM
( <Enter>)
2: Run
, , . SCRIPT4,
StartRun (),
:
"C:\Program Files\AutoCAD2004\acad.exe" /t EX4 /b SCRIPT4
acad.exe , AutoCAD;
EX4 ;
SCRIPT4 .
, (EX4) (SCRIPT4) . , AutoCAD
ex4.dwt. (SCRIPT4) , .
AutoCAD
(Drawing), SCRIPT4 (. 2.4).
. 2.4. Run,
AutoCAD
70
SCRIPT4 .
, AutoCAD
AutoCAD 2004.
5
, 3624
8,511 .
. , , Window ().
1:
, ,
, . , , -PLOT (-)
, .
(
).
:
Command: -PLOT
Detailed plot configuration? [Yes/No] <No>: Yes
Enter a layout name or [?] <Model>: <Enter>
Enter an output device name or [?] <HP LaserJet 4000
Series PCL 6>: <Enter>
Enter paper size or [?] <Letter (8 1/2 11 in)>: <Enter>
Enter paper units [Inches/Millimeters] <Inches>: I
Enter drawing orientation [Portrait/Landscape] <Landscape>: L
Plot upside down? [Yes/No] <No>: N
Enter plot area [Display/Extents/Limits/View/Window] <Display>: W
Enter lower left corner of window <0.000000,0.000000>: 0,0
Enter upper right corner of window <0.000000,0.000000>: 36,24
Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <Fit>: F
Enter plot offset (x,y) or [Center] <0.00,0.00>: 0,0
Plot with plot styles? [Yes/No] <Yes>: Y
Enter plot style table name or [?] (enter . for none) <>: .
Plot with lineweight? [Yes/No] <Yes>: Y
Enter shade plot settings [As displayed/Wireframe/Hidden/Rendered]
<As displayed>: <Enter>
Write the plot to a file [Yes/No] <N>: N
Save changes to page setup? Or set shade plot quality?
[Yes/No/Quality] <N>: <Enter>
Proceed with plot [Yes/No] <Y>: Y
71
: -PLOT
? [/] <>: Yes
[?] <>: <Enter>
[?] <HP LaserJet 4000
Series PCL 6>: <Enter>
[?] <Letter (8 1/2 11 in)>: <Enter>
[/] <>: I
[/] <>: L
[/] <>: N
[////] <>: W
<0.000000, 0.000000>: 0,0
<0.000000, 0.000000>: 36,24
( = )
[] <>: F
(x,y) [] <0.00,0.00>: 0,0
? [/] <>: Y
[?] ( ,
(.)) <>: .
? [/] <>: Y
[ / //
] < >: <Enter>
[/] <>: N
?
? [//]
<>: <Enter>
[/] <>: Y
2:
, ,
. , 36"24" 8,5"11".
, , .
Plot
Y
( <Enter>,
)
( <Enter>,
)
( <Enter>,
)
I
L
N
W
0,0
36,24
F
0,0
Y
.
( , (.))
72
2
Y
( <Enter>,
, )
N
N
Y
,
. , ,
. , , . , ,
, ,
- . ,
, ,
.
1 ()
, 288'192'
36"24". 1/8"=1'. (
script9.scr.) , AutoCAD
HPGL; HPGL-Plotter).
6
.
() 5 , ( ) 2 (. 2.5).
.
. 2.5. 6
73
.
,
(Blue)
8.0
8.4
5,5
( )
(Green)
5,8.5
0.5
0.5
0.5
()
(Red)
5,5
0.5
0.0
3.5
5
()
(Cyan)
5,5
0.35
0.0
3.5
2
1:
,
. . .
, ,
clock.scr. :
Command: -COLOR
Enter default object color [Truecolor/COlorbook] <BYLAYER>: Blue
Command: DONUT
Specify inside diameter of donut <0.5>: 8.0
Specify outside diameter of donut <0.5>: 8.4
Specify center of donut <exit>: 5.5
Specify center of donut <exit>: <Enter>
Command: -COLOR
Enter default object color [Truecolor/COlorbook] <BYLAYER>: Green
Command: PLINE
Specify start point: 5,8.5
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: Width
74
2
Specify starting width <0.00>: 0.25
Specify ending width <0.25>: 0.25
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @0.25<270
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: <Enter>
Command: -ARRAY
Select objects: Last
Select objects: <Enter>
Enter the type of array [Rectangblar/Polar] <R>: Polar
Specify center point of array: 5.5
Enter the number of items in the array: 12
Specify the angle to fill(+= ccw, -= cw) <360>: 360
Rotate arrayed objects? [Yes/No] <Y>: Y
Command: -COLOR
Enter default object color [Truecolor/COlorbook] <BYLAYER>: Red
Command: PLINE
Specify start point: 5,5
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: Width
Specify starting width <0.5>: 0.5
Specify ending width <0.5>: 0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @3.5<0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: <Enter>
Command: -COLOR
Enter default object color [Truecolor/COlorbook] <BYLAYER>: Cyan
Command: PLINE
Specify start point: 5,5
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: Width
Specify starting width <0.5>: 0.35
Specify ending width <0.35>: 0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: @3<90
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]: <Enter>
Command: SCRIPT
ROTATE.SCR
: -COLOR
[/] <BYLAYER>: Blue
: DONUT
<0.5>: 8.0
<0.5>: 8.4
<>: 5.5
<>: <Enter>
: -COLOR
[/] <BYLAYER>: Green
: PLINE
: 5,8.5
[/////]: Width
<0.00>: 0.25
<0.25>: 0.25
[/////]: @0.25<270
[////
75
/]: <Enter>
: -ARRAY
: Last
: <Enter>
[/] <>: Polar
: 5.5
: 12
(+= , -=
) <360>: 360
? [/] <>: Y
: -COLOR
[/] BYLAYER>: Red
: PLINE
: 5,5
[////
/]: Width
<0.00>: 0.5
<0.25>: 0
[////
/]: @3.5<0
[////
/]: <Enter>
: -COLOR
[/] <BYLAYER>: Cyan
: PLINE
: 5,5
[////
/]: Width
<0.00>: 0.35
<0.25>: 0
[////
/]: @3<90
[////
/]: <Enter>
: SCRIPT
ROTATE.SCR
, clock.scr. (-),
, . :
. , . , COLOR () ARRAY ()
. :
Color
Blue
Donut
8.0
8.4
5,5
76
2
<Enter>
Color
Green
Pline
5,8.5
W
0.25
0.25
@0.25<270
<Enter>
Array
L
<Enter>
P
5,5
12
360
Y
Color
Red
Pline
5,5
W
0.5
0
@3.5<0
<Enter>
Color
Cyan
Pline
5,5
W
0.35
0
@3<90
<Enter>
Script
( ,
ROTATE.SCR
)
2: ,
ROTATE.SCR, , . ,
77
ROTATE (), ,
. AutoCAD, .
Command: ROTATE
Select objects: L
Select objects: <Enter>
Specify base point: 5,5
Specify rotation angle or [Reference]: -2
Command: ROTATE
Select objects: C
Specify first corner: 3,3
Specify other corner: 7,7
Select objects: Remove
Remove objects: L
Remove objects: <Enter>
Specify base point: 5,5
Specify rotation angle or [Reference]: -5
: ROTATE
: L
: <Enter>
: 5,5
[]: -2
: ROTATE
: C
: 3,3
: 7,7
: Remove
: L
: <Enter>
: 5,5
[]: -5
,
rotate.scr. , , :
Rotate
L
<Enter>
5,5
-2
Rotate
C
3,3
7,7
R
L
<Enter>
5,5
-5
Rscript
78
rotate.scr. clock.scr.
rotate.scr, rotate.scr. ,
AutoCAD, clock.scr rotate.scr.
AutoCAD .
AutoCAD
. ,
. , .
, , AutoCAD. , ZOOM
() PAN () , . , . ,
. ,
,
.
, , . , ,
. , .
,
, , .
, ,
AutoCAD. , , ,
, . , , , , .
, AutoCAD, .
- , ,
, .
AutoCAD MSLIDE. FILEDIA 1, MSLIDE
Create Slide File (. 2.6),
. FILEDIA 0,
MSLIDE .
79
Command: MSLIDE
Enter name of slide file to create <Default>:
: MSLIDE
< >:
Command: MSLIDE
Slide File: <Drawing1> SLIDE1
Drawing1 , ;
SLIDE1 .
AutoCAD slide1.sld.
MSLIDE, , , . ,
, .
MSLIDE .
, VSLIDE .
Select Slide File ( ), . 2.7.
, , Open ().
80
.
FILEDIA 0,
.
Command: VSLIDE
Enter name of slide file to create <Default>:
Command: VSLIDE
Slide File: <Drawing1> SLIDE1
Drawing1 , ;
SLIDE1 .
,
, REDRAW (), .
,
REDRAW. , GRID, ZOOM ALL REGEN
, .
. AutoCAD
, . , , , .
81
7
, 15- (. 2.8).
. 2.8.
1:
MSLIDE. Create
Slide File ( ). (, SLADE1), , Save ().
. . 2.8 , SLIDE1, SLIDE2, SLIDE3 SLIDE4. ,
AutoCAD. .
2:
, . EDIT
( ACAD.PGP , EDIT ).
.SCR.
, , . 2.8, . SLDSHOW1.
VSLIDE SLIDE1
DELAY 15000
VSLIDE SLIDE2
DELAY 15000
VSLIDE SLIDE3
DELAY 15000
VSLIDE SLIDE4
DELAY 15000
82
3:
, Run Script ( )
Tools () SCRIPT ()
. Select Sript File ( ).
SLDSHOW1, Open (). .
VSLIDE SLIDE1,
( 7), SLIDE1 . 15000 SLIDE2. ,
. . . AutoCAD ,
.
, .
(*).
VSLIDE SLIDE1
VSLIDE *SLIDE2
DELAY 15000
VSLIDE
VSLIDE *SLIDE3
DELAY 15000
VSLIDE
VSLIDE *SLIDE4
DELAY 15000
VSLIDE
DELAY 15000
RSCRIPT
SLIDE1
SLIDE2
15-
SLIDE2
SLIDE3
15-
SLIDE3
SLIDE4
15-
SLIDE4
15-
8
,
2- SLD1, SLD2 SLD3.
, . 2.9.
:
C: ;
Program Files ;
AutoCAD 2004 , AutoCAD;
SUBDIR1 , ;
SUBDIR2 , ;
SUBDIR3 , ;
SLD1 , SUBDIR1;
83
SLD2 , SUBDIR2;
SLD3 , SUBDIR3.
. 2.9.
,
8.
VSLIDE "C:/Program Files/AutoCAD 2004/SUBDIR1/SLD1.SLD"
DELAY 2000
VSLIDE "C:/Program Files/AutoCAD 2004/SUBDIR2/SLD2.SLD"
DELAY 2000
VSLIDE "C:/Program Files/AutoCAD 2004/SUBDIR3/SLD3.SLD"
DELAY 2000
RSCRIPT
1
VSLIDE "C:/Program Files/AutoCAD 2004/SUBDIR1/SLD1.SLD"
VSLIDE, , SLD1.
VSLIDE. , .
2
DELAY 2000
DELAY (), ,
2- .
3
VSLIDE "C:/Program Files/AutoCAD 2004/SUBDIR2/SLD2.SLD"
VSLIDE, , SLD2,
SUBDIR2. ,
.
5
VSLIDE "C:/Program Files/AutoCAD 2004/SUBDIR3/SLD3.SLD"
VSLIDE, , SLD3,
SUBDIR3.
84
7
RSCRIPT
RSCRIPT, ,
. , , <Esc>
<Backspace>.
AutoCAD SLIDELIB,
. SLIDELIB :
SLIDELIB ( ) <( )
DOS 5.0 ,
, :
C:\AutoCAD 2004\SLIDES>DIR *.SLD/B>SLDLIST
DOS
md (make directory) cd (change directory).
, SLDLIST,
SLIDES.
, .
85
. -
, , , SLIDILIB.
, , . ,
, . VSLIDE
DELAY.
.
. , , , .
9
SLIDELIB, 2,5- . ( : SLDLIST (
), SLDSHOW1 ( ), SHOW1 ( )). front ( ), top ( ), rside ( ), 3dview
() isoview ().
. 2.10, .
. 2.10.
:
C ;
Dwg-Files , ;
Proj-A ;
Proj-B ;
Slide-Files , Slidelib.exe
sldlist.
86
1
,
. , , Slide-Files. , (
EDIT). ,
. ,
, .SLD. ,
SLDLIST ( 9):
C:\Dwg-Files\Proj-A\front
C:\Dwg-Files\Proj-A\top
C:\Dwg-Files\Proj-A\rside
C:\Dwg-Files\Proj-B\3dview
C:\Dwg-Files\Proj-B\isoview
2
,
SLIDELIB. sldshow1.
, (SLDLIST) SLIDELIB, , Slide-Files.
, .
SHELL () AutoCAD,
OS Command: <Enter>.
AutoCAD Shell Active, . 2.11.
DOS, ProgramsMS-DOS Prompt ( MS-DOS).
Command: SHELL
OS Command: <Enter>
SLIDELIB,
, :
C:\Dwg-Files\Slide-Files>SLIDELIB sldshow1 <sldlist
SLIDELIB AutoCAD;
sldshow1 ;
sldlist .
, Slide-Files.
87
3
, , . SHOW1.
VSLIDE sldshow1(front)
DELAY 2500
VSLIDE sldshow1(top)
DELAY 2500
VSLIDE sldshow1(rside)
DELAY 2500
VSLIDE sldshow1(3dview)
DELAY 2500
VSLIDE sldshow1(isoview)
DELAY 2500
RSCRIPT
4
Select Script File, . 2.12. Run Script ( ) Tools ()
SCRIPT () .
SCRIPT , FILEDIA 0.
Command: SCRIPT
Enter script file name <default>: SHOW1
88
, (
). AutoCAD AutoLISP, . :
(C:REPLAY FILENAME TYPE [<XOFF> <YOFF> <XSIZE> <YSIZE>])
. 2.13. ,
89
, AutoCAD 2004 , .
Windows 2000 Windows XP, C:\Documents and Settings\Owner\Local Settings\
Application Data\Autodesk\AutoCAD 2004\R16.0\enu\textures. Windows 98 C:\Windows\
Application Data\Autodesk\AutoCAD 2004\R16.0\enu\textures.
, .
Windows 98
.
(C:REPLAY "C:\Documents and Settings\Owner\Local Settings\Application
Data\Autodesk\AutoCAD 2004\R16.0\enu\textures/BIGLAKE" "TGA" 150 50 944 564)
(replay.scr),
AutoCAD ( *.bmp) . F_ FRAME, R_ RENDERED. , BMP A.
VSLIDE A:\SLIDES\F_ROLL
DELAY 3000
(C:REPLAY "A:/RENDERS/R_ROLL" "BMP" 00 944 564)
DELAY 3000
VSLIDE A:\SLIDES\F_BKCASE
DELAY 3000
(C:REPLAY "A:/RENDERS/R_BKCASE" "BMP" 00 944 564)
DELAY 3000
VSLIDE A:\SLIDES\F_MOUSE
DELAY 3000
(C:REPLAY "A:/RENDERS/R_MOUSE" "BMP" 00 944 564)
DELAY 3000
VSLIDE A:\SLIDES\F_TABLE2
DELAY 3000
(C:REPLAY "A:/RENDERS/R_TABLE2" "BMP" 00 944 564)
DELAY 3000
RSCRIPT
90
,
.
1. AutoCAD ________,
AutoCAD .
2. ________ AutoCAD
________, .
3. ________.
4. ,
, ________.
5. DELAY ________ .
6. - ________ , .. , , , .
7. , ________ .
8. ________.
9. ________.
10. AutoCAD , . AutoCAD, ________.
1. ________ ,
.
2. ________
.
3. ,
________.
4.
________.
5. ,
________.
91
6. ________ ,
.
7. ________ ,
.
8. ________
.
9. , - ,
________.
10. AutoCAD ________,
.
11. ________, ,
.
12. ________, .
13. MSLIDE, ,
________, ________.
14. , , ________ .
15. - , ________
, , .
16. , ,
________ .
17. ________ . - , , , ________.
18. ________ . ,
, , ,
.
92
2 ()
, :
LTSCALE
2.0
0.5
0,0
18.0,12.0
0.25
2.0
2
0.75
3 ()
, ,
. script3.scr.
Contour
Spipes
Wpipes
Power
Manholes
Trees
(Red)
(Yellow)
(Blue)
(Green)
(Magenta)
(Cyan)
(Continuous)
(Center)
(Hidden)
(Continuous)
(Continuous)
(Continuous)
4 ()
, :
LTSCALE
0,0
24,18
1.0
0.25
. (On)
. (On)
0.02
0,0 24,0 24,18 0,18 0,0
1.5
0.00
0
X ()
,
93
Obj
Cen
Hid
Dim
(Red)
(Yellow)
(Blue)
(Green)
Continuous
Center
Hidden
Continuous
5 ()
,
. ( ;
.)
Window ().
(0,0 24,18).
.
.
(0.0,0.0).
(8.5,11 , /).
90 .
.
().
6 ()
,
.
10 (. 2.14). .
. 2.14. 6
94
7 ()
, , . 2.15. , ,
, ,
. ,
. 5 .
. 2.15. 7
2,4
8,4
2,4
1.0
8,4
1.0
5,1
5,7
5,1
1.0
5,7
1.0
( .
, .
,
.)
95
8 ()
, . 2.16, , . 5- . ( ,
. , .)
. 2.16. ,
9 ()
, 8,
SLDLIST2, SLDLIB2. SHOW2, , 5-
.
1 SCRIPT, 2 , 3 SCRIPT, 4 , 5 , 6 , 7 , 8 MSLIDE, 9 VSLIDE, 10 SLIDELIB.
, :
;
;
;
LTSCALE
;
;
;
;
;
;
;
.
98
AutoCAD , 38
, ISO.
acad.lin. AutoCAD
.
:
.
, (*), . .
, , , .
:
* ,
*HIDDENS, __ __ __ __ __ __
* ;
HIDDENS ;
, ;
__ __ __ __ .
.
, AutoCAD
, . , , ,
. , LINEFCX . , DASHDOT , .
.
, , .
LINETYPE () ?
. 47 .
, , .
:
,
99
,.75,-.25,.75
;
, ;
.75,-.25,.75 .
.
, AutoCAD, .
, .
12 , 80- .
. ,
:
( );
( , 0);
( ).
. ( , 0);
( );
___ ( ).
.
, 0.5, 0,5 .
, , .
, -0.2, ,
0,2 . .
,.5,-.2,0,-0.2,.5
0 ( );
-.2 ( );
.5 ( ).
100
,
. , . ,
. ,
:
(, Notepad);
acad.lin;
LINETYPE ().
, ,
.
1
DASH3DOT (. 3.1), :
0,5;
0,125;
;
0,125;
;
0,125;
;
0,125.
. 3.1. DASH3DOT
1:
.
- (, Notepad), DASH3DOT.
101
(,). , .
, ,
DASH3DOT, .
*DASH3DOT,___ . . . ___ . . . ___
,.5,-.125,0,-.125,0,-.125,0,-.125
newlt.lin Support.
2:
, Linetype Manager
( ), Linetype ( ) Format
(). Load or Reload Linetypes (
), Load (), Linetype Manager.
File Select Linetype ( ), . 3.2,
File (). newlt.lin Open ().
Load or Reload Linetypes. DASH3DOT Available Linetypes ( )
OK. Linetype Manager.
DASH3DOT , Current ().
OK.
acad.lin
1: acad.lin
,
(, Notepad).
acad.lin , .
102
acad.lin :
*BORDER,__ __ . __ __ . __ __ . __ __ . __ __ . __ __ . __
A,.5,-.25,.5,-.25,0,-.25
*BORDER2,__ . __ . __ . __ . __ . __ . __ . __ . __ . __ .
A,.25,-.125,.25,-.125,0,-.125
*BORDERX2,___ ___ . ___ ___ . ___ ___ . ___ ___ . ___ ___ .
A,1.0,-.5,1.0,-.5,0,-.5
*CENTERX2,______ __ ______ __ ______ __ ______ __
A,2.5,-.5,.5,-.5
*DASHDOT,__ . __ . __ . __ . __ . __ . __ . __ . __ . __ .
A,.5,-.25,0,-.25
*DOTX2,. . . . . . . . . . . . . . . . . .
A,.25,-.125
*HIDDEN2,_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,.125,-.0625
*HIDDENX2,____ ____ ____ ____ ____ ____ ____ ____
A,.5,-.25
*PHANTOM,_____ __ __ _____ __ __ _____ __ __ _____
A,1.25,-.25,.25,-.25, .25,-.25
____ ____
__________
____
*PHANTOMX2,__________
*GAS_LINE,Gas line, ----GAS----GAS----GAS----GAS----GAS---A,.5,-.2 ["GAS",STANDARD,S=.1,R=0.0,X=-0.1Y=-.05],-.25
*ZIGZAG,Zig zag /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
A,.001,-.2 [ZIG,ltypesp.shx,x=-.2,s=-.2],-.4,[ZIG,ltypesp.
shx,r=180,x=.2s=.2],-.2
*DASH3DOT,___ . . . ___ . . . ___
,.5,-.125,0,-.125,0,-.125,0,-.125
2:
, , LINETYPE. , . ,
, . 3.3.
LTSCALE , .
103
. 3.3. , DASH3DOT
LINETYPE
1:
LINETYPE, .
-LINETYPE (-) Create ().
Command: -LINETYPE
Enter an option [?/Create/Load/Set]: Create
: -LINETYPE
[?///]: Create
, .
Enter name of linetype to create: DASH3DOT
, :
Wait, checking if linetype already defined...
"Linetype" already exists in this file. Current definition is:
alignment, dash-1, dash-2, ____ .
Overwrite?<N>
104
, ...
" " . :
, -1, -2, ____ .
? <>
, Y. , , <Enter>,
N. , . , , .
Descriptive text: *DASH3DOT,___ . . . ___ . . . ___
Enter linetype pattern (on next line):
,.5,-.125,0,-.125,0,-.125,0,-.125
*DASH3DOT,___ . . . ___ . . . ___
, , . ,
DASH3DOT. *DASH3DOT ;
47 .
( ___ . . . ___ ),
105
- .
.
,.5,-.125,0,-.125,0,-.125,0,-.125
.
AutoCAD , .
,
LINETYPE Create. , ,
. (.5 0.5)
, (-.25 -0.25) . . , 0.5
0.5 . -0.25, 0.25
. , , (.). 1.
.5
-.125
0
-.125
0
-.125
0
-.125
0.5
0.125
0.125
0.125
0.125
, (DASH3DOT) acad.lin.
2:
(DASH3DOT), LINETYPE
() Linetype Manager ( ),
Linetype ( ) Format ().
-LINETYPE Load ().
, , . ,
( __ ). ( ), ( ).
.
, .
DASH3DOT.
1.0 (.5 + .125 + .125 + .125 + .125 = 1.0). 1.0,
(. 3.5). 1.0 ,
DASH3DOT. AutoCAD
.
106
, . 0.5,
0.25.
. 3.5, , ,
.
. 3.5. DASH3DOT
LTSCALE
, DASH3DOT 1.0 (.5 + .125 +
+ .125 + .125 + .125 = 1.0). , 1.0, , (. 3.6).
, ,
LTSCALE . LTSCALE ().
Command: LTSCALE
Enter new linetype scale factor <default>:
: LTSCALE
< >:
. 3.6. LTSCALE = 1
107
108
.
AutoCAD 12,9. . 3.9 DASH3DOT, .
12,9. 48,36,
. , ,
LTSCALE.
,
.
. . 3.9,
.
LTSCALE
, X, (12.00). ,
,
.
LTSCALE =
= /12.00
109
48,36;
LTSCALE = 48/12 = 4;
36,24; 1/4"=1';
LTSCALE = 12 4 (36 / 12) = 144.
, . , 48"36" 48 36 1:1.
LTSCALE 1. acad.lin
, , 0.25.
, 1:1 0.25.
, 1/8"=1',
48"36", LTSCALE 96 (8 12 = 96). LTSCALE 96
96 . ,
24 (0.25 96 = 24). 384'
288' 48"36", 1:96.
, 24",
110
LTSCALE .
(CELTSCALE)
CELTSCALE, LTSCALE, . ,
CELTSCALE . , CELTSCALE 0.5, , , 0.5. CELTSCALE. . 3.10,
(a) 1, () 0.5.
CELTSCALE 0.5, .
LTSCALE . ,
LTSCALE 2, ,
, .
CELTSCALE LTSCALE. . 3.10 () ,
LTSCALE = 1 CELTSCALE = 0.25. LTSCALE CELTSCALE = 2 0.25 = 0.5.
. ,
Properties (), Properties (),
Standard ().
CHANGE () ltScale.
111
. 3.10. CELTSCALE
(LTSCALE) ,
.
. 3.11 (), DASH3DOT
.
, .
CELTSCALE, . ,
. , , DASH3DOT DASH3DOTX, .
*DASH3DOT,___ . . . ___ . . . ___ . . . ___
,.5,-.125,0,-.125,0,-.125,0,-.125
*DASH3DOTX,______ . . . ______
,1,-.25,0,-.25,0,-.25,0,-.25
DASH3DOT ,
DASH3DOTX , . , . . 3.11 () , DASH3DOT
DASH3DOTX.
.
, LTSCALE. , LTSCALE 0.5, DASH3DOT 0.5, DASH3DOTX 1.0 .
112
, , acad.lin.
- ,
acad.lin.
, Notepad. MS-DOS
EDIT ( , acad.pgp , EDIT
). , BORDER,
0,5 0,75, acad.lin, ,
. acad.lin,
border centerx2.
;; AutoCAD Linetype Definition file, Version 2.0
;; Copyright 1991, 1992, 1993, 1994, 1996 by Autodesk, Inc.
;;
*BORDER,Border __ __ . __ __ . __ __ . __ __ . __ __ .
A,.5,-.25,.5,-.25,0,-.25
*BORDER2,Border (.5x) __.__.__.__.__.__.__.__.__.__.__.
A,.25,-.125,.25,-.125,0,-.125
*BORDERX2,Border (2x) ____ ____ . ____ ____ . ___
A,1.0,-.5,1.0,-.5,0,-.5
*CENTER,Center ____ _ ____ _ ____ _ ____ _ ____ _ ____
A,1.25,-.25,.25,-.25
*CENTER2,Center (.5x) ___ _ ___ _ ___ _ ___ _ ___ _ ___
A,.75,-.125,.125,-.125
*CENTERX2,Center (2x) ________ __ ________ __ _____
A,2.5,-.5,.5,-.5
*DASHDOT,Dash dot __ . __ . __ . __ . __ . __ . __ . __
A,.5,-.25,0,-.25
*DASHDOT2,Dash dot (.5x) _._._._._._._._._._._._._._._.
A,.25,-.125,0,-.125
*DASHDOTX2,Dash dot (2x) ____ . ____ . ____ . ___
A,1.0,-.5,0,-.5
*DASHED,Dashed __ __ __ __ __ __ __ __ __ __ __ __ __ _
A,.5,-.25
*DASHED2,Dashed (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,.25,-.125
*DASHEDX2,Dashed (2x) ____ ____ ____ ____ ____ ___
A,1.0,-.5
*DIVIDE,Divide ____ . . ____ . . ____ . . ____ . . ____
A,.5,-.25,0,-.25,0,-.25
*DIVIDE2,Divide (.5x) __..__..__..__..__..__..__..__.._
A,.25,-.125,0,-.125,0,-.125
*DIVIDEX2,Divide (2x) ________ . . ________ . . _
A,1.0,-.5,0,-.5,0,-.5
*DOT,Dot . . . . . . . . . . . . . . . . . . . . . . . .
A,0,-.25
*DOT2,Dot (.5x) ........................................
A,0,-.125
*DOTX2,Dot (2x) . . . . . . . . . . . . . .
A,0,-.5
*HIDDEN,Hidden __ __ __ __ __ __ __ __ __ __ __ __ __ __
A,.25,-.125
*HIDDEN2,Hidden (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,.125,-.0625
*HIDDENX2,Hidden (2x) ____ ____ ____ ____ ____ ____ ____
A,.5,-.25
*PHANTOM,Phantom ______ __ __ ______ __ __ ______
A,1.25,-.25,.25,-.25,.25,-.25
*PHANTOM2,Phantom (.5x) ___ _ _ ___ _ _ ___ _ _ ___ _ _
A,.625,-.125,.125,-.125,.125,-.125
____
____ _
*PHANTOMX2,Phantom (2x) ____________
A,2.5,-.5,.5,-.5,.5,-.5
;; ISO 128 (ISO/DIS 12011)
;; ISO
;; 1 .
;; ISO,
;; ,
;; (, 0,5 ltscale = 0.5).
;;
113
114
*ACAD_ISO02W100,ISO dash __ __ __ __ __ __ __ __ __ __ __ __ __
A,12,-3
*ACAD_ISO04W100,ISO long-dash dot ____ . ____ . ____ . ____ . _
A,24,-3,.5,-3
*ACAD_ISO14W100,ISO dash triple-dot __ . . . __ . . . __ . . . _
A,12,-3,.5,-3,.5,-3,.5,-3
*ACAD_ISO15W100,ISO double-dash triple-dot __ __ . . . __ __ . .
A,12,-3,12,-3,.5,-3,.5,-3,.5,-3
;;
;; .
;; ltypeshp.lin AutoCAD 13,
;; acad.lin AutoCAD 14.
;; ltypeshp.shx.
;;
*FENCELINE1,Fenceline circle ----0-----0----0-----0----0-----0-A,.25,-.1,[CIRC1,ltypeshp.shx,x=-.1,s=.1],-.1,1
*FENCELINE2,Fenceline square ----[]-----[]----[]-----[]----[]--A,.25,-.1,[BOX,ltypeshp.shx,x=-.1,s=.1],-.1,1
*TRACKS,Tracks -|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|A,.15,[TRACK1,ltypeshp.shx,s=.25],.15
*BATTING,Batting SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
A,.0001,-.1,[BAT,ltypeshp.shx,x=-.1,s=.1],-.2,[BAT,ltypeshp.shx,
r=180,x=.1,s=.1],-.1
*HOT_WATER_SUPPLY,Hot water supply ---- HW ---- HW ---- HW ---A,.5,-.2,["HW",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.2
*GAS_LINE,Gas line ----GAS----GAS----GAS----GAS----GAS----GAS-A,.5,-.2,["GAS",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.25
*ZIGZAG,Zig zag /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
A,.0001,-.2,[ZIG,ltypeshp.shx,x=-.2,s=.2],-.4,[ZIG,ltypeshp.shx,
r=180,x=.2,s=.2],-.2
2
, newlint.lin,
VARDASH, :
1,0;
0,25;
0,75;
0,25;
0,5;
0,25;
;
0,25;
0,5;
0,25;
0,75.
115
1:
, VARDASH.
*VARDASH,____ ___ __ . __ ___ ____
,1,-.25,.75,-.25,.5,-.25,0,-.25,.5,-.25,.75,-.25
2:
, Linetype ( )
Format () LINETYPE . ,
, . 3.12.
. 3.12. , VARDASH
AutoCAD .
: ( )
. . ,
(),
.
.
, , , . ,
(Fence ).
, , .
,
, . 3.13.
:
["", , , ,
X, Y]
116
. 3.13.
. , .
( ).
. , . ( ) .
. , ,
, 0.
, . . 3.13, , 0,1 .
. , .
, , AutoCAD. a.
, . r.
, .
.
X.
, . ,
. , . 3.13,
0,05.
Y.
, .
, Y. , . 3.13,
Y 0,05. ,
0,05 .
3
,
Fence.
0,75. 0,1,
0,05 (. 3.14).
117
. 3.14.
3
1:
,
.
.
, , . :
Fence;
(Standard);
0,1;
0;
X 0,05;
Y -0,05;
0,75;
0,575.
2:
-
. acad.lin
.lin. fence.lin
( 3). NEWFence1.
*NEWFence1,New fence boundary line
A,0.75,["Fence",Standard,S=0.1,A=0,X=0.05,Y=-0.05],-0.575
A,0.75,-0.05["Fence",Standard,S=0.1,A=0,X=0.05,Y=-0.05],-0.525
118
3:
, Linetype ( ) Format () LINETYPE .
- , (. 3.15). ,
. ,
, , (),
(. . 3.15).
4:
, , 0 ( = 0). , NEWFence1
, , , (Fence) (..
0 ). ,
(. 3.16), , , (R = 0).
NEWFence R = 0:
*NEWFence2,New fence boundary line
A,0.75,["Fence",Standard,S=0.1,R=0,X=0.05,Y=-0.05],-0.575
. 3.15. = 0
5:
. 3.16 ,
, . , AutoCAD , ( )
.
119
. 3.16. R = 0
, . , . . 3.17 NEWFence,
. , , . 3.18.
NEWFence :
*NEWFence3,New fence boundary line
A,0.75,-0.287["Fence",Standard,S=0.1,X=-0.237,Y=-0.05],-0.287
,
R = 0. , ,
.
. 3.17. ,
120
. 3.18. ,
.
, ,
, , X Y.
:
[ , , , ,
X, Y]
(. 3.19).
. 3.19.
121
. , . , .
. (.shx),
, . ,
, AutoCAD. SHAPE
(), (.shp).
. , . 1,
, ( .shp).
. , .
, AutoCAD.
a. , .
r. , . .
X. , . ,
. , . 3.19,
0,2.
Y. , .
, Y. , . 3.19,
Y 0.
4
, ( (Manhole); MH)
. 0,1, 0,75, 0,2.
1:
, . .
, , ,
. , , :
MH;
mhole.shx ( );
0,1;
0;
X 0,2;
Y 0;
0,75;
0,2.
122
. 3.20. ( 4)
2:
-
. , , .shp. mhole.shp, 4.
MH. ( 11.)
*215,9,MH
001,10,(1,007),
001,10,(1,071),0
3:
( .shp), COMPILE (). Select Shape or Font File ( ),
. 3.21. FILEDIA 0,
. , :
Command: COMPILE
Enter shape (.SHP) or PostScript font (.PFB) file name: MHOLE
: COMPILE
(.SHP) PostScript (.PFB): MHOLE
4:
. acad.lin
.lin.
mhole.lin, 4. MHOLE.
*MHOLE,Line with Manholes
A,0.75,[MH,MHOLE.SHX,S=0.10,X=0.2,Y=0],-0.2
123
5:
, , Linetype ( ) Format () LINETYPE .
. -
, .
: ,
. . 3.22
MHOLE , ,
().
. 3.22.
124
. 3.23.
AutoCAD ( acad.pat),
67 . , .
, - ,
AutoCAD, .
acad.pat
, .
, , .
.
,
(*). , . . .
, :
* , [ ]
* ;
;
.
,
. ; .
*DASH45, 45
DASH45 ;
45 .
125
,
. ,
:
, X, Y, D1, D2, [ ]
;
X X- ;
Y Y- ;
D1 ( X);
D2 ( Y);
( ).
45,0,0,0,0.5,0.5,-0.125,0,-0.125
45 ;
0 X;
0 Y;
0 X;
0.5 Y;
0.5 ( );
-0.125 ( );
0 ( );
-0.125 ( );
0.5,-0.125,0,-0.125 .
X Y. ,
. ,
(. 3.24), , .
,
X Y.
HATCH LINES
HATCH ANGLE
+X AXIS
,
X Y. . 3.25 , X = 0 Y = 0. . 3.25
X = 0 Y = 0,25.
126
. 3.24.
. 3.25.
X Y. X (Delta-X)
. , 0 , X 0,5,
X (0,5) . ,
45 , X (0,5) , 45 (. 3.26).
Y . ,
Y 1,0,
1,0 (. 3.26).
127
. 3.26.
, . X Y.
X Y (. . 3.26). , . , , , , , ,
. 3.27. ,
, , . . 3.27 a ,
AutoCAD. ;
. . 3.27 ,
, .
. 3.27. , ,
128
,
.
, .
.
5
, . 3.28.
:
HATCH1;
: X = 0, Y = 0;
0,5;
0;
(Continuous).
1:
acad.pat
, - ( Notepad MS-DOS). acad.pat,
AutoCAD2004\SUPPORT, :
*HATCH1, 5
45,0,0,0,.5
45 ;
0 X;
0 Y;
0 ;
.5 .
. ,
, 45 .
X Y, ,
. X
Y 0,5 1,0,
0,5 1,0. , . 3.28, .
2:
Boundary Hatch and Fill ( ), Hatch (),
Draw (), Hatch () Draw ().
Predefined () Type ().
129
. 3.28.
Pattern
() Hatch Pattern Palette ( ), [...],
Pattern. .
Boundary Hatch and Fill. ,
, Scale ()
Angle ().
Boundary Hatch and Fill, BHATCH
() . , ,
-HATCH (-).
,
, .
HATCH (),
.
, ,
- , HATCH1, 5. ,
HATCH1. . 3.29 0 1,0. 0,
, .
, 1,
, . . 3.29 , 0,5.
, 0,25 (0,5 0,5 = 0,25).
. 3.29 , 45
1,0 0,5 .
, ,
-HATCH (-).
130
. 3.29.
,
.
. , ,
, , . , , ,
. 6 ,
.
6
, . 3.30.
, , C:\Program Files\Hatch1,
. :
HATCH2;
0;
: X = 0, Y = 0;
(D1) 0,25;
(D2) 0,25;
0,5;
0,125;
0,125.
131
D1=0.25
D2=0.25
0.125
0.125
0.5
0.125
. 3.30. ,
acad.pat
, - ( Notepad MS-DOS). acad.pat
EDIT (). :
* ,
, X, Y, D1, D2, [, ......]
, 6, :
*HATCH2,
0,0,0,0.25,0.25,0.5,-0.125,0,-0.125,0,-0.125
0 ;
0 X;
0 Y;
0.25 ( X);
0.25 ( Y);
0.5 ;
-0.125 ( );
0 ( );
-0.125 ( );
0 ( );
-0.125 ( ).
132
, ,
AutoCAD Support ,
. , ,
.
Program Files
Hatch1. acad.pat,
HATCH2.
, .
Options (), Options ()
. , .
, , Options () Tools ()
OPTIONS () . Search paths, file names and file locations ( ,
), Files (). ,
Support File Search Path ( ), . 3.31.
, Add ().
C:\Program Files\Hatch1 ,
Browse (). Apply () , OK.
.
. 3.31. Options
133
, , 5.
, , . 3.32. ,
. 3.32 a 0 1,0, . 3.32 45
0,5.
. 3.32. ,
,
,
. , , , , .
, .
, , ,
. , ,
. , , , ,
. , ,
. , . 7
.
7
, . 3.33.
:
HATCH3;
( ) 0,5;
( ) 0,5;
134
0,5;
0,5.
, , : ( ) (, 45 ).
. 3.33.
1:
, . 3.34, :
90 ;
: X = 0, Y = 0;
X (D1) 0;
Y (D2) 1,0;
0,5;
0,5.
. 3.34.
, :
90,0,0,0,1,.5,-.5
135
90 ;
0 ;
0 Y;
0 X;
1 Y;
.5 ( );
-.5 ( ).
2:
(. 3.35) :
0 ;
: X = 0, Y = 0,5;
X (D1) 0;
Y (D2) 1,0;
0,5;
0,5.
. 3.35.
. 0 ,
90 . , :
0,0,0.5,0,1,.5,-.5
0 ;
0 ;
0.5 Y;
0 X;
1 Y;
.5 ( );
-.5 ( ).
136
3:
, ( X) ( Y), () ().
. 3.36. , 45
45 ;
: X = 0, Y = 0;
X (D1) 0,7071;
Y (D2) 0,7071;
0,7071;
0,7071;
,
:
45,0,0,.7071,.7071,.7071,-.7071
45 ;
0 ;
0 Y;
.7071 X;
.7071 Y;
.7071 ( );
-.7071 ( ).
4:
acad.pat . acad.pat EDIT.
137
acad.pat, , 5, 6 7.
*SOLID, Solid fill
45, 0,0, 0,.125
*ANGLE, Angle steel
0, 0,0, 0,.275, .2,-.075
90, 0,0, 0,.275, .2,-.075
*ANSI31, ANSI Iron, Brick, Stone masonry
45, 0,0, 0,.125
*ANSI32, ANSI Steel
45, 0,0, 0,.375
45, .176776695,0, 0,.375
*ANSI33, ANSI Bronze, Brass, Copper
45, 0,0, 0,.25
45, .176776695,0, 0,.25, .125,-.0625
*ANSI34, ANSI Plastic, Rubber
45, 0,0, 0,.75
45, .176776695,0, 0,.75
45, .353553391,0, 0,.75
45, .530330086,0, 0,.75
*ANSI35, ANSI Fire brick, Refractory material
45, 0,0, 0,.25
45, .176776695,0, 0,.25, .3125,-.0625,0,-.0625
*ANSI36, ANSI Marble, Slate, Glass
45, 0,0, .21875,.125, .3125,-.0625,0,-.0625
|
|
*SWAMP, Swampy area
0, 0,0, .5,.866025403, .125,-.875
90, .0625,0, .866025403,.5, .0625,-1.669550806
90, .078125,0, .866025403,.5, .05,-1.682050806
90, .046875,0, .866025403,.5, .05,-1.682050806
|
|
*ZIGZAG, Staircase effect
0, 0,0, .125,.125, .125,-.125
90, .125,0, .125,.125, .125,-.125
*HATCH1,Hatch at 45 Degree Angle
45,0,0,0,.5
*HATCH2,Hatch with Dashes & Dots
0,0,0,.25,.25,.5,-.125,0,-.125,0,-.125
*HATCH3,Triangle Hatch
90,0,0,0,1,.5,-.5
0,0,0.5,1,.5,-.5
45,0,0,.7071,.7071,.-7071
Hatch3.pat ( , , 5), . ,
(HATCH3), . 3.37. , . 3.37 a , 0 0,5, . 3.37
45 0,5.
138
. 3.37. , HATCH3
AutoCAD acad.pat. . , -
, acad.pat. , . , ,
, customh.pat.
1. acad.pat acadorg.pat.
2. customh.pat acad.pat.
, acadorg.pat
acad.pat.
, acad.pat. ,
, . ,
, .
:
1. .
2. .
3. .
4. , , , AutoCAD. Options
(). AutoCAD
Boundary Hatch and Fill ( ).
139
*HATCH3,Triangle Hatch
90,0,0,0,1,.5,-.5
0,0,0.5,1,.5,-.5
45,0,0,.7071,.7071,.-7071
, EXPLODE (). ,
.
, . , , 100 ,
. ,
99 .
, .
- , .
,
.
1.
________.
2. , , ________.
3. ________.
4. , ________ , .
5. ________.
6. LINETYPE _____.
7. ________. (/)
8. ________.
9. ________ .
140
10. , ________.
11. acad.pat ________ .
12. ________.
13. , ________ ________.
1. ________.
2. ________ .
3. AutoCAD ________.
4. AutoCAD , ________.
5. ________.
6. ________.
7. ________.
8. ________.
9. , ,
________.
10. , ,
________ , .
11. , , ________.
12. , AutoCAD ________.
13. , ________ , ________.
141
1 ()
LINETYPE, DASH3DASH,
:
0,75;
0,125;
0,25;
0,125;
0,25;
0,125;
0,25;
0,125.
2 ()
, newlt2.lin, DASH2DASH, :
0,5;
0,1;
0,2;
0,1;
0,2;
0.
3 ()
. (
), . 3.38 a.
HW (Hot Water), - , .
. (),
. 3.38 . , ,
..
. 3.38.
142
4 ()
, . 3.39, .
. 3.39. 4
5 ()
, . 3.40, .
. 3.40. 5
1 LTSCALE, 2 47, 3 , 4 , 5 , 6 Create, 7 , 8 acad.lin, 9 CELTSCALE, 10 , 11 67, 12 acad.pat,
13 X Y.
ACAD.PGP
, :
ACAD.PGP;
ACAD.PGP;
, ;
PGP-,
REINIT.
144
AutoCAD
AutoCAD acad.pgp, ( )
AutoCAD. AutoCAD , Windows 2000 Windows XP, C:/Documents and Settings/Owner/Application
Data/Autodesk/AutoCAD 2004/R16.0/enu/support. , Windows 98,
C:/Windows/Local Settings/Application Data/Autodesk/AutoCAD 2004/
R16.0/enu/support. acad.pgp
. , ,
DEL (Command:DEL),
.
AutoCAD. , LINE () L. L (Command:L), AutoCAD
, LINE. acad.pgp
, . acad.pgp. , .
; AutoCAD AutoCAD 2004
;
; Copyright (C) 1997-2002 by Autodesk, Inc.
; ,
; , AutoCAD
; acad.pgp.
; -- -; AutoCAD
; , , Windows,
; .
; ,
; AutoCAD,
; , .
; -- -; AutoCAD,
;
; acad.pgp.
; AutoCAD,
; .
; acad.pgp
; .
; :
; < >,[< >],< >,[*]
< >,
; :
; 1:
; 2:
; 4: "" ( )
ACAD.PGP
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
8:
.
2 4 ;
, 2.
0(
), 1 ( ),
3 ( ) 5(
). 2 4
, AutoCAD
.
8 , DEL,
(" .dwg").
,
-.
, "8" .
CATALOG,
DIR /W, 8,File specification:,
DEL,
DEL,
8,File to delete:,
DIR,
DIR,
8,File specification:,
EDIT,
START EDIT,
9,File to edit:,
SH,
,
1,*OS Command:,
SHELL,
,
1,*OS Command:,
START,
START,
1,*Application to start:,
TYPE,
TYPE,
8,File to list:,
; Windows
; ,
; AutoLISP (STARTAPP).
EXPLORER,
NOTEPAD,
PBRUSH,
START EXPLORER,
START NOTEPAD,
START PBRUSH,
1,,
1,*File to edit:,
1,,
; :
; <>,*< >
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
.
1.
.
<Ctrl>,
. : Control N,
Control O, Control P Control S New, Open, Print Save.
2. , ,
.
3. , ,
. : R Redraw,
RA Redrawall, L Line, LT Linetype.
4. ,
, .
: B Block, -B -Block.
145
146
*3DARRAY
*3DORBIT
*3DFACE
*3DPOLY
*ARC
*ADCENTER
*AREA
*ALIGN
*APPLOAD
*ARRAY
*-ARRAY
*ATTDEF
*-ATTDEF
*ATTEDIT
*-ATTEDIT
*-ATTEDIT
*BLOCK
*-BLOCK
*BHATCH
*BOUNDARY
*-BOUNDARY
*BREAK
*CIRCLE
*PROPERTIES
*CHANGE
*CHAMFER
*COLOR
*COLOR
*COPY
*DIMSTYLE
*DIMALIGNED
*DIMANGULAR
*DIMBASELINE
*DBCONNECT
*DIMCENTER
*DIMCONTINUE
*DIMDISASSOCIATE
*DIMDIAMETER
*DIMEDIT
*DIST
*DIVIDE
*DIMLINEAR
*DONUT
*DIMORDINATE
*DIMOVERRIDE
*DRAWORDER
ACAD.PGP
DRA,
DRE,
DS,
DST,
DT,
DV,
E,
ED,
EL,
EX,
EXIT,
EXP,
EXT,
F,
FI,
G,
-G,
GR,
H,
-H,
HE,
I,
-I,
IAD,
IAT,
ICL,
IM,
-IM,
IMP,
IN,
INF,
IO,
L,
LA,
-LA,
LE,
LEN,
LI,
LINEWEIGHT,
LO,
LS,
LT,
-LT,
LTYPE,
-LTYPE,
LTS,
LW,
M,
MA,
ME,
MI,
*DIMRADIUS
*DIMREASSOCIATE
*DSETTINGS
*DIMSTYLE
*DTEXT
*DVIEW
*ERASE
*DDEDIT
*ELLIPSE
*EXTEND
*QUIT
*EXPORT
*EXTRUDE
*FILLET
*FILTER
*GROUP
*-GROUP
*DDGRIPS
*BHATCH
*HATCH
*HATCHEDIT
*INSERT
*-INSERT
*IMAGEADJUST
*IMAGEATTACH
*IMAGECLIP
*IMAGE
*-IMAGE
*IMPORT
*INTERSECT
*INTERFERE
*INSERTOBJ
*LINE
*LAYER
*-LAYER
*QLEADER
*LENGTHEN
*LIST
*LWEIGHT
*-LAYOUT
*LIST
*LINETYPE
*-LINETYPE
*LINETYPE
*-LINETYPE
*LTSCALE
*LWEIGHT
*MOVE
*MATCHPROP
*MEASURE
*MIRROR
147
148
ML,
MO,
MS,
MT,
MV,
O,
OP,
OS,
-OS,
P,
-P,
PA,
PARTIALOPEN,
PE,
PL,
PO,
POL,
PR,
PRCLOSE,
PROPS,
PRE,
PRINT,
PS,
PTW,
PU,
-PU,
R,
RA,
RE,
REA,
REC,
REG,
REN,
-REN,
REV,
RM,
RO,
RPR,
RR,
S,
SC,
SCR,
SE,
SEC,
SET,
SHA,
SL,
SN,
SO,
SP,
SPL,
*MLINE
*PROPERTIES
*MSPACE
*MTEXT
*MVIEW
*OFFSET
*OPTIONS
*OSNAP
*-OSNAP
*PAN
*-PAN
*PASTESPEC
*-PARTIALOPEN
*PEDIT
*PLINE
*POINT
*POLYGON
*OPTIONS
*PROPERTIESCLOSE
*PROPERTIES
*PREVIEW
*PLOT
*PSPACE
*PUBLISHTOWEB
*PURGE
*-PURGE
*REDRAW
*REDRAWALL
*REGEN
*REGENALL
*RECTANGLE
*REGION
*RENAME
*-RENAME
*REVOLVE
*DDRMODES
*ROTATE
*RPREF
*RENDER
*STRETCH
*SCALE
*SCRIPT
*DSETTINGS
*SECTION
*SETVAR
*SHADE
*SLICE
*SNAP
*SOLID
*SPELL
*SPLINE
ACAD.PGP
SPE,
ST,
SU,
T,
-T,
TA,
TH,
TI,
TO,
TOL,
TOR,
TR,
UC,
UCP,
UN,
-UN,
UNI,
V,
-V,
VP,
-VP,
W,
-W,
WE,
X,
XA,
XB,
-XB,
XC,
XL,
XR,
-XR,
Z,
*SPLINEDIT
*STYLE
*SUBTRACT
*MTEXT
*-MTEXT
*TABLET
*THICKNESS
*TILEMODE
*TOOLBAR
*TOLERANCE
*TORUS
*TRIM
*DDUCS
*DDUCSP
*UNITS
*-UNITS
*UNION
*VIEW
*-VIEW
*DDVPOINT
*VPOINT
*WBLOCK
*-WBLOCK
*WEDGE
*EXPLODE
*XATTACH
*XBIND
*-XBIND
*XCLIP
*XLINE
*XREF
*-XREF
*ZOOM
; ,
; AutoCAD 13.
AV,
*DSVIEWER
CP,
*COPY
DIMALI,
*DIMALIGNED
DIMANG,
*DIMANGULAR
DIMBASE,
*DIMBASELINE
DIMCONT,
*DIMCONTINUE
DIMDIA,
*DIMDIAMETER
DIMED,
*DIMEDIT
DIMTED,
*DIMTEDIT
DIMLIN,
*DIMLINEAR
DIMORD,
*DIMORDINATE
DIMRAD,
*DIMRADIUS
DIMSTY,
*DIMSTYLE
DIMOVER,
*DIMOVERRIDE
LEAD,
*LEADER
TM,
*TILEMODE
149
150
; , "/URL"
; AutoCAD 14
SAVEURL,
*SAVE
OPENURL,
*OPEN
INSERTURL,
*INSERT
; , AutoCAD 2000:
AAD,
*DBCONNECT
AEX,
*DBCONNECT
ALI,
*DBCONNECT
ASQ,
*DBCONNECT
ARO,
*DBCONNECT
ASE,
*DBCONNECT
DDATTDEF,
*ATTDEF
DDATTEXT,
*ATTEXT
DDCHPROP,
*PROPERTIES
DDCOLOR,
*COLOR
DDLMODES,
*LAYER
DDLTYPE,
*LINETYPE
DDMODIFY,
*PROPERTIES
DDOSNAP,
*OSNAP
DDUCS,
*UCS
; , AutoCAD 2004:
ACADBLOCKDIALOG,
*BLOCK
ACADWBLOCKDIALOG,
*WBLOCK
ADCENTER,
*ADCENTER
BMAKE,
*BLOCK
BMOD,
*BLOCK
BPOLY,
*BOUNDARY
CONTENT,
*ADCENTER
DDATTE,
*ATTEDIT
DDIM,
*DIMSTYLE
DDINSERT,
*INSERT
DDPLOTSTAMP,
*PLOTSTAMP
DDRMODES,
*DSETTINGS
DDSTYLE,
*STYLE
DDUCS,
*UCSMAN
DDUCSP,
*UCSMAN
DDUNITS,
*UNITS
DDVIEW,
*VIEW
DIMHORIZONTAL,
*DIMLINEAR
DIMROTATED,
*DIMLINEAR
DIMVERTICAL,
*DIMLINEAR
DOUGHNUT,
*DONUT
DTEXT,
*TEXT
DWFOUT,
*PLOT
DXFIN,
*OPEN
DXFOUT,
*SAVEAS
PAINTER,
*MATCHPROP
PREFERENCES,
*OPTIONS
RECTANGLE,
*RECTANG
SHADE,
*SHADEMODE
VIEWPORTS,
*VPORTS
ACAD.PGP
151
ACAD.PGP
AutoCAD (acad.pgp)
, . , . ,
; AutoCAD. acad.pgp :
, .
, acad.pgp, .
(;). , AutoCAD
, .
- ,
AutoCAD , .
, .
:
< >,[ ],
< >,[*],< >
. ,
AutoCAD. , goword
, Word
(Command: goword). ,
AutoCAD.
AutoCAD, PGP- . ,
,
. , , . (, hello ,
.) ,
.
. , . , DOS DEL, , acad.pgp, DEL. ,
:
(DEL, DIR, TYPE, COPY, RENAME, EDLIN ..);
(WORD,
SHELL ..);
.
152
. , 8
1. :
( )
. , ,
. ,
. ,
(*). , EDIT NEW.PGP
EDIT NEW ,
. ,
<Enter>. (, DIR,
DEL TYPE), , , . <Enter> <Spacebar>
().
,
AutoCAD. <Enter>, . AutoCAD , . AutoCAD (acad.pgp). (, L,
*LINE). (L) ;
AutoCAD (*LINE). AutoCAD
,
. . , , . ( ) AutoCAD, AutoLISP,
, .
1
AutoCAD AutoCAD (acad.pgp).
GOWORD
(Winword),
C:\Program Files\Winword
RN
DOS
COP
DOS
153
ACAD.PGP
EL
Ellipse
Trim
CO
Copy
CH
Chamfer
Offset
ST
Stretch
Scale
MI
Mirror
acad.pgp
ASCII. EDIT
() ( , acad.pgp)
- , , Notepad Wordpad.
acad.pgp, , ( 1). , ,
, . ,
, .
DEL,DEL,
DIR,DIR,
EDIT,START EDIT,
SH,,
SHELL,,
START,START,
8,File to delete:,
8,File specification:,
8,File to edit:,
1,*OS Command:,
1,*OS Command:,
1,Application to start:,
GOWORD,
RN,RENAME,
COP,COPY,
DIMLIN,
DIMORD,
DIMRAD,
DIMSTY,
DIMOVER,
LEAD,
TM,
EL,
CO,
O,
S,
MI,
ST,
START WINWORD,1,,
8,File to rename:,
8,File to copy:,
*DIMLINEAR
*DIMORDINATE
*DIMRADIUS
*DIMSTYLE
*DIMOVERRIDE
*LEADER
*TILEMODE
*ELLIPSE
*COPY
*OFFSET
*SCALE
*MIRROR
*STRETCH
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
8
GOWORD, START WINWORD,1,,
GOWORD
Windows (WINWORD). (winword.exe)
Program Files.
154
9 10
RN,RENAME, 8,File to rename: ,
COP,COPY, 8,File to copy: ,
18 19
EL, *ELLIPSE
CO, *COPY
, , . , , S, *SCALE. , , .
ACAD.PGP
ACAD.PGP - , . .
AutoCAD, . acad.pgp. , acad.pgp
REINIT.
-,
AutoCAD ( acad.pgp).
REINIT Re-initialization, . 4.1.
,
. AutoCAD . 4.1.
,
Re-initialization
,
.
- acad.pgp,
. , AutoCAD.
ACAD.PGP
155
,
.
1. acad.pgp _______
AutoCAD ________.
2. ________.
3. AutoCAD, ,
________.
4. ________.
5. AutoCAD ________.
, .
1. , , . (/
)
2. AutoCAD , . (/)
3. AutoCAD. (/)
4. 8. (/)
5. , ,
. (/)
6. AutoLISP . (/)
7. acad.pgp AutoCAD.
(/)
8. acad.pgp ASCII. (/)
1 ()
AutoCAD AutoCAD (acad.pgp).
MYWORDPAD
WORDPAD,
C:\Program Files\Accessories
MYEXCEL
CD
CHKDSK
FORMAT
FORMAT
156
BL
BLOCK
INS
INSERT
DIS
DISTANCE
TE
TIME
LTS
LTSCALE
EXP
EXPLODE
GR
GRID
1 QUIT, , 2 REINIT, 3 , 4 , 5 .
,
;
;
;
;
;
;
;
;
;
.
158
AutoCAD
AutoCAD. AutoCAD , acad.mnu. AutoCAD.
acad.mnu AutoCAD, , . , Draw (), Modify
().
, (
, , ).
, .
AutoCAD
, .
acad.mnu . , , . ,
. , , ,
. , .mnu, MENU ().
- , Wordpad
Notepad. ,
. AutoCAD
.
***SCREEN
***TABLET(n)
***IMAGE
***POP(n)
***BUTTONS(n)
***AUX(n)
***MENUGROUPE
***TOOLBARS
***HELPSTRING
***ACCELERATORS
n 1 4
n 1 499 ( n = 0
500 999)
n 1 4
n 1 4
. ( ) 499 .
.
***TABLET1
***TABLET2
***TABLET3
***TABLET4
, ...
159
***BUTTONS1
***BUTTONS2
***BUTTONS3
***BUTTONS4
***AUX1
***AUX2
***AUX3
***AUX4
***POP0
***POP1
***POP2
***POP3
***POP4
***POP5
***POP6
...
***POP497
***POP498
***POP499
acad.mnu. AutoCAD ( , ). ,
, .
- , ,
, .
, ,
, (. 5.1).
499 , POP1, POP2, POP3, ...,
POP499.
, ,
, .
,
. , ,
, ,
. ,
.
160
. 5.1.
, , , . ,
, . ,
1.
LINE
Command: LINE
Specify first point: .
Specify next point or [Undo]: .
LINE
<Enter>
CIRCLE (C,R)
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan
radius)]: .
Specify radius of circle or [Diameter]: .
.
CIRCLE
<Enter>
<Enter>
<Enter>
, ...
CIRCLE (C,D)
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan
radius)]: .
Specify radius of circle or [Diameter]: D
Specify diameter of circle: .
:
CIRCLE
<Enter>
<Enter>
D
<Enter>
<Enter>
CIRCLE (2P)
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 2P
Specify first end point of circle's diameter:
.
Specify second end point of circle's diameter:
.
:
CIRCLE
<Enter>
2P
<Enter>
<Enter>
<Enter>
ERASE
Command: ERASE
:
ERASE
<Enter>
MOVE
Command: MOVE
:
MOVE
<Enter>
161
162
EDIT , acad.pgp ,
AutoCAD.
1
AutoCAD , .
LINE
PLINE
CIRCLE
CIRCLE
CIRCLE
CIRCLE
C,R
C,D
2P
3P
ERASE
MOVE
COPY
STRETCH
EXTEND
OFFSET
REDRAW
REGEN
ZOOM ALL
ZOOM WIN
ZOOM PRE
. 5.2.
SAVE
QUIT
PLOT
163
, ...
1:
, . . 5.2
. ; , : POP1, POP2, POP3
POP4, . 1.
, .
2:
***POP1
[DRAW]
[LINE]*^C^CLINE
[PLINE]^C^CPLINE
[--]
[CIR-C,R]^C^CCIRCLE
[CIR-C,D]^C^CCIRCLE \D
[CIR-2P]^C^CCIRCLE 2P
[CIR-3P]^C^CCIRCLE 3P
***POP2
[EDIT]
[ERASE]*^C^CERASE
[MOVE]^C^CMOVE
[COPY]^C^CCOPY
[STRETCH]^C^CSTRETCH;C
[EXTEND]^C^CEXTEND
[OFFSET]^C^COFFSET
***POP3
[DISPLAY]
[REDRAW]'REDRAW
[REGEN]^C^CREGEN
[--]
[ZOOM-All]^C^CZOOM A
[ZOOM-Window]'ZOOM-W
[ZOOM-Prev]'ZOOM PREV
[~Exit]^C
***POP4
[UTILITY]
[SAVE]^C^CSAVE;
[QUIT]^C^CQUIT
[----]
[PLOT]^C^CPLOT
[EXIT]^C^CEXIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
1
***POP1
POP1 .
AutoCAD (***), ( POP1).
164
2
[DRAW]
DRAW ,
.
, , . DRAW (. 5.3), ,
, EDIT, .
, , . 5.3.
,
Draw
. , , .
, , ,
80 . 16 ,
5 . ,
AutoCAD , 80-
, . .
, ,
. ,
. . , [DRAW]
, DRAW (POP1)
(POP2).
***POP1
[LINE:]^CLINE
[PLINE]^CPLINE
[CIRCLE]^CCIRCLE
( POP1)
.
. 1 DRAW , EDIT,
DISPLAY UTILITY .
3
*^C^CLINE
, ...
165
* ();
^C^C ;
LINE AutoCAD.
5
[--]
, , (--). , , . , ( ***POP), , .
24
[ZOOM-Window]'ZOOM W
. 5.4 Display
[ZOOM-Window]'ZOOM W
W Window ();
ZOOM AutoCAD;
' , .
26
[~Exit]^C
. (~), ( ). .
. -
, . ,
[~OSNAPS]^C^C$S = OSNAPS OSNAPS .
29
[SAVE]^C^CSAVE;
166
SAVE AutoCAD;
; , ENTER.
31
[----]
.
. ([-]),
AutoCAD .
33
[Exit]^C
^C
, . AutoCAD, .
, :
1. .
2. .
3. .
4. <Esc>.
5. .
. - (, POP16)
, ,
.
(//). AutoCAD , .
(ENTER); .
, , ,
AutoCAD , .
,
. AutoCAD,
1, , .
AutoCAD
Command: LINE
[LINE]^C^CLINE
Command: CIRCLE
Specify center point for circle or
[3P/2P/Ttr (tan tan radius)]:
Specify radius of circle or [Diameter]:
[CIR-C,R]^C^CCIRCLE
, ...
AutoCAD
Command: CIRCLE
Specify center point for circle or
[3P/2P/Ttr (tan tan radius)]:
Specify radius of circle or [Diameter]: D
Specify diameter of circle:
Command: CIRCLE
Specify center point for circle or
[3P/2P/Ttr (tan tan radius)]: 2P
Specify first end point of circle's
diameter:
Specify second end point of circle's
diameter:
Command: ERASE
Command: MOVE
[CIR-C,D]^C^CCIRCLE;\D
167
[CIR- 2P]^C^CCIRCLE;\2P
[ERASE]^C^CERASE
[MOVE]^C^CMOVE
, AutoCAD acad.mnu ( , acad.mnu
). , , MENU.
MENU () Select Menu File ( ), . 5.5.
, , Open ().
168
,
FILEDIA 0.
Command: FILEDIA
Enter new value for FILEDIA <1>: 0
Command: MENU
Enter menu file name or [.(for none)] < >: PDM1
:
PDM1 ;
< > .
MENU,
. (.mnu),
AutoCAD . MNC MNR. AutoCAD
:
.mnc
.mnr
(.mnu), AutoCAD
.mnc .mnr. .mnc . .mnr ,
.mns
AutoCAD .mns.
ASCII,
.mnu,
. .mnu,
AutoCAD .mns
,
, , (
acad.mnu) , ,
.
, Select Menu File (
), MENU . acad.mnu
Support, Open ().
, FILEDIA 1.
, - , (\). , .
(\) .
, , . , ,
. .
, , , , ,
. , , 21 .
, ,
.
, .
80 .
, ...
169
, AutoCAD. , ,
.
TEXT
TEXT ,
, .
SKETCH
SKETCH, .
1
, AutoCAD. . 5.6.
DRAW
LINE
PLINE
ELLIPSE
POLYGON
DONUT
EDIT
FILLET0
FILLET
CHAMFER
STRETCH
EXTEND
OFFSET
DISP/TEXT
TEXT,C
TEXT,L
DTEXT,R
ZOOM WIN
ZOOM PRE
UTILITY
SAVE
QUIT
END
DIR
PLOT
. 5.6. 1
. , .
, , , 21
. ,
,
170
. , , , .
, .
, , .
AutoCAD , . , -> , <-
. , , .
--
. .
: [Triang:]^C^Cline;1,1;+3,1;2,2;
->
, ;
.
: [-> Draw]
<-
. .
: [<-CIRCLE 3P]^C^CCIRCLE;3P
<-<...
, .
.
: [<-<-Center Mark]^C^C_dim;_center
$(
DIESEL.
.
: $(if,$(getvar,orthomode),Ortho)
, , ;
.
: [~Application not available]
!.
&
, ,
. , [W&Block]
Wblock. ,
/c
, ,
. , [/BW&Block]
Wblock. ,
\t
, ,
, ,
.
: [--]
, ...
171
, 80 . , 10
, 8 .
, , , AutoCAD .
:
1. ***POP1 ***POP16.
.
2. ,
, .
3. 999 . , . , 999, .
4. , ,
. , ,
. , 35
, , , .
2
, , . 5.7.
.
. 5.7. 2
1:
2. , .
172
***POP1
[DRAW]
[LINE]^C^CLINE
[PLINE]^C^CPLINE
[->ARC]
[ARC]^C^CARC
[ARC,3P]^C^CARC
[ARC,SCE]^C^CARC;\C
[ARC,SCA]^C^CARC;\C;\A
[ARC,CSE]^C^CARC;\C
[ARC,CSA]^C^CARC;\C;\\A
[<-ARC,CSL]^C^CARC;C;\\L
[->CIRCLE]
[CIRCLE C,R]^C^CCIRCLE
[CIRCLE C,D]^C^CCIRCLE;\D
[CIRCLE 2P]^C^CCIRCLE;2P
[CIRCLE 3P]^C^CCIRCLE;3P
[--]
[Exit]^C
***POP2
[BLOCKS]
[BLOCK]^C^CBLOCK
[INSERT]*^C^CINSERT
[WBLOCK]^C^CWBLOCK
[--]
[Exit]^C
***POP3
[UTILITY]
[SAVE]^C^CSAVE;
[QUIT]^C^CQUIT
[PLOT]^C^CPLOT
[--]
[Exit]^C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
5
[->ARC]
(ARC), ->.
, . , ( 612),
, . 5.8.
12
[<-ARC,CSL]^C^CARC;C;\\L
ARC,CSL,
<-,
. , ,
.
. 5.8. Draw
Arc
173
, ...
13 17
[->CIRCLE]
[<-CIRCLE 3P]^C^CCIRCLE;3P
->,
CIRCLE, , . <-,
CIRCLE 3P, , .
CIRCLE
(. 5.9).
2:
exm2.mnu. MENU (). DRAW, BLOCKS UTILITY.
3
, ,
. 5.10.
. 5.10. 3
3. , .
***POP1
[CIR-DIM-DISP]
[->CIRCLE]
[CIRCLE C,R]^C^CCIRCLE
1
2
3
4
174
[CIRCLE C,D]^C^CCIRCLE;\D
[CIRCLE 2P]^C^CCIRCLE;2P
[CIRCLE 3P]^C^CCIRCLE;3P
[->Dimension]
[->Linear]
[Horizontal]^C^C_dimlinear
[Vertical]^C^C_dimlinear
[Aligned]^C^C_dimaligned
[Rotated]^C^C_dimrotated
[Baseline]^C^C_dimbaseline
[<-Continue]^C^C_dimcontinue
[->Radial]
[Diameter]^C^C_dimdiameter
[Radius]^C^C_dimradius
[<-<-Center Mark]^C^C_dimcenter
[->DISPLAY]
[REDRAW]^C^CREDRAW
[->ZOOM]
[...Win]^C^C_ZOOM;_W
[...Cros]^C^C_ZOOM;_C
[...Pre]^C^C_ZOOM;_P
[...All]^C^C_ZOOM;_A
[<-...Exit]^C^C_ZOOM;_E
[<-PAN]^C^C_Pan
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
8 9
[->Dimensions]
[->Linear]
->,
Dimensions, ,
. ->,
Linear,
. . 5.11,
Linear Dimensions. ,
1015,
Linear. , Linear
Radial Dimensions.
16
[->Radial]
, , 17, 18 19.
19
[<-<-Center Mark]^C^C_dimcenter
, ...
175
27 28
[<-...Exit]^C^C_ZOOM;_E
[<-PAN]^C^C_Pan
<-, ...Exit,
ZOOM (. 5.12). <-,
PAN, DISPLAY.
, 499 ( ,
999). ***POP0 ***POP500***POP999.
.
.
, ,
. .
1. ***POP0
***POP500***POP999. , ,
.
2. . , , ,
.
3. 0 $P0=*.
POP500POP999
. ,
AutoCAD, GRIPS, CMDEFAULT, CMEDIT CMCOMMAND. ,
POP500 , ***GRIPS POP500. (
GRIPS 1, -
( ).) , , ,
. AutoLISP ADS.
4. 499 ;
, . , , .
5. , ,
.
, -
176
, . ,
21 , , , .
6. Default, Edit
Command,
SHORTCUTMENU. 0, R14 Default, Edit Command .
11.
4
AutoCAD, . AutoCAD, .
( BUTTONS).
Osnaps
Center
Endpoint
Intersection
Midpoint
Nearest
Perpendicular
Quadrant
Tangent
Draw
Line
PLINE
CIR C,R
CIR 2P
ARC SCE
ARC CSE
DISPLAY
REDRAW
ZOOM
...Win
...Cen
...Prev
...All
...Ext
PAN
None
4. , .
***AUX1
;
$P0=*
***POP0
[Osnaps]
[Center]_Center
[End point]_Endp
[Intersection]_Int
[Midpoint]_Mid
[Nearest]_Nea
[Perpendicular]_Per
[Quadrant]_Qua
[Tangent]_Tan
[None]_Non
[--]
[->Draw]
[Line]^C^C_Line
[PLINE]^C^C_Pline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
177
, ...
[CIR C,R]^C^C_Circle
[CIR 2P]^C^C_Circle;_2P
[ARC SCE]^C^_ARC;\C
[<-ARC CSE]^C^_ARC;C
[--]
[->DISPLAY]
[REDRAW]^C^_CREDRAW
[->ZOOM]
[...Win]^C^C_ZOOM;_W
[...Cen]^C^C_ZOOM;_C
[...Pre]^C^C_ZOOM;_P
[...All]^C^C_ZOOM;_A
[<-...Exit]^C^C_ZOOM;_E
[<-PAN]^C^C_Pan
***POP1
[SHORTCUTMENU]
[SHORTCUTMENU=0]^C^CSHORTCUTMENU;0
[SHORTCUTMENU=1]^C^CSHORTCUTMENU;1
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
10
***AUX1
AUX1 ; ***
. , , .
2 3
;
$P0=*
(;) -
( ). - $P0=*.
4 5
***POP0
[Osnaps]
POP0 ,
. Osnaps .
, , . .
6
[Center]_Center
_Center .
AutoCAD (_),
AutoCAD .
- , ( )
, . 5.13.
178
, ,
.
,
.
33 34
***POP1
[Draw]
. 5.13.
4
,
AutoCAD. LINE (), . ( . 5.14.)
LINE
Continue
Close
Undo
CIRCLE
ZOOM All
ZOOM Win
ZOOM Pre
PAN
DBLIST
ELLIPSE
STATUS
TIME
LIST
DISTANCE
AREA
. 5.14. 2
, , ,
. , , ,
21 . , ,
, ...
179
. , , , .
AutoCAD .
, AutoCAD. , ,
- .
.
, , AutoCAD . ,
- .
(**),
. ,
. ,
. :
**
** (**), ;
.
31 .
, ,
($), (-) (_).
.
.
. , , ($), .
, , Pn,
n . (=),
, . (**). :
$=
$ ;
() ;
= ;
.
180
$P1=P1A
$P1 ;
P1A .
. , P1A, DRAW-ARC, 1 DRAW-ARC. ,
DRAW-ARC, .
AutoCAD $Pn=*.
$Pn=*
P , ;
n ( 1 10);
* .
, , () .
, ,
, .
, ,
:
$S=X $S=LINE
S , ;
X , ;
LINE , .
($S=X) X, , , .
, X, 21,
. ($S=LINE) LINE,
.
$1=IMAGE1 $1=*
, ...
181
$1=IMAGE1 IMAGE1;
$1=* .
. ($1=IMAGE1) IMAGE1, , . ($1=*)
.
5
, AutoCAD.
ARC CIRCLE .
LINE
PLINE
ARC
ARC 3P
ARC SCE
ARC SCA
ARC CSE
ARC CSA
ARC CSL
CIRCLE
CIRCLE C,R
CIRCLE C,D
CIRCLE 2P
BLOCK
INSERT
WBLOCK
QUIT
SAVE
PLOT
1:
, . 5.15, . ARC CIRCLE ,
.
. 5.15. 5
182
2:
5. , .
***POP1
**P1A
[DRAW]
[LINE]^C^CLINE
[PLINE]^C^CPLINE
[--]
[ARC]^C^C$P1=P1B $P1=*
[CIRCLE]^C^C$P1=P1C $P1=*
[--]
[Exit]^C
**P1B
[ARC]
[ARC,3P]^C^CARC
[ARC,SCE]^C^CARC \C
[ARC,SCA]^C^CARC \C \A
[ARC,CSE]^C^CARC C
[ARC,CSA]^C^CARC C \\A
[ARC,CSL]^C^CARC \\L
[--]
[PREVIOUS]$P1=P1A $P1=*
**P1C
[CIRCLE]
[CIRCLE C,R]^C^CCIRCLE
[CIRCLE C,D]^C^CCIRCLE \D
[CIRCLE 2P]^C^CCIRCLE 2P
[--]
[PREVIOUS]$P1=P1A $P1=*
***POP2
[BLOCKS]
[BLOCK]^C^CBLOCK
[INSERT]^C^CINSERT
[WBLOCK]^C^CWBLOCK
[--]
[EXIT]$P1=P1A $P1=*
***POP3
[UTILITY]
[SAVE]^C^CSAVE
[QUIT]^C^CQUIT
[----]
[PLOT]^C^CPLOT
[----]
[Exit]^C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
, ...
183
2
**P1A
**P1A P1A.
(**), , ,
. . P1A, 5.16. . P , . 1 .
Arc, , (POP1), A Draw
.
6
[--]
, ,
. , ,
. , . , [--]^C^CLINE, ^C^CLINE .
7
[ARC]^C^C$P1=P1B $P1=*
$P1=P1B, , P1B
(1), . , $P1=*,
.
, CIRCLE (POP1) DRAW,
, CIRCLE,
. CIRCLE
, , CIRCLE.
, POP1, $P1=*, AutoCAD. CIRCLE (POP1),
CIRCLE .
21
[EXIT]^C
. ,
(DRAW).
, , ARC
DRAW. , .
, , .
[EXIT]$P1=P1A $P1=* ^C^C
184
29
[PREVIOUS]$P1=P1A $P1=*
$P1=P1A, , P1A,
.
$P1=. $P=*, ,
, P1A.
.
, ( POP1 POP8). LISP 5 .
. , $P7=P7A $P=* P7A,
POP6. POP6 POP7.
3:
,
MENU (). , , .
AutoCAD () .
, MENU.
, MENULOAD
( AutoCAD 2006 CUILOAD). AutoCAD
,
. , Windows , .
AutoCAD
. , , , . ,
.
, AutoCAD.
.
***MENUGROUP
***TOOLBARS
***HELPSTRING
***ACCELERATORS
185
, ...
6
Windows. . 5.17,
: POP1 (MyDraw) POP2 (MyEdit).
. 5.17. 6
1:
- .
mymenu1.mnu.
, .
***MENUGROUP=Menu1
***POP1
[/MMyDraw]
[/LLine]^C^Cline
[/Ccircle]^C^Ccircle
[/AArc]^C^Carc
[/EEllipse]^C^Cellipse
***POP2
[/EMyEdit]
[/EErase]^C^Cerase
[/CCopy]^C^Ccopy
[/MMove]^C^Cmove
[/OOffset]^C^Coffset
1
2
3
4
5
6
7
8
9
10
11
12
13
1
***MENUGROUP=Menu1
MENUGROUP Menu1, .
MENUGROUP. ( Menu1) , 32 ,
. MENUGROUP.
*** (***MENUGROUP).
2
***POP1
186
3
[/MMyDraw]
/M ,
. , , .
AutoCAD ,
. MyDraw .
, , (
/M). , ,
.
4
[/LLine]^C^CLine
/L .
Line, ,
. ^C^C , Line LINE (), AutoCAD. ,
. 4 LINE.
2:
mymenu1.mnu. Customize
Menu ( ) Tools () MENULOAD
.
Menu Customization ( ), . 5.18.
, ...
187
FILEDIA 0, , AutoLISP:
Command: (SETVAR "FILEDIA" 0)
Command: (Command "MENULOAD" "MYMENU1")
3:
Menu Customization ( )
Menu Bar ( ), (. 5.19).
Menu Groups ( ) Menu1; , (Menu1), Menus ().
(MyDraw),
. , Format, Format () Menu Bar ( ).
(MyDraw) , Insert ().
MyDraw , .
188
. , MENUCMD ( AutoLISP), .
Command: (MENUCMD "P5=+Menu1.POP1")
Command: (MENUCMD "P6=+Menu1.POP2")
. 5.20. ,
MENUCMD
, AutoCAD
(. 5.20). MyDraw , .
, MyEdit , .
MENUCMD AutoLISP,
P5 ,
POP1. POP1 (MyDraw) . , Menu1 (MENUGROUP),
1 . MENUGROUP
(.).
4:
(, MyDraw),
Menu Customization ( ) Menu Bar ( ).
Menu Bar ( ) , , Remove ().
5:
Menu Customization ( )
. , Customize
Menu ( ) Tools () MENULOAD
MENUUNLOAD . Menu Group ( ). Menu1,
Unload (). AutoCAD .
, Close ().
,
:
Command: FILEDIA
Enter new value for FILEDIA <1>: 0
Command: MENUUNLOAD
Enter name of MENUGROUP to unload: MENU1.MNU
MENUUNLOAD . - , .
:
Command: (MENUCMD "P5=")
,
(P5, MyDraw). , P5
.
MENU, acad.mnu.
, ...
189
AutoCAD Windows . , , AutoCAD
, .
, CIRCLE (), acad.pgp. ,
<C>, COPY (). COPY,
. <C> <Shift>,
. , <Shift>, , , <C>, AutoCAD
COPY. .
7
, .
<Ctrl+E> ([CONTROL+"E"])
( ELLIPSE)
<Shift+C> ([SHIFT+"C"])
( COPY)
<Ctrl+Q> ([CONTROL"Q"])
( QUIT)
1:
,
, 7.
***MENUGROUP=Menu1
***POP1
**Alias
[/MMyDraw]
[/LLine]^C^CLine
[/CCircle]^C^CCircle
[/AArc]^C^CArc
ID_Ellipse [/EEllipse]^C^CEllipse
***POP2
[/EMyEdit]
[/EErase]^C^CErase
ID_Copy [/CCopy]^C^CCopy
[/OOffset]^C^COffset
[/MMove]^C^CMove
***ACCELERATORS
ID_Ellipse [CONTROL+"E"]
ID_Copy [SHIFT+"C"]
[CONTROL"Q"]^C^CQuit
190
.
ID_Copy [SHIFT+"C"] . (ID_Copy)
, ,
. (SHIFT+"C") ,
(SHIFT) (C).
(, ESCAPE)
.
, . ,
, , . [CONTROL+"E"] ["ESCAPE"].
, ,
[SHIFT+CONTROL+"L"]. , ,
, [CONTROL"Q"]^C^CQuit.
2:
.mnu.
, MENU. , <Shift+C> COPY,
<Ctrl+E> ,
. <Ctrl+Q>
QUIT. ,
6, .
, . .
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
HOME
END
INSERT
DELETE
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
HOME
END
INS
DEL
NUMBERPAD0
NUMBERPAD1
NUMBERPAD2
NUMBERPAD3
NUMBERPAD4
NUMBERPAD5
NUMBERPAD6
NUMBERPAD7
NUMBERPAD8
NUMBERPAD9
UP
DOWN
LEFT
RIGHT
ESCAPE
0
1
2
3
4
5
6
7
8
9
UP-ARROW
DOWN-ARROW
LEFT-ARROW
RIGHR-ARROW
ESC
, ...
191
CONTROL
<Ctrl>
SHIFT
<Shift> ( )
COMMAND
Apple Macintosh
META
- UNIX
(, ***TOOLBARS).
.
. :
***TOOLBARS
**MYTOOLS1
TAG1 [Toolbar ("tbarname", orient, visible, xval, yval, rows)]
TAG2 [Button ("btname", id_small, id_large)]macro
TAG3 [Flyout ("flyname", id_small, id_large, icon, alias)]macro
TAG4 [control (element)]
[--]
***TOOLBARS , MYTOOLS1 , .
, :
TAG1, TAG2, TAG3, TAG4 [--]. ,
(TAG1), . Toolbar, , , . .
tbarname
, .
, - , (-) (_)
orient
, .
: Floating, Top, Bottom, Left Right.
visible
, .
Show Hide.
xval
, X . X
yval
, Y . Y
rows
192
, (TAG2),
. Button, , , .
.
btname
, , .
, - , (-)
(_)
id_small
, (ID string) (
1616 ). , - , (-) (_).
id_small
(, RCDATA_16_CIRCLE).
id_large
, ( 3232 ).
, - ,
(-) (_). id_large
(, RCDATA_32_CIRCLE)
Macro
(TAG2), , ().
^C^CLine. ,
, (TAG2), ,
. Flyout , . .
flyname
, ,
. , - ,
(-) (_).
, ,
id_small
, (ID string)
(
1616 ). , - , (-) (_).
id_small
(, RCDATA_16_CIRCLE)
id_large
,
( 3232 ). ,
- ,
(-) (_). id_large
(, RCDATA_32_CIRCLE)
, ...
193
icon
, ,
.
ownicon othericon.
alias
, . **aliasname
macro
(TAG3), ,
,
(). ^C^Cline.
,
(TAG4)
. Control, ( ). .
element
:
Layer () ;
Linetype ( ) ;
Color () .
([--]) .
8
, LINE, PLINE, CIRCLE, ELLIPSE ARC.
MyDraw1 (. 5.21).
194
1:
- . , .
ID .
MENUGROUP=M1
***TOOLBARS
**TB_MyDraw1
ID_MyDraw1 [_Toolabar("MyDraw1", _Floating, _Hide, 10, 200,1)]
ID_Line [_Button("Line", RCDATA_16_LINE,
RCDATA_32_LINE)]^C^C_Line
ID_Pline [_Button("Pline", RCDATA_16_Pline,
RCDATA_32_Pline)]^C^C_Pline
ID_Circle [_Button("Circle", RCDATA_16_CirRAD,
RCDATA_32_CirRAD)]^C^C_Circle
ID_ELLIPSE [_Button("Ellipse", RCDATA_16_EllCEN,
RCDATA_32_EllCEN)]^C^C_ELLIPSE
ID_Arc [_Button("Arc 3Point", RCDATA_16_Arc3Pt,
RCDATA_32_Arc3Pt)]^C^C_Arc
2: ,
.mnu.
MyDraw1, MENULOAD. , ,
, .
(MyDraw1) . Customize (),
Toolbars ( ) View (), MyDraw1 Menu Group ( ).
MyDraw1, Toolbars (
).
.
MENULOAD MyDraw1,
MyDraw1 , -TOOLBAR.
Command: -TOOLBAR
Enter toolbar name or [ALL]: MYDRAW1
Enter an option [Show/Hide/Left/Right/Top/Bottom/Float] <Show>: S
: -TOOLBAR
[]: MYDRAW1
[//////]
<>: S
AutoCAD id_small
id_large ICON, AutoCAD 2004
RCDATA.
, ...
195
9
. MyDraw2 : Circle Arc.
Circle Radius, Diameter, 2P 3P
(. 5.22). Arc , 3 Point, SCE
SCA (. 5.23).
. 5.23. Arc
MyDraw2
1: ,
- . :
***Menugroup=M2
***TOOLBARS
**TB_MyDraw2
ID_MyDraw2 [_Toolbar("MyDraw2", _Floating, _Show, 10, 100,1)]
ID_TbCircle [_Flyout("Circle", RCDATA_16_Circle,
RCDATA_32_Circle, _OtherIcon, M2.TB_Circle)]
ID_TbArc [_Flyout("Arc", RCDATA_16_Arc, RCDATA_32_Arc,
_OtherIcon, M2.TB_Arc)]
**TB_Circle
ID_Circle [_Toolbar("Circle", _Floating, _Hide, 10, 150,1)]
ID_CirRAD [_Button("Circle C,R", RCDATA_16_CirRAD,
RCDATA_32_CirRAD)]^C^C_Circle
ID_CirDIA [_Button("Circle C,D", RCDATA_16_CirDIA,
RCDATA_32_CirDIA)]^C^C_Circle;\D
ID_Cir2Pt [_Button("Circle 2Pts", RCDATA_16_Cir2Pt,
RCDATA_32_Cir2Pt)]^C^C_Circle;\2P
ID_Cir3Pt [_Button("Circle 3Pts", RCDATA_16_Cir3Pt,
RCDATA_32_Cir3Pt)]^C^C_Circle;\3P
**TB_Arc
ID_TbArc [_Toolbar("Arc", _Floating, _Hide, 10, 150,1)]
ID_Arc3PT [_Button("Arc,3Pts", RCDATA_16_Arc3PT,
RCDATA_32_Arc3PT)]^C^C_Arc
ID_ArcSCE [_Button("Arc,SCE", RCDATA_16_ArcSCE,
RCDATA_32_ArcSCE)]^C^C_Arc;\C
ID_ArcSCA [_Button("Arc,SCA", RCDATA_16_ArcSCA,
RCDATA_32_ArcSCA)]^C^C_Arc;\C;\A
196
M2 (***MENUGROUP=M2), TB_Circle
. M2.TB_Circle TB_Circle, M2. M2
, Circle , , .
ID_CirDIA [_Button("Circle C,D", RCDATA_16_CirDIA,
RCDATA_32_CirDIA)]^C^C_Circle;\D
CirDIA , Circle-Diameter. .
2: ,
MENULOAD, MyDraw2 .
AutoCAD Windows
. , , CIRCLE ARC, :
***HELPSTRINGS
ID_Copy [ .]
ID_Ellipse [ .]
***HELPSTRING , . ,
, (ID_Copy) , .
12 . - , AutoCAD
, ***HELPSTRINGS. , , .
AutoCAD , . ,
, . ,
. ,
, , , . .
, ...
197
10
(MyToolbar1), Line, Polyline, Circle ( Center Radius), Arc ( Center,
Start End), Spline Paragraph Text (MTEXT).
Line, , , ,
.
1
Customize (), Toolbars (
) View (). ,
TBCONFIG .
2
New (), Toolbars (
). New Toolbar ( ).
3
(MyToolbar1)
Toolbar name ( ), ,
OK (. 5.24). Toolbars (
) Customize ().
4
, , MyToolbar1.
.
198
5
Commands () Customize (),
. 5.25. Categories
() Commands ().
6
Draw () Categories ().
Commands () Customize () Draw.
7
Line () MyToolbar1.
Polyline (), Circle ()
( Center () Radius ()), Arc () ( Center (), Start
(), End ()), Spline () Text () (Multiline text (
)).
8
Categories () Dimension ()
MyToolbar1 ,
(. 5.25).
9
,
Customize (), Close (). AutoCAD.
10
, , .
, ...
199
1
, , . Line
(), MyToolbar1.
2
-
Customize () .
Customize (). Line, MyToolbar1. , Line (),
. 5.26.
3
, Button Editor (
), Edit (). , . ,
Line , .
Circle . Erase.
4
.
, .
, L.
200
5
Save As ( )
Tutorial MyLine. Button Editor
( ), Close (). Save
() Save As ( ) .
6
MyLine Name (),
Button Properties ( ) Customize ().
, .
, Apply (). AutoCAD, . ,
.
1
Customize (),
- Customize () .
2
Spline MyToolbar1.
OK.
. , , . AutoCAD,
.
, ...
201
Customize (), Toolbars (
) View (). Toolbars ( )
, , Delete ().
.
1
Ordinate Dimension (
), Dimension (),
MyToolbar1. Customize (),
- Customize
() Toolbars ( )
View (). Commands ()
Dimensions () Categories (). ,
, Commands ().
2
Ordinate Dimension ( ), Commands (), MyToolbar1.
MyToolbar1.
, ,
acad.mns acad.mnr. acad.mns.
***MYTOOLBAR1
ID_MyToolbar1_0 [_Toolbar("MyToolbar1", _Floating,
_Show, 512, 177, 1)]
ID_Line_0 [_Button("MyLine", "RCDATA.bmp",
"RCDATA_24_LINE")]^C^C_line
ID_CircleCenterRadius_0 [_Button("Circle Center Radius",
"RCDATA_16_CIRRAD", "RCDATA_24_CIRRAD")]^C^C_circle
ID_Polyline_0 [_Button("Polyline", "RCDATA_16_PLINE",
"RCDATA_24_PLINE")]^C^C_pline
ID_ArcCenterStartEnd_0 [_Button("Arc Center Start End",
"RCDATA_16_ARCCSE", "RCDATA_24_ARCCSE")]^C^C_arc_c
, .
1
Customize (),
Customize () . Toolbars ( )
New (). New Toolbar (
). (, MyToolbar2) , OK.
202
2
Commnads () Flyouts ( ) Categories
().
Commands ().
Draw ()
. 5.28. MyToolbar2. , ,
MyToolbar1
, .
3
User Defined ( ) Categories
(). Commnads ().
User Defined Flyout MyToolbar2.
User Defined Flyout, MyToolbar2;
AutoCAD. Customize (), . Flyout
Properties ( ), Inquiry ()
Apply (). Inquiry .
(. 5.29).
1
Customize (), Toolbars (
) View (). Keyboards ()
Draw Menu ( ) Categories
(). Commands ().
. 5.29. Customize
, ...
203
2
Press new shortcut key, ,
. <Ctrl>, , ,
.
<Ctrl+Shift>. , <Ctrl+Shift> ,
, <L>. ,
Show All ( ).
3
,
Assign () (. 5.30), Customize
(), Close ().
LINE (), <Ctrl+L>.
204
,
.
1. ________.
2. ________.
3. ________.
4. ________ .
5. ________ .
6. - , ________.
7. ________ , ________
.
8. AutoCAD ________.
9. ________ .
10. ________ , .
11. ________ Default, Edit
Command .
12. ________.
13. Customize ________
________.
.
1. ________ .
2. ________ .
3. _________
.
4. , ([--]),
________ ________ .
5. (~),
_______.
6. , , ________
.
7. ________ .
8. ________.
9. Windows
, . (/)
10. (MENUGROUP). (/
)
, ...
205
11. ________.
12. , , ________
( AutoLISP).
3 ()
, AutoCAD.
( . 5.31.)
LINE
CIRCLE C,R
CIRCLE C,D
ARC 3P
ARC SCE
ARC CSE
DIMLINEAR
DIMALIGNED
DIMRADIUS
DIMDIAMETER
DIMANGULAR
QLEADER
TEXT
TEXT
TEXT
TEXT
TEXT
TEXT
LEFT
RIGHT
CENTER
ALIGNED
MIDDLE
FIT
. 5.31.
4 ()
, AutoCAD.
LINE
PLINE
CIRCLE C,R
CIRCLE C,D
ELLIPSE AXIS ENDPOINT
ELLIPSE CENTER
BLOCK
WBLOCK
INSERT
BLOCK LIST
ATTDEF
ATTEDIT
5 ()
Windows.
: POP1 (MyArc) POP2 (MyDraw). MyArc ARC . MyDraw,
, LINE, CIRCLE, PLINE, TRACE, DTEXT MTEXT
.
206
6 ()
.
MyDrawX1
Draw Modify. Draw , ( Draw). , Modify
, ( Modify).
7 ()
, AutoCAD.
LAYER
LAYER
LAYER
LAYER
LAYER
LAYER
NEW
MAKE
SET
LIST
ON
OFF
SNAP 0.25
SNAP 0.5
GRID 1.0
DRID 10.0
APERTURE 5
PICKBOX 5
UCS WORLD
UCS PREVIOUS
VPORTS 2
VPORTS 4
VPORTS SING.
1 acad.mnu, 2 MENU MENULOAD, 3 , 4 499 ,
5 4 , 6 , 7 ->, <-, 8 ***, 9 <-<-, 10 !, 11
SHORTCUTMENU, 12 **, 13 TBCONFIG.
, :
;
;
.
208
(image tile menu), (icon
menu), , () .
AutoLISP . ,
AutoCAD.
, ,
, . , , .
, (. 6.1). , . ,
, .
(. . 6.1).
,
. ,
.
- , AutoCAD ,
(. . 6.1). ,
, ( , ).
.
, , . , <Esc>, Cancel () -
.
. 6.1.
209
, , , 20 . , ,
, Next () Previous
(), . , . ,
.
(**),
. , .
,
. :
**
** (**), ;
.
31 .
, ,
($), (-) (_).
.
.
. , , ($),
.
I. (=), , . (**).
:
$=
$ ;
() ;
= ;
.
210
$I=IMAGE1
$I ;
IMAGE1 .
()
. , IMAGE1 ,
, .
AutoCAD
$I=*
I , ;
* .
***IMAGE, .
(***IMAGE), .
***IMAGE
*** , ;
IMAGE .
, , . (, **PARTS **IMAGE1).
**IMAGE1
** , ;
IMAGE1 .
, . (, [PLC-SYMBOLS]) - . , , .
,
( ) , .
***IMAGE
**BOLTS
[HEX-HEAD BOLTS]
[BOLT1]^C^CINSERT;B1
(BOLTS)
BOLT1 ; B1
211
,
, , . () ,
.
. , , ,
:
1. , ,
. MSLIDE
, , .
, .
,
ZOOM () Extents () Window
().
2. , , , , .
. , , .
3. , , . ,
, .
4. , ,
. PAN.
5. ,
, . ,
.
6. , , 1,5:1 (.. 1,5:1). ,
1,5 , 1 . , 1,5:1, , ,
, .
1
, , , (
), . 6.2. .
212
. 6.2. ,
PLC SYMBOLS
NO (NORMALLY OPEN)
NC (NORMALLY CLOSED)
COIL
( )
( )
ELECTRIC SYMBOLS
RESIS (RESISTANCE)
DIODE
GROUND
()
()
1:
, , , WBLOCK. MSLIDE
,
. INSERT.
2:
,
. . 6.3
, 1.
. 6.3. 1
213
2:
EDIT - , , Notepad Wordpad. ,
, .
***POP1
[ELECTRIC]
[PLC-SYMBOLS]$I=IMAGE1 $I=*
[ELEC-SYMBOLS]$I=IMAGE2 $I=*
***IMAGE
**IMAGE1
[PLC-SYMBOLS]
[NO]^C^CINSERT;NO;\1.0;1.0;0
[NC]^C^CINSERT;NC;\1.0;1.0;0
[COIL]^C^CINSERT;COIL
[ No-Image]
[blank]
**IMAGE2
[ELECTRICAL SYMBOLS]
[RESIS]^C^CINSERT;RESIS;\\\\
[DIODE]^C^CINSERT;DIODE;\1.0;1.0;\
[GROUND]^C^CINSERT;GRD;\1.5;1.5;0;;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
1
***POP1
***POP1 .
2
[ELECTRIC]
[ELECTRIC] POP1. .
3
[PLC-SYMBOLS]$I=IMAGE1 $I=*
$I=IMAGE1 IMAGE1,
$I=* .
5
***IMAGE
***IMAGE, , . ;
AutoCAD .
6
**IMAGE1
**IMAGE1, , .
214
7
[PLC-SYMBOLS]
, 3 ([PLC-SYMBOLS]$I=IMAGE1
$I=*), AutoCAD IMAGE1
(. 6.4). 7.
, .
.
. 6.4. PLC-SYMBOLS
8
[NO]^C^CINSERT;NO;\1.0;1.0;0
NO, , .
. . , ,
. NO , .
(\) ,
( ). 1.0 X.
1.0 Y, 0 .
[NO]^C^CINSERT;NO;\1.0;1.0;0
NO ;
\ , ;
1.0 X;
1.0 Y;
0 .
,
INSERT (), NO .
, .
215
10
[COIL]^C^CINSERT;COIL
, .
.
11
[ No-Image]
No-Image. , AutoCAD ,
, .
12
[blank]
blank (), ( )
.
15
[RESIS]^C^CINSERT;RESIS;\\\\
[RESIS]^C^CINSERT;RESIS
, , , .
16
[DIODE]^C^CINSERT;DIODE;\1.0;1.0;\
. , .
17
[GROUND]^C^CINSERT;GRD;\1.5;1.5;0;;
(;). , 0, ENTER
. ENTER INSERT.
, . , .
216
, . - ,
, Files () Options ().
. ,
([GROUND]*^C^CINSERT;GRD;\1.5;1.5;0;;), , .
, .
$I=*, ,
.
, <Esc>. , , AutoCAD.
.
4:
pdm1.mnu. (.mnu). , .
, AutoCAD acad.mnu ( , acad.mnu
). , MENU. ,
, MENULOAD,
. MENU.
Command: MENU
PDM1 ;
< > .
MENU,
. (.mnu), AutoCAD .
MNC MNR.
217
5:
MENU. , Select Menu File (
). pdm1.mnu Open (),
. 6.6.
, , , .
, . , , .
(acad.mnu), Select
Menu File ( ), MENU .
acad.mnu, C:\Documents and Settings\Owner\
Application Data\Autodesk\AutoCAD 2004\R16.0\enu\support.
Windows 98, C:\Windows\
Local Settings\Application Data\Autodesk\AutoCAD 2004\R16.0\enu\support.
, AutoCAD. ,
.
TEXT
TEXT ,
, .
218
SKETCH
SKETCH, .
1
, . 6.7.
,
.
PIPE FITTINGS
GLOBE-P
GLOBE
REDUCER
CHECK
()
ELECTRIC SYMBOLS
BATTERY
CAPACITOR
COUPLER
BREAKER
. 6.7. 1
, , . , ,
. , . 23
. , , . , ,
.
[slidename]. , ,
, .
, .
219
2
, ,
115.
BLOCK
WBLOCK
ATTDEF
LIST
INSERT
BL1
BL2
BL3
BL4
BL5
BL6
BL7
BL8
BL9
BL10
BL11
BL12
BL13
BL14
BL15
1:
, , . .
220
2:
. . 6.8.
Insert ,
.
. 6.8. 2
3:
.
, 2. . , .
***POP1
[INSERT]
[BLOCK]^C^CBLOCK
[WBLOCK]^C^CWBLOCK
[ATTRIBUTE DEFINITION]^C^CATTDEF
[LIST BLOCK NAMES]^C^CINSERT;?
[INSERT]^C^C$I=IMAGE $I=*
[--]
[ATTDIA-ON]^C^CSETVAR ATTDIA 1
[ATTDIA-OFF]^C^CSETVAR ATTDIA
***IMAGE
**IMAGE1
[BLOCK INSERTION FOR EXAMPLE-2]
[BL1]^C^CINSERT;BL1;\1.0,1.0;\
[BL2]^C^CINSERT;BL2;\1.0,1.0;0
[BL3]^C^CINSERT;BL3;\;;\
[BL4]^C^CINSERT;BL4;\;;;
[BL5]^C^CINSERT;*BL5;\1.75
[BL6]^C^CINSERT;BL6;\XYZ
[BL7]^C^CINSERT;BL7;\XYZ;;;\0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
221
[BL8]^C^CINSERT;BL8;\XYZ;;;;;
[BL9]^C^CINSERT;BL9;\ XYZ;;;;\
[BL10]^C^CINSERT;*BL10;\XYZ;\
[BL11]^C^CINSERT;BL11;\XYZ;1;1.5;2;45
[BL12]^C^CINSERT;BL12;\ XYZ;\\;;
[BL13]^C^CINSERT;*BL13;\\45
[BL14]^C^CINSERT;BL14;\C;@1.0,1.0;0
[BL15]^C^CINSERT;BL15;\C;@1.0,2.0;\
22
23
24
25
26
27
28
29
1
***POP1
.
, 2 10.
12
***IMAGE
13
**IMAGE1
IMAGE1 , , 14 29.
15
[BL1]^C^CINSERT;BL1;\1.0,1.0;\
4:
imex2.mnu.
5:
, MENU.
,
.
1. ________.
2. ________ , .
3. ________.
222
4. AutoCAD ________.
5. ________.
.
1. , ,
________.
2. ________ .
3. , ________.
4. _________ .
5. , , ________
.
6. _______ .
7. , , ________ ,
.
8. ________ .
2 ()
:
B1
B4
B7
B2
B5
B8
B3
B6
B9
3 ()
, AutoCAD.
, , .
LINE
PLINE
CIRCLE C,R
CIRCLE C,D
CIRCLE 2P
4 ()
. .
B1
B4
B7
C1
C4
C7
B2
B5
B8
C2
C5
C8
B3
B6
B9
C3
C6
C9
1 , 2 , 3 **, 4 $I=*, 5 ***IMAGE.
, :
;
;
.
224
AutoCAD - . , ,
. -
, .
-
AutoCAD.
. AutoCAD
, . -
12 . 7.1.
. 7.1. - 12
AutoCAD ,
acad.mnu.
AutoCAD .
- .
(BUTTONS1, BUTTONS2,
BUTTONS3 BUTTONS4) (AUX1, AUX2, AUX3 AUX4)
. ,
. - (, ),
AutoCAD ,
BUTTONS1. ,
, , - .
. (BUTTONS2, BUTTONS3 BUTTONS4),
( ).
AUX1
AUX2
BUTTONS1
BUTTONS2
AUX3
BUTTONS3
AUX4
BUTTONS4
225
+
-
<Shift> , , -
<Ctrl> , , -
<Shift> <Ctrl> , , -
( ) ,
AutoCAD. , .
. , - .
, ,
, , .
-
.
1
, AutoCAD.
- 12 (. 7.2), 1 . ( bm1.mnu.)
. 7.2. -
226
2
4
6
8
10
12
RETURN
CURSOR MENU
ORTHO
INT,END
CIRCLE
ZOOM Prev
3
5
7
9
11
CANCEL
SNAP
AUTO
LINE
ZOOM Win
1:
EDIT -
. ,
1. .
***BUTTONS1
;
^C^C
$P0=*
^B
^O
AUTO
INT,ENDP
^C^CLINE
^C^CCIRCLE
'ZOOM;Win
'ZOOM;Prev
1
2
3
4
5
6
7
8
9
10
11
12
1
***BUTTONS1
***BUTTONS1 .
- .
2
;
(;), 2. - ,
RETURN, . RETURN .
3
^C^C
, , (^C^C). 3. -
.
227
4
$P0=*
, , POP0, . , POP0 . 4. -
,
.
5
^B
, , . 5. , . , <Ctrl> , ,
<B>.
6
^O
, ,
(ORTHO) . 6.
- .
7
AUTO
AUTO, . - .
8
INT,ENDP
9
^C^CLINE
LINE (),
9.
LINE.
228
10
^C^CCIRCLE
CIRCLE (),
10. CIRCLE
.
11
'ZOOM;Win
, , ZOOM
() Window ().
- .
' , ZOOM ;
ZOOM AutoCAD;
; , RETURN;
Win Window () ZOOM ().
12
'ZOOM;Prev
, , ZOOM
(Prev). .
2:
bm1.mnu, , MENU
().
,
- , , , . . , - ,
2, 3 4. .
,
. , , 3,
4. , , ,
- . .
MENU. ,
MENULOAD AUXn BUTTONSn .
- AutoCAD :
1) ;
2) .
229
, . ,
, :
^C^CLINE
, -
. , AutoCAD , . ,
, . , , :
^C^CLINE;\
2
, AutoCAD.
- ,
. 7.3. , ,
( ).
. 7.3. -
230
1
2
3
4
5
6
7
PICK
ENTER (RETURN)
ERASE ( SI NEAR)
INT,ENDP
LINE
PLINE
CIRCLE
1:
, 2.
, .
***BUTTONS1
;
^C^CERASE;SI;NEAR;\
INT,ENDP;\
LINE;\
PLINE;\
CIRCLE;\
1
2
3
4
5
6
7
3
^C^CERASE;SI;NEAR;\
SI ;
NEAR ;
\ .
4
INT,ENDP;\
231
INT ;
ENDP ;
\ .
7
CIRCLE;\
, , .
(\) ,
. 7. -
, .
, .
2:
, , MENU.
, , .
, (\),
. ,
,
, .
INSERT;B1\\\0
\ ;
\ X;
\ Y;
0 .
, . .
(**),
. ,
. ,
. :
**
232
** (**), ;
.
31 .
, ,
($), (-) (_).
.
.
.
, , ($), .
B.
(=), , . (**).
:
$=,
$ ;
() ;
= ;
.
$B=BUTTON1
$B ;
BUTTON1 .
, , .
. ,
, , .
, ,
:
$S=X $S=INSERT
233
S , ;
X , ;
INSERT , .
($S=X) X, . , X,
21, .
($S=INSERT) INSERT,
.
:
$P1=P1A $P1=*
$P1=P1A P1A;
$P1=* .
($P1=P1A) P1A,
1. ($P1=*)
.
:
$1=IMAGE1 $1=*
$1=IMAGE1 IMAGE1;
$1=* .
. ($1=IMAGE1) IMAGE1, . ($1=*)
.
3
-
. bm3.mnu. ,
, :
1
1.
2. ENTER
3. OSNAPS
4. ZOOM1
5. B1
6. B2
1.
2. ENTER
3. IMAGE1
4. EXPLODE ()
5. B1
6. B2
234
. 1
5, 2 6. B1
AutoCAD - , B1. , B2
AutoCAD , , - . ,
B1 B2, . 7.4.
. 7.4. , -
1:
EDIT.
, 3.
, .
***BUTTON
**B1
;
$P1=*
$'ZOOM;Win
$B=B1
$B=B2
**B2
;
^C^C$I=IMAGE1 $I=*
EXPLODE;\
$B=B1
$B=B2
1
2
3
4
5
6
7
8
9
10
11
12
13
235
2
**B1
, , B1.
4
$P1=*
, POP1.
5
'ZOOM;Win
, , ZOOM
() Window ().
8
**B2
, , B2.
10
^C^C$I=IMAGE1 $I=*
^C^C$ ;
I=IMAGE1 IMAGE1;
$I=* .
11
EXPLODE;\
, . - , .
, , ,
, .
EXPLODE AutoCAD;
; (;), ENTER;
\ ,
.
12
$B=B1
B1 ,
, - .
236
13
$B=B2
B2 , , - .
2:
bm3.mnu, ,
MENU.
(AUX1,
AUX2, AUX3 AUX4). (***AUXn)
, . .
, . BUTTONS1 AUX1,
BUTTONS2 AUX2 .. . + (.. ).
, .
+ .
AUX1
AUX2
AUX3
AUX4
<Shift>
<Ctrl>
<Shift+Ctrl>
+ .
AUX1
<Shift>
<Shift>
<Ctrl>
<Ctrl>
<Shift+Ctrl>
<Shift+Ctrl>
AUX2
AUX3
AUX4
, . ,
.
.
237
4
, AutoCAD ( aux1.mnu).
AUX1
MOVE ()
AUX2
COPY ()
AUX3
ERASE ()
AUX4
SCALE ()
1:
- EDIT. , 4. , .
***AUX1
MOVE
***AUX2
COPY
***AUX3
ERASE
***AUX4
SCALE
1
2
3
4
5
6
7
8
9
10
1
***AUX1
AUX1 , . AutoCAD
.
2
MOVE
3
. ,
.
.
2:
aux1.mnu, ,
MENU.
238
,
.
1. - ,
________ ________ .
2. ________ .
3. ________ .
4. _________ .
5. -
________ ________ AutoCAD.
.
1. -
AutoCAD ________ ________ .
2. , - , ,
, ________.
3. -
_________ , .
4. , , ________.
5. LOAD, , , ________.
1 ()
, AutoCAD. 10 , . 7.5,
1 .
1,00 0 . bme1.mnu.
1.
4. OSNAPS
7. INSERT B3
10. ZOOM Previous
2. RETURN
5. INSERT B1
8. ZOOM Window
3. CANCEL
6. INSERT B2
9. ZOOM All
1. B1, B2 B3 .
2. , Osnap .
3. ZOOM Previous ZOOM Window
ZOOM.
239
. 7.5. - 10
2 ()
- 10 . , ,
. 7.6. bme2.mnu.
. 7.6. , -
240
1.
1.
2. Enter
2. Enter
3. LINE ()
3. IMAGE1
4. CIRCLE ()
4. IMAGE2
5. OSNAPS
5. P2 ( )
6. ZOOM () Window ()
6. P3 ( )
7. ZOOM () Previous ()
7. INSERT ()
8. ERASE ()
8. EXPLODE ()
9. B1
9. B1
10. B2
10. B2
, :
1) OSNAPS 1 0 ( );
2) 2 3 2 3;
3) IMAGE1 IMAGE2 , IMAGE.
, .
1 , , 2 , 3 , 4 , 5 ,
.
, :
;
;
;
;
.
242
.
,
.
- . (. 8.1), AutoCAD, .
AutoCAD : TABLET1,
TABLET2, TABLET3 TABLET4. AutoCAD . , , .
(TABLET1) 225 ,
225 .
32 766 .
AutoCAD, ,
. ,
TABLET2, RENDER, SOLID MODELING, USCICON,
DISPLAY, INQUIRY, LAYER, DRAW, ZOOM PAPER SPACE. TABLET3 , . TABLET4 TEXT, DIMENSIONING, OBJECT SNAPS, EDIT, UTILITY, XREF SETTINGS.
(. 8.2),
TABLET1, TABLET2, TABLET3 TABLET4.
. 8.1.
243
. 8.2. AutoCAD
.
1. , .
, .
.
, ,
. Dimension (),
,
Linear ().
Linear .
, .
2. , AutoCAD.
. , , AutoCAD,
Baseline Dimension ( ) Continue Dimension (
). , ,
.
3.
. , , ,
.
244
AutoCAD ,
. , AutoCAD.
: TABLET1, TABLET2,
TABLET3 TABLET4. . . , .
. TABLET
(). MENU ()
, .
, .
,
. ,
.
1. , AutoCAD .
2. , .
3. , , - .
, ..
. , .
4. , TABLET1,
TABLET2, TABLET3 TABLET4. .
, .
5. , , ,
. , , .
6. TEXT (),
, ,
, .
7.
().
, ,
.
245
,
AutoCAD , . .
AutoCAD,
. , , 1.
1
, .
. 8.3. , .
tm1.mnu.
LINE
CIRCLE C,D
CIRCLE
ERASE
PLINE
CIRCLE 2P
1:
. 8.3 ,
, - . ,
TABLET1.
, Notepad Wordpad.
, TM1, .MNU.
, .
***TABLET1
^C^CLINE
^C^CPLINE
^C^CCIRCLE
^C^CCIRCLE;\D
^C^CCIRCLE;2P
^C^CERASE
1
2
3
4
5
6
7
. 8.3.
246
2:
1
***TABLET1
TABLET1 .
(***).
*** , ;
TABLET1 .
2
^C^CLINE
^ C ^ C ; L I N E
AutoCAD. ^C LINE .
^C^C ;
LINE AutoCAD.
3
^C^CPLINE
^C^C ; PLINE
AutoCAD.
4
^C^CCIRCLE
^C^C ; CIRCLE
AutoCAD. . , -
.
5
^C^CCIRCLE;\D
CIRCLE AutoCAD;
; , RETURN;
\ ;
D Diameter ().
247
6
^C^CCIRCLE;2P
^C^C ; CIRCLE
AutoCAD. ENTER RETURN. 2P CIRCLE (),
.
7
^C^CERASE
^C^C ; ERASE
AutoCAD, .
, ,
. , T1-6, ,
.
[T1-6]^C^CCIRCLE;2P,
[T1-6] ,
;
T1 (1);
6 (6).
.
, ,
.
, , Wintab, . AutoCAD
, .
TABLET (). (. . 8.3)
, . TABLET, CFG (Configure) . , , . 8.4.
Command: TABLET
Enter an option [ON/OFF/CAL/CFG]: CFG
Enter number of tablet menus desired (0-4) <current>: 1
Do you want to realing tablet menus? [Yes/No]: <N>: Y
Digitize upper left corner of menu area 1; P1
Digitize lower left corner of menu area 1; P2
Digitize lower right corner of menu area 1; P3
Enter the number of columns for menu area 1: 6
248
: TABLET
[ON/OFF/CAL/CFG]: CFG
(0-4) <>: 1
? [/]: <>: Y
1; P1
1; P2
1; P3
1: 6
1: 1
- ?
[/]: <>: Y
- : P4
- : P5
- ?
[/]: <>: N
. 8.4. ,
249
- .
, .
. ,
, ,
.
AutoCAD acad.mnu (
, acad.mnu
). , , MENU.
Command: MENU
MENU
Select Menu File ( ), . 8.5. , , Open (). , FILEDIA 0.
Command: FILEDIA
Enter new value for FILEDIA <1>: 0
Command: MENU
Enter menu file name or [.(for none)] <>: PDM1
:
PDM1
<>
MNC MNR.
250
1 ()
, AutoCAD.
, . tm1.mnu.
LINE
CIRCLE C,R
ARC C,S,E
ELLIPSE
DONUT
TEXT-Center
TEXT-Left
TEXT-Right
TEXT-Aligned
, . 8.6. .
. 8.6. 1
, .
, , . , ,
, . , . , , ,
.
,
(, L- T- ).
. 8.7.
251
,
.
2
, . 8.8.
. 8.9 , . , tm2.mnu.
. 8.8.
2
***TABLET1
^C^CLINE
^C^CPLINE
^C^CCIRCLE
^C^CCIRCLE;\D
^C^CCIRCLE;2P
***TABLET2
^C^CERASE
^C^CZOOM;W
^C^CMOVE
^C^CZOOM;P
^C^CCOPY
^C^CZOOM;A
^C^COFFSET
^C^CPAN
***TABLET3
;
;
'REDRAW
'REDRAW
'REDRAW
***TABLET4
5\
6\
7\
. 8.9.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
252
8\
9\
,\
WINDOW
0\
1\
2\
3\
4\
.\
CROSSING
26
27
28
29
30
31
32
33
34
35
36
16
, 1.
9
^C^CZOOM;W
ZOOM AutoCAD;
; , RETURN;
W Window () ZOOM ().
:
^C^CZOOM W
ZOOM W ,
RETURN.
17 18
;
(;) RETURN.
, RETURN .
1921
'REDRAW
REDRAW AutoCAD,
. , REDRAW ^C^C . ^C^C,
. ,
, .
('), , REDRAW .
23
5\
(\) , . - , 5 RETURN.
253
, , 5,6.
, - ,
. RETURN .
, MENU, . ,
AutoCAD. , , .
, , 4
(. . 8.8) , ,
, . 8.10.
. 8.10. 4
, , TABLET4, . .
, 5, 6, 7, 8, 9 Window . .
. 8.11.
. 8.11. 4
, 3 .
, ,
. 8.8. , , ,
(. 8.12).
TABLET3 . (;) .
, (;) .
254
, REDRAW . ,
, ENTER.
, , REDRAW.
. 8.12. 3
. AutoCAD (acad2004.cfg).
- ,
, .
MENUCTL . MENUCTL 1, AutoCAD $S=CMDNAME, CMDNAME , . , LINE
() , CMDNAME LINE .
, . , , , , ARC.
ARC () . , - (, MYARC), AutoCAD
. MENUCTL 1.
0, $S=CMDNAME .
255
,
.
1. ________ ________.
2. ________
.
3. ________.
4. _________ .
5. , ,
________.
.
1. ________ .
2. ________ .
3. , , _________
.
4. ________ .
5. _________ ,
.
6.
_________.
7. ________.
2 ()
,
:
BX1
BX2
BX3
BX4
BX5
BX6
BX7
BX8
BX9
BX10
BX11
BX12
3 ()
, AutoCAD:
LINE
PLINE
ARC
CIRCLE
ELLIPSE
POLYGON
ZOOM-Win
ZOOM-Dyn
ZOOM-All
ZOOM-Pre
ZOOM-Ext
ZOOM-Scl
DIM-Horz
DIM-Vert
DIM-Alig
DIM-Ang
DIM-Rad
DIM-Cen
256
4 ()
, , (. 8.13). ,
.
. 8.13. 4
5 ()
, . 8.14. , .
, .
. 8.9. 5
257
6 ()
, . 8.15.
,
.
. 8.15. 6
7 ()
( ) , . 8.16. ,
.
. 8.16. 7
258
. 8.17. 1
.
, .
259
. 8.18. 1
.
, .
260
. 8.19. 2
.
, .
261
. 8.20. 4
.
, .
262
. 8.21. 5
.
, .
263
. 8.22. 6
.
, .
264
. 8.23. 7
.
, .
1 , - , 2
225, 32766, 3 ***, 4 ,
5 .
, :
;
;
;
;
, ;
;
;
;
AutoLISP DIESEL.
266
AutoCAD
. , Options
(), ToolsOptions (). Display () Display screen menu (
). , .
AutoCAD. AutoCAD, (****)
(. 9.1).
,
- . ,
. , ,
. ,
( ) .
, ,
. , , .. , ,
.
. 9.1. , AutoCAD
267
,
.
[LINE
[LINE
] $S=X $S=LINE ^C^CLINE ;
[LINE
] ;
$S=X $S=LINE ^C^CLINE .
1
, AutoCAD (
sm1.mnu).
LINE
CIRCLE C,R
CIRCLE C,D
CIRCLE 2P
ERASE
MOVE
. 9.2.
MENU-1, .
, .
- , ,
.mnu.
sm1.mnu, sm1 , .mnu .
. 9.2.
. 9.3.
, 1.
,
.
***SCREEN
[ MENU-1 ]
[
]
[
]
[LINE
]^C^CLINE
[
]
1
2
3
4
5
6
268
[CIR-C,R ]^C^CCIRCLE
[CIR-C,D ]^C^CCIRCLE;\D
[CIR-2P ]^C^CCIRCLE;2P
[
]
[ERASE
]^C^CERASE
[MOVE
]^C^CMOVE
7
8
9
10
11
12
1
***SCREEN
***SCREEN . , , .
- , , ***TABLET1 ***POP1.
2
[ MENU-1 ]
(MENU-1). , ,
. . , ,
.
3 4
[
. . , ([]). ; , - .
, ,
([]). , .
5
[LINE
]^C^CLINE
LINE . ^C ( ) , ^C .
CANCEL (^C^C) ,
. CANCEL
AutoCAD. , , , .
LINE (), (.. ).
LINE, RETURN.
[LINE
] ;
^C CANCEL;
^C CANCEL;
LINE AutoCAD.
269
7
[CIR-C,R ]^C^CCIRCLE
, ,
. , . , ^C^C ( )
. CIRCLE AutoCAD, . , CIRCLE, RETURN ( ,
<>).
[CIR-C,R ] ;
^C CANCEL;
^C CANCEL;
CIRCLE AutoCAD.
8
[CIR-C,D ]^C^CCIRCLE;\D
, ,
. , . , ^C^C ( )
.
^C CANCEL;
^C CANCEL;
CIRCLE AutoCAD;
; (;), RETURN;
\ , ;
D Diameter ().
CIRCLE (;), (\) D, Diameter. (;),
, RETURN ,
. ,
. D Diameter (), RETURN.
, . , .
[CIR-C,D ]^C^CCIRCLE \D
CIRCLE (\)
, RETURN.
9
[CIR-2P
]^C^CCIRCLE;2P
^C^C . ,
CIRCLE, RETURN. 2
270
,
. , , , RETURN . ,
, . ,
. , , .
^C CANCEL;
^C CANCEL;
CIRCLE AutoCAD;
; (;), RETURN;
2 , .
, , CIRCLE,
. ,
RETURN.
[CIR-2P ]^C^CCIRCLE 2P
CIRCLE 2P
RETURN.
11
[ERASE
]^C^CERASE
ERASE AutoCAD.
12
[MOVE
]^C^CMOVE
MOVE AutoCAD.
, AutoCAD acad.mnu ( , acad.mnu
). , , MENU.
Command: MENU
MENU
Select Menu File ( ), . 9.4. , , Open ().
271
,
FILEDIA 0.
Command: FILEDIA
Enter new value for FILEDIA <1>: 0
Command: MENU
Enter menu file name or [.(for none)] <>: PDM1
PDM1 ;
<> .
MENU,
. (.mnu), AutoCAD .
1.
, . ,
(.. acad.mnu) , .
2. , acad.mnu, :
Command: MENU
Enter menu file name or [. (for none)] <>: ACAD.MNU
3. - - ,
(\). , .
4. .
272
9
5. , , .
6. ,
.
7. , ,
SCREENBOXES. , , ,
. , ,
, 28, ,
, .
1
,
AutoCAD. sm1.mnu.
PLINE
ELLIPSE (Center)
ELLIPSE (Axis endpoint)
ROTATE
OFFSET
SCALE
, ,
, . ,
,
SCREENBOXES. , , ,
28 . ,
, . , ,
,
. AutoCAD
. , ,
,
.
(**),
. ,
. ,
. :
**
** (**), ;
.
273
**DRAW
DRAW ;
** (**), .
1. 31 .
2. , ,
($), (-) (_).
3. .
4. .
.
, , ($), . , , Pn, n . (=),
, . (**). :
$=
$ ;
() ;
= ;
.
$S=EDIT
S ;
EDIT .
$ , .
$M= , DIESEL .
() :
S , SCREEN ( ).
P0P16 , POP ( POP1 POP16).
I , Image Tile ( ).
B1B4 , BUTTONS ( ) B1 B4.
TIT4 , TABLET ( ) T1 T4.
A1A4 , AUX ( ) A1 A4.
274
. - , . ,
, .
, , .
, :
$S=
$ ($);
S ;
= .
. (.. $S=) .
2
, .
LINE
PLINE
ELLIPSE-C
ELLIPSE-E
CIR-C,R
CIR-C,D
CIR-2P
ERASE
MOVE
ROTATE
OFFSET
COPY
SCALE
, ,
. , ,
, . , . ,
, . , .
. 9.5
. , .
, . (:) .
. , DRAW, , , .
, ERASE EDIT ERASE.
,
(:).
275
. 9.5.
, 1.
, ,
.
***SCREEN
[ MENU-2 ]
[******** ]
[
]
[
]
[
]
[
]
[DRAW
]^C^C$=DRAW
[EDIT
]^C^C$S=EDIT
**DRAW
[ MENU-2 ]^C^CS=SCREEN
[******** ]
[
]
[*-DRAW-* ]
[
]
[LINE:
]^C^CLINE
[PLINE:
]^C^CPLINE;\W;0.1;0.1
[ELLIP-C: ]^C^CELLIPSE;C
[ELLIP-E: ]^C^CELLIPSE
[CIR-C,R: ]^C^CCIRCLE
[CIR-C,D: ]^C^CCIRCLE;\D
[CIR-2P
]^C^CCIRCLE;\2P
[
]
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ]^C^C$S=
[*-EDIT-* ]^C^C$S=EDIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
276
**EDIT
[ MENU-2 ]^C^C$S=SCREEN
[******** ]
[
]
[*-EDIT-* ]
[
]
[ERASE:
]^C^CERASE
[MOVE:
]^C^CMOVE
[ROTATE: ]^C^CROTATE
[OFFSET: ]^C^COFFSET
[COPY:
]^C^CCOPY
[SCALE:
]^C^CSCALE
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ]^C^C$S=
[*-DRAW-* ]^C^C$S=DRAW
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
1
***SCREEN
***SCREEN .
2
[ MENU-2
MENU-2
.
3
[******** ]
,
(********).
4-7
[
. . .
8
[DRAW
]^C^C$=DRAW
[DRAW
] DRAW,
, , , .
^C^C , $=DRAW
DRAW .
277
9
[EDIT
]^C^C$S=EDIT
[EDIT
] EDIT . ^C^C
, $S=EDIT EDIT.
10
, , . .
11
**DRAW
**DRAW , ,
1231.
15
[*-DRAW-* ]
*-DRAW-*, . ,
.
18
[PLINE:
]^C^CPLINE;\W;0.1;0.1
[PLINE:
] PLINE: .
^C^C . PLINE AutoCAD.
RETURN. . (\) , . . W PLINE
() c Width (). (0.1)
, (0.1)
. 0,1.
PLINE AutoCAD;
; RETURN;
\ ;
W Width;
; RETURN;
0.1 ;
; RETURN;
0.1 .
19
[ELLIP-C: ]^C^CELLIPSE;C
278
ELLIPSE AutoCAD;
; RETURN;
C Center.
20
[ELLIP-E: ]^C^CELLIPSE
30
[*-PREV-* ]^C^C$S=
[*-PREV-* ] *-PREV-* .
^C^C , $S=
, .
$S= .
31
[*-EDIT-* ]^C^C$S=EDIT
[*-EDIT-* ] *-EDIT-* .
^C^C , $S=EDIT EDIT
. , EDIT.
$S EDIT;
EDIT .
33
**EDIT
**EDIT , , 3453.
34
[ MENU-2
]^C^C$S=SCREEN
[ MENU-2
] MENU-2.
^C^C , $S=SCREEN
SCREEN .
39
[ERASE:
]^C^CERASE
[ERASE:
] ERASE:. ^C^C
. ERASE AutoCAD, .
279
53
[*-DRAW-* ]^C^C$S=DRAW
$S=DRAW DRAW .
DRAW, .
,
AutoCAD.
DRAW DRAW
. , , . MENU-2
, (. 9.6). ,
, DRAW.
. 9.6.
,
21 . . ,
(. 9.7). 3 .
. 9.7.
280
, , , .
,
21 .
2 ()
, AutoCAD.
sme2.mnu.
ARC
-3P
-SCE
-SCA
-SCL
-SEA
POLYGON-C
POLYGON-E
MIRROR
BREAK-F
BREAK-@
EXTEND
STRETCH
FILLET-0
FILLET
CHAMFER
. (**), ,
.
. ,
. 3 .
3
, ,
AutoCAD.
Draw
LINE
Continue
Close
Undo
.X
.Y
.Z
.XY
.XZ
.YZ
ARC
3Point
SCE
SCA
CSE
CSA
CSL
Edit
EXTEND
STRETCH
FILLET
Dispaly
ZOOM
REGEN
SCALE
PAN
,
. . 9.8 , AutoCAD.
281
. 9.8.
, - , sm3.mnu. sm3.mnu.
,
.
***SCREEN
**S
[ MENU-3 ]^C^C$S=X $S=S
[******** ]$S=OSNAP
[
]
[DRAW
]^C^C$S=X $S=DRAW
[EDIT
]^C^C$S=X $S=EDIT
[DISPLAY ]^C^C$S=X $S=DISP
**DRAW 3
[
]
[*-DRAW-* ]
[LINE
]^C^CLINE
[ Continue ]^C^CLINE;;
[ Close
]CLOSE
[ Undo
]UNDO
[ .X
].X
[ .Y
].Y
[ .Z
].Z
[ .XY
].XY
[ .XZ
].XZ
[ .YZ
].YZ
[
]
[ARC:
]^C^CARC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
282
[ -3P:
]^C^CARC \\DRAG
[ -SCE: ]^C^CARC \C \DRAG
[ -SCA: ]^C^CARC \C \A DRAG
[ -CSE: ]^C^CARC C \\DRAG
[ -CSA: ]^C^CARC C \\A DRAG
[ CSL:
]^C^CARC C \\L DRAG
[
]
[*-PREV-* ]$S= $S=
[*-EDIT-* ]^C^C$S=X $S=EDIT
[*-DISP-* ]$S=X $S=DISP
**EDIT 3
[*-EDIT-* ]
[
]
[EXTEND: ]^C^CEXTEND
[STRETCH: ]^C^CSTRETCH;C
[FILLET: ]^C^CFILLET
[ Rad
]R;\Fillet
[ Rad 0
]R;0;\Fillet
[FILLET0: ]^C^CFillet;R;0::
Win.
Cross.
Add
Undo
[
]
[*-PREV-* ]$S= $S=
[*-DRAW-* ]^C^C$S=X $S=DRAW
[*-DISP-* ]$S=X $S=DISP
**DISP 3
[*-DISP-* ]
[
]
[ZOOM:
]ZOOM
[ -ALL
]A
[ -WIN
]W
[ -PREV ]P
[ -EXT
]E
[
]
[SCALE:
]ZOOM
[PAN:
]PAN
[REGEN:
]^C^CREGEN
[
]
[*-PREV-* ]$S= $S=
[*-EDIT-* ]^C^C$S=X $S=EDIT
[*-DRAW-* ]$S=X $S=DRAW
**X 3
[
]
[
]
[
]
[
]
[
]
[
]
[
]
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
**OSNAP 2
[*-OSNAPS-*]
[
]
[Center
]CEN $S=
[Endpoint ]END $S=
[Insert
]INS $S=
[Intersec ]INT $S=
[Midpoint ]MID $S=
[Nearest ]NEA $S=
[Node
]NOD $S=
[Perpend ]PER $S=
[Quadrant ]QUA $S=
[Tangent ]TAN $S=
[None
]NONE $S=
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ] $S=
283
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
3
[ MENU-3
], ,
MENU-3 . ^C^C
, $S=X . , $S=S
S. , 171, 18 .
, ,
. X S , .
[ MENU-3
]^C^C$S=X $S=S
^C^C ;
$S=X ( );
$S=S S.
284
4
[********]$S=OSNAP
, (********);
$S=OSNAP OSNAP. OSNAP, 191,
, .
6
[DRAW
]^C^C$S=X $S=DRAW
DRAW , , X, DRAW.
, DRAW, 11, , .
9
**DRAW 3
DRAW; 3 ,
DRAW 3. , 1 2 . 3 DRAW,
. , S
OSNAP, 3. , (MENU-3)
(********) .
MENU-3 S. ********, OSNAP.
DRAW ;
3 , .
12
[LINE:
]^C^CLINE
^C^C ; LINE
AutoCAD.
13
[ Continue ]^C^CLINE;;
LINE ,
. , , , Continue LINE:
Command: LINE
Specify first point: RETURN (Continue)
Specify next point or [Undo]:
,
, :
LINE
RETURN
RETURN
SELECT A POINT
285
, ,
LINE RETURN.
16
[.X
].X
.X, , X
. , .X , .
.X. , 3943.
[.X
[.Y
[.Z
].X .X ( );
].Y .Y ( );
].Z .Z ( ).
31
[*-PREV-* ]$S= $S=
$S= ;
$S= .
33
[*-DISP-* ]$S=X $S=DISP
$S=X , $S=DISP
DISP. , CANCEL (^C^C) . , .
, , . [*-DISP-* ], ,
LINE (). ,
CANCEL ([*-DISP-*]^C^C$S=X $S=DISP),
LINE , *-DISP-* . 32 ([*-EDIT-*
]^C^C$S=X $S=EDIT)
^C^C, . , ,
.
286
38
[STRETCH: ]^C^CSTRETCH;C
STRETCH AutoCAD;
; , RETURN;
C .
40
[ RAD
]R;\FILLET
, , FILLET
() Radius (), ,
. ,
, FILLET .
41
[ RAD 0 ]R;0;\FILLET
, , FILLET
() Radius (), 0.
FILLET,
.
42
[FILLET0:]^C^CFILLET;R;0;;
FILLET 0, .
FILLET AutoCAD;
R Radius () FILLET ();
; ( ), RETURN;
0 ;
; , RETURN;
; , FILLET.
287
54
[ZOOM:
]'ZOOM
ZOOM.
ZOOM AutoCAD;
' , ZOOM.
90
[Center ]CEN $S=
CEN, , ,
$S= .
CEN ;
$S= .
, , .
: [LINE:
]$S=X $S=LINE
X $S.
, -
AutoCAD, .
: [LINE:
]$S=LINE ^C^CLINE
3 ()
AutoCAD, . 9.9, sme3.mnu. (********) .
. 9.9.
288
4
( ) , (. 9.10)
(. 9.11). , .
tm3.mnu.
. 9.10. 4
. 9.11.
, 4.
, .
***SCREEN
**S
[ MENU-3 ]^C^C$S=X $S=S
[******** ]$S=OSNAP
[
]
[
]
1
2
3
4
5
6
289
[DRAW
[EDIT
[ZOOM
[LAYER
]^C^C$S=X $S=DRAW
]^C^C$S=X $S=EDIT
]^C^C$S=X $S=ZOOM
]^C^C$S=X $S=LAYER
**DRAW 3
[*-DRAW-* ]
[
]
[
]
[LINE:
]$S=X $S=LINE ^C^CLINE
[ARC:
]$S=X $S=ARC
[CIRCLE: ]$S=X $S=CIRCLE ^C^CCIRCLE
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ]$S= $S=
[*-EDIT-* ]^C^C$S=X $S=EDIT
[*-ZOOM-* ]$S=X $S=ZOOM
**LINE 3
[LINE:
]^C^CLINE
[
]
[
]
[ Continue ]^C^CLINE;;
[ Close
]CLOSE
[ Undo
]UNDO
[ .X
].X
[ .Y
].Y
[ .Z
].Z
[ .XY
].XY
[ .XZ
].XZ
[ .YZ
].YZ
[
]
[
]
[
]
[*-PREV-* ]$S= $S=
[*-EDIT-* ]^C^C$S=X $S=EDIT
[*-ZOOM-* ]$S=X $S=ZOOM
**ARC 3
[ARC
]
[
]
[ -3P:
]^C^CARC \\DRAG
[ -SCE: ]^C^CARC \C \DRAG
[ -SCA: ]^C^CARC \C \A DRAG
[ -CSE: ]^C^CARC C \\DRAG
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
290
**EDIT 3
[*-EDIT-* ]
[
]
[
]
[ERASE
]
[Quadrant ]QUA $S=
[Tangent ]TAN $S=
[None
]NONE $S=
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ]$S= $S=
[*-EDIT-* ]^C^C$S=X $S=EDIT
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[*-ZOOM-* ]$S=X $S=ZOOM
**ERASE 3
[ERASE:
[
]
Window
Last
Prev
Cross
Remove
Add
Undo
[
]
[
]
[
]
[
]
[
]
[
]
[*-PREV-*
[*-EDIT-*
[*-ZOOM-*
]^C^CERASE
]$S= $S=
]^C^C$S=X $S=EDIT
]$S=X $S=ZOOM
**ZOOM 3
[*-ZOOM-* ]
[
]
[
]
[ZOOM:
]ZOOM
[ -ALL
]A
[ -WIN
]W
[ -PREV ]P
[ -EXT
]E
[
]
[
]
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ]$S= $S=
[*-EDIT-* ]^C^C$S=X $S=EDIT
[*-DRAW-* ]$S=X $S=DRAW
***LAYER 3
[*-LAYER-* ]
[
]
[
]
[LAYER:
]^C^CCLAYER
Make
New
Set
Linetype
Color
291
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
292
[List
]?;;
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ]$S= $S=
[*-EDIT-* ]^C^C$S=X $S=EDIT
[*-DRAW-* ]$S=X $S=DRAW
**X 3
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
]
**OSNAP 2
[*-OSNAPS-*]
[
]
[Center
]CEN $S=
[Endpoint ]END $S=
[Insert
]INS $S=
[Intersec ]INT $S=
[Midpoint ]MID $S=
[Nearest ]NEA $S=
[Node
]NOD $S=
[Perpend ]PER $S=
[Quadrant ]QUA $S=
[Tangent ]TAN $S=
[None
]NONE $S=
[
]
[
]
[
]
[
]
[
]
[*-PREV-* ]$S
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
***TABLET1
$S=X $S=LINE ^C^CLINE
$S=X $S=CIRCLE ^C^CCIRCLE
$S=X $S=ARC ^C^CARC
$S=X $S=ZOOM ^C^CZOOM
$S=X $S=ERASE ^C^CERASE
$S=X $S=LAYER ^C^CLAYER
293
214
215
216
217
218
219
220
1
***SCREEN
***SCREEN . , 1 213.
3
[ MENU 3 ]^C^C$S=X $S=S
$S=X , $S=S S.
7
[DRAW
]^C^C$S=X $S=DRAW
$S=DRAW DRAW, .
12
**DRAW 3
DRAW , 3 ,
. , (MENU-3) (********) .
MENU-3 - S,
. , - ********,
OSNAP .
28
[*-PREV-*]$S= $S=
$S= $S=, , . , ,
.
214
***TABLET1
TABLET1 1.
, 215 220.
215
$S=X $S=LINE ^C^CLINE
$S=X, , X . X
294
, , , . $S=LINE, ,
LINE
. ^C^CLINE , LINE ().
LINE AutoCAD , LINE LINE.
, .
$S=X X;
$S=LINE LINE;
^C^C ;
LINE AutoCAD.
. ,
TABLET1 :
***TABLET1
$S=X ^C^CLINE
$S=X ^C^CCIRCLE
$S=X ^C^CARC
$S=X ^C^CZOOM
$S=X ^C^CERASE
$S=X ^C^CLAYER
214
215
216
217
218
219
220
.
, , .
,
. ,
AutoCAD ,
, , .
, ,
. , ,
, .
.
5
,
( sm4.mnu).
, :
1
2
3
4
5
0.01
0,0
12,0
12,9
0,9
0,0
295
0.25
0.5
12,9
, , , . ,
, .
Command: PLINE
Specify start point: 0,0
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Specify starting width <0.0000>: 0.01
Specify ending width <0.01>: <Enter>
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
12,0
12,9
0,9
C
PLINE (), :
PLINE;0,0;W;0.01;;12,0;12,9;0,9;C
Command: SNAP
Specify snap spacing or [ON/OFF/Aspect/Rotate/Sytle/Type] < >:
0.25
SNAP (), :
SNAP;0.25
Command: GRID
Specify grid spacing(X) or [ON/OFF/Snap/Aspect] < >: 0.5
GRID (), :
GRID;0.5
Command: LIMITS
Specify lower left corner or [ON/OFF] < >: 0,0
Specify upper right corner < >: 12,9
LIMITS (), :
LIMITS;0,0;12,9
296
Commnad: ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or [All/Center/
Dynamic/Previous/Scale/Window] < >: A
ZOOM (), :
ZOOM;A
,
. NSETUP
, .
[-NSETUP-]PLINE;0,0;W;0.01;;12,0;12;9;C;+
SNAP;0.25;GRID;0.5;LIMITS;+
0,0;12,9;ZOOM;A
4 ()
, UNITS ( sme4.mnu).
:
AutoCAD ,
. ,
<Esc> .
.
,
(*).
[ERASE,W:]*^C^CERASE W
* , ;
^C^C , ;
ERASE AutoCAD;
W Window ().
AutoCAD ,
. ,
ERASE () Window ()
, . <Enter>
, .
297
6
, AutoCAD, sm6.mnu. .
LINE
ERASE
TRIM
LIST
INSERT
DIST
, 6.
, <Ctrl>
<C>.
[-ERASE- ]
[
]
[
]
[LINE: ]*^C^CLINE
[ERASE: ]*^C^CERASE
[TRIM: ]*^C^CTRIM
[LIST: ]*^C^CLIST
[INSERT: ]*^C^CINSERT
[DIST
]*^C*CDIST
, .
, <Esc>.
<Esc> . . , Windows
<Ctrl+Alt+Del>.
, . ERASE () C (Crossing). - .
[ERASE,C:]*^C^CERASE C
MENUCTL,
. 1, AutoCAD $S=CMDNAME, CMDNAME , . , LINE
() , CMDNAME LINE .
, . , , , , ARC. ARC ()
. ,
- (, MYARC), AutoCAD .
MENUCTL 1.
MENUCTL 0, $S=CMDNAME .
298
MENUECHO
MENUECHO 0, , , , , . ,
CIRCLE () _circle Specify
center point for circle or [3P/2P/Ttr (tan tan radius)]: (_
[3T/2T/KKP ( )]:).
MENUECHO 1, AutoCAD Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:.
, MENUECHO 1, _circle
. ^P
. MENUECHO 2, 4 8,
, ^P
DIESEL.
, AutoCAD . , AutoCAD, (_).
[New
]^C^C_New
[Open
]^C^C_Open
[Line
]^C^C_Line
[Arc-SCA ]^C^C_Arc;\_C;|_A
, ,
. acad.mnu, ,
AutoCAD .
7
(. 1) , AutoCAD.
7:
***SCREEN
[ MENU-1 ]
[
]
[
]
[LINE
]^C^C_LINE
[
]
[CIR-C,R ]^C^C_CIRCLE
[CIR-C,D ]^C^C_CIRCLE;\D
[CIR-2P ]^C^C_CIRCLE;2P
[
]
[ERASE
]^C^C_ERASE
[MOVE
]^C^C_MOVE
299
ASCII,
(^). ,
, (SNAP),
, ,
.
[SNAP-TOG]^B
SNAP-TOG SNAP;
^ (^);
B , .
^C ;
^G ;
^H ;
^O ;
^T ;
^E //.
^B , <Ctrl+B> , .. . SNAP-TOG
, .
ACSII. :
^@ ASCII 0;
^[ ASCII 27;
^\ ASCII 28;
^] ASCII 29;
^^ ASCII 30;
^- ACSII 31.
,
AutoCAD:
***
**
[
;
""
,
,
,
, ENTER
,
300
\
_
+
=*
*
$M=
$S=CMDNAME
^B
^C
^D
^E
^G
^H
^O
^P
^Q
^T
^V
^Z
,
, AutoCAD
,
,
, DIESEL
,
(//)
- (MENUECHO)
8
, (
sm8.mnu).
ORTHO
SNAP
GRID
COORDINATE DIAL
TABLET
ISOPLANE
PRINTER
, ,
. ,
:
ORTHO <Ctrl+O>;
SNAP <Ctrl+B>;
GRID <Ctrl+G>;
COORDINATE DIAL <Ctrl+D>;
TABLET <Ctrl+T>;
ISOPLANE <Ctrl+E>;
CURRENT VIEWPORT <Ctrl+V>.
301
-
EDIT. , .
[-TOGGLE- ]
[
]
[
]
[
]
[ORTHO
]^O
[SNAP
]^B
[GRID
]^G
[CO-ORDS
]^D
[TABLET
]^T
[
]
[ISOPLANE ]^E
[CURRENT VIEWPORT]^V
/ ORTHO
/ SNAP
/ GRID
/ COORDINATE DIAL
/ TABLET
/ ISOPLANE
, , (;)
, ENTER. , ,
ENTER. ASCII, (^H). ,
. ^H
. ,
ENTER, :
[9]9X^H
9 ;
9 , ;
X ^H (
);
^H , .
^H ASCII, . , ^H ( )
9. ^H
( ).
. , <Enter>,
.
302
9
, (
sm9.mnu).
0
1
2
3
4
5
6
7
8
9
.
,
X
Y
Z
, 9.
, ENTER.
[-KEYPAD[
[
[
[0]0Y^H
[1]1Y^H
[2]2Y^H
[3]3Y^H
[4]4Y^H
[5]5Y^H
[6]6Y^H
[7]7Y^H
[8]8Y^H
[9]9Y^H
[.].Y^H
[,],Y^H
[]
[X]XX^H
[Y]YY^H
[Z]ZZ^H
]
]
]
]
0
1
2
3
4
5
6
7
8
9
(.)
(,)
X
Y
Z
,
. , [2]2\ 2,
, - . , ,
.
[-KEYPAD[
[
[
[0]0\
[1]1\
[2]2\
[3]3\
[4]4\
[5]5\
]
]
]
]
[6]6\
[7]7\
[8]8\
[9]9\
[.].\
[,],\
[]
[X]X\
[Y]Y
[Z]Z\
303
,
, Single ERASE,
.
[ERASE]*^C^CERASE Single
* ;
Single ERASE (),
.
, ,
, . ^C^C
. ERASE AutoCAD,
. Single , AutoCAD .
ERASE, .
, ( -
), AutoCAD Crossing ( ) Window ().
( , ). ,
Window (). ,
. , ,
.
AutoLISP
AutoLISP. ,
. AutoLISP . ( AutoLISP
12 13.)
10
AutoLISP, .
, AutoLISP.
AutoLISP, . .
304
(DEFUN C:SQR()
(SETVAR "CMDECHO" 0)
(SETQ P1 (GETPOINT "\n ENTER STARTING POINT: "))
(SETQ S (GETDIST "\n ENTER LENGTH OF SIDE: "))
(SETQ P2 (LIST (+ (CAR P1) (CADR P1)))
(SETQ P3 (POLAR P2 (/ PI 2) S))
(SETQ P4 (POLAR P1 (/ PI 2) S))
(COMMAND "PLINE" P1 P2 P3 P4 "C")
(SETVAR "CMDECHO" 1)
(PRINC)
)
, AutoLISP :
[-SQUARE-]
[
]
[
]
[SQUARE:](SETQ P1(GETPOINT "ENTER STARTING POINT:+"));\+
(SETQ S (GETDIST "ENTER LENGTH OF SIDE: "));+
(SETQ P2 (LIST (+ (CAR P1) (CADR P1)))+
(SETQ P3 (POLAR P2 (/ pi 2) S))+
(SETQ P4 (POLAR P1 (/ pi 2) S));+
PLINE !P1 !P2 !P3 !P4 C
AutoLISP ,
, , , , , . ,
AutoLISP
AutoCAD.
DIESEL
, ,
, DIESEL. MODEMACRO , .
DIESEL .
11
,
DIESEL, :
1
Dimtad
Dimtix
Dimscale
,
DIESEL. MENU,
. (DIESEL1) , (. 9.12).
305
***screen
[*DIESEL*]
[DIESEL1:]^C^MODEMACRO;$M=Cust-Acad,N:$(GETVAR,DWGNAME),+
L:$(GETVAR,CLAYER);
[DIESEL2:]^C^CMODEMACRO;$M=PLWID:$(GETVAR,PLINEWID),+
FRAD:$(GETVAR,FILLETRAD),OFFSET:$(GETVAR,OFFSETDIST),+
LTSCALE:$(GETVAR,LTSCALE);
[DIESEL3:]^C^CMODEMACRO;$M=DTAD:$(GETVAR,DIMTAD),+
DTIX:$(GETVAR,DIMTIX),DSCALE:$(GETVAR,DIMSCALE);
. 9.12. 11
[SCR-MODE]SCREENMODE $M=$(-,1,$(GETVAR,SCRENMODE))
AutoCAD $(-,1,$(GETVAR,
SCRENMODE)). GETVAR SCREENMODE,
1. SCREENMODE 1, DIESEL 0, 0,
1. , DIESEL, SCREENMODE.
306
,
, .. .
,
.
1. , , ,
________.
2. , ________.
3.
________.
4. _________.
5.
________.
6. ________, , .
7. ,
, ________ .
8. ______.
9. , ,
________.
.
1. AutoCAD ________
.
2. ________.
3. , ,
_________.
4. ________ .
5. ,
_________ .
6. , ____.
7. , , ________.
8. ________ ,
.
9. _________ .
10.
_________.
307
5 ()
, AutoCAD (
sme5.mnu).
POLYGON
POLYGON
ELLIPSE
ELLIPSE
CHAMFER
EXPLODE
COPY
(Center)
(Edge)
(Center)
(Axis End point)
6 ()
, AutoCAD. , .
sme6.mnu.
ARC
-3P
-SCE
-CSE
BLOCK
INSERT
WBLOCK
MINSERT
ROTATE
ARRAY
DIVIDE
MESURE
LAYER
SET
LIST
7 ()
,
, .
sme6.mnu.
0
OBJECT
HIDDEN
CENTER
DIM
WHITE
RED
YELLOW
BLUE
GREEN
CONTINUOS
CONTINUOS
HIDDEN
CENTER
CONTINUOS
8 ()
, . 9.13.
OSNAP ********, MENU-8. sme6.mnu.
308
. 9.13.
9 ()
, AutoCAD. LINE
.
.
LINE
Continue
Close
Undo
.X
.Y
.Z
CIRCLE
ELLIPSE
ZOOM All
ZOOM Win
ZOOM Pre
PAN
DBLIST
STATUS
TIME
LIST
DISTANCE
AREA
. 9.14 9.15.
10 ()
, ,
AutoCAD. -
. . 9.16.
LINE
PLINE
CIRCLE C,R
CIRCLE C,D
ELLIPSE AXIS ENDPOINT
ELLIPSE CENTER
BLOCK
WBLOCK
INSERT
BLOCK LIST
ATTDEF
ATTEDIT
. 9.14. 9
. 9.15. 9
. 9.16. 10
309
310
11 ()
, , , . 9.17. -
.
. 9.17. , 11
12 ()
, ,
. B1B15 .
BLOCK
WBLOCK
ATTDEF
LIST
INSERT
BL1
BL2
BL3
BL4
BL5
BL6
BL7
BL8
BL9
BL10
BL11
BL12
BL13
BL14
BL15
13 ()
,
AutoCAD. ARC CIRCLE . .
, . 9.18, . ARC CIRCLE ,
. . 9.19.
LINE
PLINE
ARC
ARC 3P
ARC SCE
ARC SCA
ARC CSE
ARC CSA
ARC CSL
CIRCLE
CIRCLE C,R
CIRCLE C,D
CIRCLE 2P
BLOCK
INSERT
WBLOCK
311
QUIT
SAVE
_____
PLOT
. 9.18. 13
. 9.19.
1 MACRO (), 2 (*), 3 MENUCTL, 4 CMDNAME, 5 MODEMACRO,
6 ^P, 7 (+), 8 , 9 ^H.
10
AutoCAD
, :
ACAD.MNU;
;
;
;
;
.
314
10
AutoCAD
AutoCAD , acad.mnu. .
AutoCAD (. 10.1). . , ***_
(***section_name). ,
***SCREEN. .
***SCREEN
***TABLET(n)
***IMAGE
***POP(n)
***BUTTONS(n)
***AUX(n)
***MENUGROUP
***TOOLBARS
***HELPSTRING
***ACCELERATORS
n 1 4
n 1 499
n = 0, n 500
999
n 1 4
n 1 4
-
-
. 10.1. , AutoCAD
AutoCAD
315
acad.mnu :
///
//
//
//
***MENUGROUP=ACAD
// AutoCAD
***BUTTONS1
// +
// , (POP 500)
// .
// SHORTCUTMENU 0,
// ( 1) .
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS $P0=*);
$P0=SNAP $p0=*
^C^C
^B
^O
^G
^D
^E
^T
***BUTTONS2
// <Shift> +
$P0=SNAP $p0=*
***BUTTONS3
// <Ctrl> +
***BUTTONS4
// <Ctrl> + <Shift> +
// -
***AUX1
// +
// , (POP 500)
// .
// SHORTCUTMENU 0,
// ( 1, " ") .
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS $P0=*);
$P0=SNAP $p0=*
^C^C
^B
^O
^G
^D
^E
^T
316
10
***AUX2
// <Shift> +
$P0=SNAP $p0=*
$P0=SNAP $p0=*
***AUX3
// <Ctrl> +
$P0=SNAP $p0=*
***AUX4
// <Ctrl> + <Shift> +
$P0=SNAP $p0=*
***POP0
**SNAP
// <Shift> + ,
// AUX2 / BUTTONS2. [&Object Snap Cursor Menu]
ID_Tracking [Temporary trac&k point]_tt
ID_From
[&From]_from
ID_MnPointFi [->Poin&t Filters]
ID_PointFilx [.X].X
ID_PointFily [.Y].Y
ID_PointFilz [.Z].Z
|
|
***POP1
**FILE
ID_MnFile
[&File]
ID_New
[&New...\tCtrl+N]^C^C_new
ID_Open
[&Open...\tCtrl+O]^C^C_open
ID_DWG_CLOSE [&Close]^C^C_close
ID_PartialOp
[$(if,$(eq,$(getvar,fullopen),0),,~)Partia&l Load]^C^C_partiaload
ID_Save
[&Save\tCtrl+S]^C^C_qsave
ID_Saveas
[Save &As...]^C^C_saveas
ID_ETransmit [e&Transmit...]^C^C_etransmit
ID_Publish [Publish to &Web...]^C^C_publishtoweb
ID_Export
[&Export...]^C^C_export
|
|
***POP2
**EDIT
ID_MnEdit
[&Edit]
ID_U
[&Undo\tCtrl+Z]_u
ID_Redo
[&Redo\tCtrl+Y]^C^C_redo
[--]
ID_Cutclip [Cu&t\tCtrl+X]^C^C_cutclip
ID_Copyclip [&Copy\tCtrl+C]^C^C_copyclip
ID_Copybase [Copy with &Base Point]^C^C_copybase
ID_Copylink [Copy &Link]^C^C_copylink
AutoCAD
|
|
***POP3
**VIEW
ID_MnView
[&View]
ID_Redrawall [&Redraw]'_redrawall
ID_Regen
[Re&gen]^C^C_regen
ID_Regenall [Regen &All]^C^C_regenall
ID_ZoomRealt [&Realtime]'_zoom ;
ID_ZoomPrevi [&Previous]'_zoom _p
ID_ZoomWindo [&Window]'_zoom _w
ID_ZoomDynam [&Dynamic]'_zoom _d
ID_ZoomScale [&Scale]'_zoom _s
ID_ZoomCente [&Center]'_zoom _c
|
|
***POP4
**INSERT
ID_MnInsert [&Insert]
ID_Ddinsert [&Block...]^C^C_insert
ID_Xattach [E&xternal Reference...]^C^C_xattach
ID_Imageatta [Raster &Image...]^C^C_imageattach
|
|
***POP5
**FORMAT
ID_MnFormat [F&ormat]
ID_Layer
[&Layer...]'_layer
ID_Ddcolor [&Color...]'_color
ID_Linetype [Li&netype...]'_linetype
ID_Linewt
[Line&weight...]'_lweight
|
|
***POP6
**TOOLS
ID_MnTools [&Tools]
ID_Today
[&Today]^C^C_Today
ID_PointA
[&Autodesk Point A]^C^C_^C^C_browser http://pointa.autodesk.com
ID_MeetNow [&Meet Now]^C^C_MeetNow
ID_MnCadStd [->CAD &Standards]
ID_Standards [&Configure...]^C^C_standards
|
|
***POP7
**DRAW
ID_MnDraw
[&Draw]
ID_Line
[&Line]^C^C_line
ID_Ray
[&Ray]^C^C_ray
ID_Xline
[Cons&truction Line]^C^C_xline
ID_Mline
[&Multiline]^C^C_mline
317
318
10
ID_Pline
[&Polyline]^C^C_pline
ID_Polygon [Pol&ygon]^C^C_polygon
ID_Rectang [Rectan&gle]^C^C_rectang
|
|
***POP8
**DIMENSION
ID_MnDimensi [Dime&nsion]
ID_QDim
[&Quick Dimension]^C^C_qdim
[--]
ID_Dimlinear [&Linear]^C^C_dimlinear
ID_Dimaligne [Ali&gned]^C^C_dimaligned
ID_Dimordina [&Ordinate]^C^C_dimordinate
[--]
ID_Dimradius [&Radius]^C^C_dimradius
ID_Dimdiamet [&Diameter]^C^C_dimdiameter
ID_Dimangula [&Angular]^C^C_dimangular
|
|
***POP9
**MODIFY
ID_MnModify [&Modify]
ID_Ai_propch [&Properties]^C^C_properties
ID_Matchprop [&Match Properties]'_matchprop
ID_MnObject [->&Object]
ID_MnExterna [->&External Reference]
ID_Xbind
[&Bind...]^C^C_xbind
ID_Xclipfram [<-$(if,$(eq,$(getvar,xclipframe),1),!.)&Frame]$M=$
(if,$(eq,$(getvar,xclipframe),1),^C^C_xclipframe 0,^C^C_xclipframe 1)
ID_MnImage [->&Image]
ID_Imageadju [&Adjust...]^C^C_imageadjust
ID_Imagequal [&Quality]^C^C_imagequality
ID_Transpare [&Transparency]^C^C_transparency
|
|
***POP10
**WINDOW
ID_MnWindow [&Window]
ID_DWG_CLOSE
[Cl&ose]^C^C_close
ID_WINDOW_CLOSEALL [C&lose All]^C^C_closeall
ID_WINDOW_CASCADE
[&Cascade]^C^C_syswindows;_cascade
ID_WINDOW_TILE_HORZ [Tile &Horizontally]^C^C_syswindows;_hor
|
|
***POP11
**HELP
ID_MnHelp
[&Help]
ID_Help
[&Help\tF1]'_help
ID_ASSIST
[&Active Assistance]'_ASSIST
ID_DevHelp [&Developer Help]^C^C^P(help "acad_dev" "") ^P
ID_Support [&Support Assistance]^C^C^P(help "acad" "asa") ^P
AutoCAD
319
320
10
ID_DimHome
[&Home text]^C^C_ai_dim_texthome
ID_DimTxtMove2 [&Move text alone]^C^C_aidimtextmove _2
|
|
***POP505
**OBJECT_VIEWPORT [ ]
ID_VpClip
[&Viewport Clip]^C^C_vpclip
ID_Vport_disp
[->&Display Viewport Objects]
ID_Vport_dispon [&Yes]^C^C_-vports _on _p;;
ID_Vport_dispoff [<-&No]^C^C_-vports _off _p;;
ID_Vport_lock
[->Display &Locked]
|
|
***POP506
**OBJECTS_XREF [ XREF]
ID_Xclip
[Xref Cl&ip]^C^C_xclip
ID_XRef
[Xref Ma&nager...]^C^C_xref
***POP507
**OBJECT_MTEXT [ MTEXT]
ID_Mtedit
[Mtext Ed&it...]^C^C_mtedit
***POP508
**OBJECT_TEXT [ TEXT]
ID_Ddedit
[Text Ed&it...]^C^C_ddedit
***POP509
**OBJECT_HATCH [ HATCH]
ID_Hatchedit [&Hatch Edit...]^C^C_hatchedit
***POP510
**OBJECT_LWPOLYLINE [ PLINE]
ID_Pedit [Polyline Ed&it]^C^C_pedit
***POP511
**OBJECT_SPLINE [ SPLINE]
ID_Splinedit [Spline Ed&it]^C^C_splinedit
|
|
***TOOLBARS
**TB_DIMENSION
ID_TbDimensi [_Toolbar("Dimension", _Floating, _Hide, 100, 130, 1)]
ID_Dimlinear [_Button("Linear Dimension", RCDATA_16_DIMLIN,
RCDATA_16_DIMLIN)]^C^C_dimlinear
ID_Dimaligne [_Button("Aligned Dimension", RCDATA_16_DIMALI,
RCDATA_16_DIMALI)]^C^C_dimaligned
ID_Dimordina [_Button("Ordinate Dimension", RCDATA_16_DIMORD,
RCDATA_16_DIMORD)]^C^C_dimordinate
[--]
ID_Dimradius [_Button("Radius Dimension", RCDATA_16_DIMRAD,
RCDATA_16_DIMRAD)]^C^C_dimradius
AutoCAD
ID_Dimdiamet [_Button("Diameter Dimension", RCDATA_16_DIMDIA,
RCDATA_16_DIMDIA)]^C^C_dimdiameter
ID_Dimangula [_Button("Angular Dimension", RCDATA_16_DIMANG,
RCDATA_16_DIMANG)]^C^C_dimangular
[--]
|
|
**TB_DRAW
ID_TbDraw
[_Toolbar("Draw", _Left, _Show, 0, 0, 1)]
ID_Line
[_Button("Line", RCDATA_16_LINE, RCDATA_16_LINE)]^C^C_line
ID_Xline
[_Button("Construction Line", RCDATA_16_XLINE,
RCDATA_16_XLINE)]^C^C_xline
ID_Pline
[_Button("Polyline", RCDATA_16_PLINE,
RCDATA_16_PLINE)]^C^C_pline
|
|
**TB_INQUIRY
ID_TbInquiry [_Toolbar("Inquiry", _Floating, _Hide, 100, 170, 1)]
ID_Dist [_Button("Distance", RCDATA_16_DIST, RCDATA_16_DIST)]'_dist
ID_Area [_Button("Area", RCDATA_16_AREA, RCDATA_16_AREA)]^C^C_area
ID_Massprop [_Button("Region/Mass Properties", RCDATA_16_MASSPR,
RCDATA_16_MASSPR)]^C^C_massprop
[--]
ID_List [_Button("List", RCDATA_16_LIST, RCDATA_16_LIST)]^C^C_list
ID_Id
[_Button("Locate Point", RCDATA_16_ID, RCDATA_16_ID)]'_id
**TB_INSERT
ID_TbInsert [_Toolbar("Insert", _Floating, _Hide, 100, 190, 1)]
ID_Ddinsert [_Button("Insert Block", RCDATA_16_DINSER,
RCDATA_16_DINSER)]^C^C_insert
[--]
ID_Xref
[_Button("External Reference", RCDATA_16_XREATT,
RCDATA_16_XREATT)]^C^C_xref
|
|
**TB_LAYOUTS
ID_TbLayouts [_Toolbar("Layouts", _Floating, _Hide, 100, 350, 1)]
ID_LayNew
[_Button("New Layout", RCDATA_16_LAYNEW,
RCDATA_16_LAYNEW)]^C^C_layout _n
ID_LayTemp [_Button("Layout from Template", RCDATA_16_LAYTEM,
RCDATA_16_LAYTEM)]^C^C_layout _t
ID_PlotSetup [_Button("Page Setup", RCDATA_16_PLTSET,
RCDATA_16_PLTSET)]^C^C_pagesetup
ID_VpDialog [_Button("Display Viewports Dialog", RCDATA_16_VPDLG,
RCDATA_16_VPDLG)]^C^C_vports
**TB_MODIFY
ID_TbModify [_Toolbar("Modify", _Left, _Show, 1, 0, 1)]
ID_Erase
[_Button("Erase", RCDATA_16_ERASE, RCDATA_16_ERASE)]^C^C_erase
ID_Copy
[_Button("Copy Object", RCDATA_16_COPYOB,
321
322
10
RCDATA_16_COPYOB)]$M=$(if,$(eq,+$(substr,$(getvar,cmdnames),1,4),grip),
_copy, ^C^C_copy)
ID_Mirror
[_Button("Mirror", RCDATA_16_MIRROR, RCDATA_16_MIRROR)]
_$M=$(if,$(eq,+$(substr,$(getvar,cmdnames),1,4),grip),
_mirror,^C^C_mirror)
|
|
**TB_MODIFY_II
ID_TbModifII [_Toolbar("Modify II", _Floating, _Hide, 100, 270, 1)]
ID_Draworder [_Button("Draworder",RCDATA_16_DRWORD,
RCDATA_16_DRWORD)]^C^C_draworder
[--]
ID_Hatchedit [_Button("Edit Hatch", RCDATA_16_HATEDI,
RCDATA_16_HATEDI)]^C^C_hatchedit
|
|
**TB_OBJECT_PROPERTIES
ID_TbObjectP [_Toolbar("Object Properties", _Top, _Show, 0, 1, 1)]
ID_CtrlColor [_Control(_Color)]
[--]
ID_CtrlLinet [_Control(_Linetype)]
[--]
ID_CtrlLineW [_Control(_Lineweight)]
[--]
ID_CtrlPStyl [_Control(_PlotStyle)]
**TB_LAYER
ID_TbLayer [_Toolbar("Layers", _Top, _Show, 1, 1, 1)]
ID_Layer
[_Button("Layer Properties Manager", RCDATA_16_LAYERS,
RCDATA_16_LAYERS)]'_layer
ID_CtrlLayer [_Control(_Layer)]
ID_Ai_molc [_Button("Make Object's Layer Current", RCDATA_16_MOLC,
RCDATA_16_MOLC)]^C^C_ai_molc
ID_LayerP
[_Button("Layer Previous", RCDATA_16_LAYERP,
RCDATA_16_LAYERP)]^C^C_LayerP
|
|
**TB_STYLES
ID_TbStyles [_Toolbar("Styles", _Top, _Show, 1, 0,1)]
ID_Style
[_Button("Text Style Manager", RCDATA_16_TXTSTYLE,
RCDATA_16_TXTSTYLE)]'_style
ID_TxtStyle [_Control(_txtstyle)]
[--]
ID_Ddim
[_Button("Dimension Style Manager", RCDATA_16_DIMSTY,
RCDATA_16_DIMSTY)]'_dimstyle
ID_DimStyle [_Control(_dimstyle)]
|
|
**TB_OBJECT_SNAP
ID_TbOsnap [_Toolbar("Object Snap", _Floating, _Hide, 100, 210, 1)]
ID_Tracking [_Button("Temporary Tracking Point", RCDATA_16_OSNTMP,
AutoCAD
RCDATA_16_OSNTMP)]_tt
ID_From [_Button("Snap From", RCDATA_16_OSNFRO,
RCDATA_16_OSNFRO)]_from
[--]
ID_OsnapEndp [_Button("Snap to Endpoint", RCDATA_16_OSNEND,
RCDATA_16_OSNEND)]_endp
|
|
**TB_ORBIT
ID_TbOrbit [_Toolbar("3D Orbit", _Floating, _Hide, 100, 350, 1)]
ID_3dpan [_Button("3D Pan", RCDATA_16_3DPAN,
RCDATA_16_3DPAN)]'_3dpan
ID_3dzoom
[_Button("3D Zoom", RCDATA_16_3DZOOM,
RCDATA_16_3DZOOM)]'_3dzoom
ID_3dorbit [_Button("3D Orbit", RCDATA_16_3DORBIT,
RCDATA_16_3DORBIT)]'_3dorbit
|
|
**TB_SHADING
ID_TbShading [_Toolbar("Shade", _Floating, _Hide, 100, 390, 1)]
ID_2doptim [_Button("2D Wireframe", RCDATA_16_2DOPTIM,
|
|
**TB_REFEDIT
ID_TbRefedit [_Toolbar("Refedit", _Floating, _Hide, 100, 170, 1)]
ID_RefEditor [_Button("Edit block or Xref", RCDATA_16_REFED_EDIT,
RCDATA_16_REFED_EDIT)]^C^C_refedit;
|
|
**TB_REFERENCE
ID_TbReferen [_Toolbar("Reference", _Floating, _Hide, 100, 370, 1)]
ID_Xref
[_Button("External Reference", RCDATA_16_XREATT,
RCDATA_16_XREATT)]^C^C_xref
ID_Xattach [_Button("External Reference Attach", RCDATA_16_XATTAC,
RCDATA_16_XATTAC)]^C^C_xattach
ID_Xclip
[_Button("External Reference Clip",
RCDATA_16_XRECLI,RCDATA_16_XRECLI)]^C^C_xclip
|
|
**TB_RENDER
ID_TbRender [_Toolbar("Render", _Floating, _Hide, 100, 230, 1)]
ID_Hide [_Button("Hide", RCDATA_16_HIDE, RCDATA_16_HIDE)]^C^C_hide
[--]
ID_Render
[_Button("Render", RCDATA_16_RENDER,
RCDATA_16_RENDER)]^C^C_render
|
|
**TB_SOLIDS
ID_TbSolids [_Toolbar("Solids", _Floating, _Hide, 100, 250, 1)]
ID_Box
[_Button("Box", RCDATA_16_BOX, RCDATA_16_BOX)]^C^C_box
323
324
10
ID_Sphere
[_Button("Sphere", RCDATA_16_SPHERE,
RCDATA_16_SPHERE)]^C^C_sphere
ID_Cylinder [_Button("Cylinder", RCDATA_16_CYLIND,
RCDATA_16_CYLIND)]^C^C_cylinder
|
|
**TB_SOLIDS2
ID_TbSolids2 [_Toolbar("Solids Editing", _Floating, _Hide, 100, 250, 1)]
ID_Union
[_Button("Union", RCDATA_16_UNION, RCDATA_16_UNION)]^C^C_union
ID_Subtract [_Button("Subtract", RCDATA_16_SUBTRA,
RCDATA_16_SUBTRA)]^C^C_subtract
ID_Intersect [_Button("Intersect", RCDATA_16_INTERS,
RCDATA_16_INTERS)]^C^C_intersect
|
|
**TB_STANDARD
ID_TbStandar [_Toolbar("Standard Toolbar", _Top, _Show, 0, 0, 1)]
ID_QNew [_Button("New", RCDATA_16_NEW, RCDATA_16_NEW)]^C^C_new
ID_Open [_Button("Open", RCDATA_16_OPEN, RCDATA_16_OPEN)]^C^C_open
ID_Save [_Button("Save", RCDATA_16_SAVE, RCDATA_16_SAVE)]^C^C_qsave
|
|
**TB_SURFACES
ID_TbSurface [_Toolbar("Surfaces", _Floating, _Hide, 100, 290, 1)]
ID_Solid
[_Button("2D Solid", RCDATA_16_SOLID, RCDATA_16_SOLID)]^C^C_solid
ID_3dface [_Button("3D Face", RCDATA_16_3DFACE,
RCDATA_16_3DFACE)]^C^C_3dface
|
|
**TB_TEXT
ID_TbText [_Toolbar("Text", _Floating, _Hide, 100, 320, 1)]
ID_Mtext [_Button("Multiline Text", RCDATA_16_MTEXT,
RCDATA_16_MTEXT)]^C^C_mtext
ID_Dtext [_Button("Single Line Text", RCDATA_16_SINGLE_DTEXT,
RCDATA_16_SINGLE_DTEXT]^C^C_dtext
ID_Ddedit [_Button("Edit Text", RCDATA_16_TEXEDI,
RCDATA_16_TEXEDI)]^C^C_ddedit
|
|
**TB_UCS
ID_TbUcs [_Toolbar("UCS", _Floating, _Hide, 100, 310, 1)]
ID_Ucs
[_Button("UCS", RCDATA_16_UCS, RCDATA_16_UCS)]^C^C_ucs
ID_Dducs [_Button("Display UCS Dialog", RCDATA_16_DDUCS,
RCDATA_16_DDUCS)]^C^C_+ucsman 0
|
|
**TB_UCSII
ID_TbUcsName [_Toolbar("UCS II", _Floating, _Hide, 100, 300, 1)]
AutoCAD
ID_Dducs [_Button("Display UCS Dialog",RCDATA_16_DDUCS,
RCDATA_16_DDUCS)]^C^C_+ucsman 0
ID_UcsMove [_Button("Move UCS Origin", RCDATA_16_UCSMOVE,
RCDATA_16_UCSMOVE)]^C^C_ucs _move
[--]
ID_UcsCombo [_Control(_UCSManager)]
**TB_VIEWPOINT
ID_TbViewpoi [_Toolbar("View", _Floating, _Hide, 100, 330, 1)]
ID_Ddview [_Button("Named Views", RCDATA_16_DDVIEW,
RCDATA_16_DDVIEW)]^C^C_view
[--]
ID_VpointTop [_Button("Top View", RCDATA_16_VIETOP,
RCDATA_16_VIETOP)]^C^C_-view _top
ID_VpointBot [_Button("Bottom View", RCDATA_16_VIEBOT,
RCDATA_16_VIEBOT)]^C^C_-view _bottom
|
|
**TB_VIEWPORTS
ID_TbVpCreat [_Toolbar("Viewports", _Floating, _Hide, 100, 350, 1)]
ID_VpDialog [_Button("Display Viewports Dialog", RCDATA_16_VPDLG,
RCDATA_16_VPDLG)]^C^C_vports
ID_VpSingle [_Button("Single Viewport", RCDATA_16_VPONE,
RCDATA_16_VPONE)]$M=$(if,$(eq,$(getvar,tilemode),1),
^C^C_-vports _si,^C^C_-vports)
|
|
**TB_WEB
ID_TbWeb
[_Toolbar("Web", _Floating, _Hide, 100, 380, 1)]
ID_HlnkBack [_Button("Go Back", RCDATA_16_HLNK_BACK,
RCDATA_16_HLNK_BACK)]'_hyperlinkBack
ID_HlnkFwd [_Button("Go Forward", RCDATA_16_HLNK_FWD,
RCDATA_16_HLNK_FWD)]'_hyperlinkFwd
ID_HlnkStop [_Button("Stop Navigation", RCDATA_16_HLNK_STOP,
RCDATA_16_HLNK_STOP)]'_hyperlinkStop
ID_Browser [_Button("Browse the Web", RCDATA_16_WEB,
RCDATA_16_WEB)]^C^C_browser ;
**TB_ZOOM
ID_TbZoom
[_Toolbar("Zoom", _Floating, _Hide, 100, 350, 1)]
ID_ZoomWindo [_Button("Zoom Window", RCDATA_16_ZOOWIN,
RCDATA_16_ZOOWIN)]'_zoom _w
ID_ZoomDynam [_Button("Zoom Dynamic", RCDATA_16_ZOODYN,
RCDATA_16_ZOODYN)]'_zoom _d
ID_ZoomScale [_Button("Zoom Scale", RCDATA_16_ZOOSCA,
RCDATA_16_ZOOSCA)]'_zoom _s
|
|
***image
**image_3DObjects
[3D Objects]
325
326
10
[acad(Box3d,Box3d)]^C^C_ai_box
[acad(Pyramid,Pyramid)]^C^C_ai_pyramid
[acad(Wedge,Wedge)]^C^C_ai_wedge
|
|
**image_poly
[Set Spline Fit Variables]
[acad(pm-quad,Quadric Fit Mesh)]'_surftype 5
[acad(pm-cubic,Cubic Fit Mesh)]'_surftype 6
[acad(pm-bezr,Bezier Fit Mesh)]'_surftype 8
[acad(pl-quad,Quadric Fit Pline)]'_splinetype 5
[acad(pl-cubic,Cubic Fit Pline)]'_splinetype 6
**image_vporti
[Tiled Viewport Layout]
[acad(vport-1,Single)]^C^C(ai_tiledvp 1 nil)
[acad(vport-3v,Three: Vertical)]^C^C(ai_tiledvp 3 "_V")
[acad(vport-3h,Three: Horizontal)]^C^C(ai_tiledvp 3 "_H")
[acad(vport-4,Four: Equal)]^C^C(ai_tiledvp 4 nil)
|
|
***SCREEN
**S
[AutoCAD ]^C^C^P(ai_rootmenus) ^P
[* * * * ]$S=ACAD.OSNAP
[FILE
]$S=ACAD.01_FILE
[EDIT
]$S=ACAD.02_EDIT
[VIEW 1 ]$S=ACAD.03_VIEW1
[VIEW 2 ]$S=ACAD.04_VIEW2
[INSERT ]$S=ACAD.05_INSERT
[FORMAT ]$S=ACAD.06_FORMAT
[TOOLS 1 ]$S=ACAD.07_TOOLS1
[TOOLS 2 ]$S=ACAD.08_TOOLS2
[DRAW 1 ]$S=ACAD.09_DRAW1
[DRAW 2 ]$S=ACAD.10_DRAW2
[DIMNSION]$S=ACAD.11_DIMENSION
[MODIFY1 ]$S=ACAD.12_MODIFY1
[MODIFY2 ]$S=ACAD.13_MODIFY2
|
|
// SNAP_TO ,
//
// .
// , .
**SNAP_TO 28
[Endpoint]_endp
[Midpoint]_mid
[Intersec]_int
[App Int ]_appint
AutoCAD
|
|
**ASSIST 3
[Last
]_l
[Previous]_p
[All
]_all
[Cpolygon]_cp
[Wpolygon]_wp
|
|
**01_FILE 3
[New
]^C^C_new
[Open
]^C^C_open
[Qsave ]^C^C_qsave
[Saveas ]^C^C_saveas
|
|
**02_EDIT 3
[Undo
]^C^C_u
[Redo
]^C^C_redo
[Cut
]^C^C_cutclip
[Copy
]^C^C_copyclip
[CopyBase]^C^C_copybase
[CopyLink ]^C^C_copylink
[Paste
]^C^C_pasteclip
[PasteBlk]^C^C_pasteblock
[PasteOri]^C^C_pasteorig
[PasteSpe ]^C^C_pastespec
[OLElinks]^C^C_olelinks
|
|
**03_VIEW1 3
[Redraw ]'_redraw
[Redrawal]'_redrawall
[Regen ]^C^C_regen
[Regenall]^C^C_regenall
[Zoom
]'_zoom
[Pan
]'_pan
[Dsviewer]'_dsviewer
[Tilemode]^C^C_tilemode
[Mspace ]^C^C_mspace
[Pspace ]^C^C_pspace
|
|
**04_VIEW2 3
[Hide
]^C^C_hide
[Shade ]^C^C_shademode
[Render ]^C^C_render
[Scene ]^C^C_scene
[Light ]^C^C_light
327
328
10
[Mapping ]^C^C_setuv
[Backgrnd]^C^C_background
[Fog
]^C^C_fog
|
|
**05_INSERT 3
[Ddinsert]^C^C_insert
[Xref
]^C^C_xref
[Image ]^C^C_image
|
|
**06_FORMAT 3
[Layer ]'_layer
[Color ]'_color
[Linetype]'_linetype
[Style ]'_style
[Ddim
]'_dimstyle
[Ddptype ]'_ddptype
[Mlstyle ]^C^C_mlstyle
[Units ]'_units
[Thicknes]'_thickness
[Limits ]'_limits
[Rename ]^C^C_rename
|
|
**ENDSCREEN
|
|
***TABLET1
**TABLET1STD
[A-1]\
[A-2]\
[A-3]\
[A-4]\
[A-5]\
[A-6]\
[A-7]\
[A-8]\
[A-9]\
[A-10]\
|
|
***TABLET2
**TABLET2STD
^C^C_regen
'_zoom _e
'_zoom _a
'_zoom _w
AutoCAD
329
'_zoom _p
[Draw]\
|
|
***TABLET3
**TABLET3STD
|
|
|
<<135
<<135
<<90
<<90
<<45
<<45
|
|
***TABLET4
**TABLET4STD
|
|
***HELPSTRINGS
ID_2doptim
[
: SHADEMODE 2]
ID_3darray
[ : 3DARRAY]
ID_3dclip
[ 3DORBIT Adjust Clipping Planes
( ): 3DCLIP]
ID_3dclipbk [
: DVIEW]
ID_3dclipfr [
: DVIEW]
ID_3dcorbit [ 3DORBIT :
3DCORBIT]
ID_3ddistanc [ 3DORBIT ,
: 3DDISTANCE]
ID_3dface
[ : 3DFACE]
|
|
***ACCELERATORS
// Insert Hyperlink ( )
ID_Hyperlink [TOOLBAR+CONTROL+"K"]
//
[CONTROL+"L"]^O
//
[CONTROL+"R"]^V
ID_SelAll
[CONTROL+"A"]
ID_Copyclip [TOOLBAR+CONTROL+"C"]
ID_New
[TOOLBAR+CONTROL+"N"]
ID_Open
[TOOLBAR+CONTROL+"O"]
ID_Print
[TOOLBAR+CONTROL+"P"]
330
10
ID_Save
[TOOLBAR+CONTROL+"S"]
ID_Pasteclip [TOOLBAR+CONTROL+"V"]
ID_Cutclip [TOOLBAR+CONTROL+"X"]
ID_Redo
[CONTROL+"Y"]
ID_U
[CONTROL+"Z"]
ID_Modify
[CONTROL+"1"]
ID_Content [TOOLBAR+CONTROL+"2"]
ID_dbConnect [CONTROL+"6"]
ID_VBARun
[ALT+"F8"]
ID_VBAIDE
[ALT+"F11"]
, , ,
, , . ,
, SCREENBOXES. , ,
, 21. 21 , , ,
. , 1 255. ,
TABLET1, 255, , , .
, ,
,
. AutoCAD
. .
(**),
. ,
. ,
. :
**
** (**), ;
.
31 .
, ,
($), (-) (_).
.
.
AutoCAD
331
.
, , ($), . ,
S , B , I . Pn,
n . ,
Tn, n
. (=),
, .
(**). :
$=
$ ;
() ;
= ;
.
$S=BLOCK
S ;
BLOCK .
, , :
$S=(1) $S=(2)
1 2 .
$S=X $S=INSERT
S , ;
X , ;
INSERT , .
($S=X) X, , , .
21 ,
. ($S=INSERT)
INSERT, .
332
10
, :
$P(n)=() $P(n)=*
n 1 10 (POP1POP10);
,
.
$P1=P1A $P1=*
$P1=P1A , P1A;
$P1=* , .
($P1=P1A) P1A,
1. ($P1=*),
AutoCAD, .
:
$I=() $I=*
, .
$I=IMAGE1 $I=*
$I=IMAGE1 , IMAGE1;
$I=* , .
. ($I=IMAGE1) IMAGE1,
. ($I=*)
.
1
: TABLET1, TABLET2, TABLET3
TABLET4 (. 10.2). 1 25 ,
( 1 25), 9 , A I. , 1, 255 (259=255).
AutoCAD,
.
AutoCAD
333
. 10.2. AutoCAD
. 10.3 1 AutoCAD.
, - , , ,
.
. . 10.3 , 25 9 .
, , .
- ,
. acad.mnu,
.
1
, . 10.4, TABLET1 custom.mnu.
B10B25 . 1.0 , 0.
- ,
, . , WBlock B10 ,
10 22. , WBlock B17 25. WBlock
1 :
334
10
B10
B11
B12
B13
B14
B15
B16
B17
B18
B19
B20
B21
B22
B23
B24
B25
B
B
B
B
C
C
C
C
D
D
D
D
E
E
E
E
22
23
24
25
22
23
24
25
22
23
24
25
22
23
24
25
B-22
B-23
B-24
B-25
C-22
C-23
C-24
C-25
D-22
D-23
D-24
D-25
E-22
E-23
E-24
E-25
. 10.3. 1, 25 9
AutoCAD
335
. 10.4. , 1
. custom.mnu, ,
***TABLET. , ,
. , [A-1] , 1 , .
[A-1]
A ;
1 .
WBlock 10
B-22. B-22 INSERT ()
. TABLET1
:
***TABLET1
**TABLET1STD
[A-1]
[A-2]
[A-3]
[A-4]
[A-5]
[A-6]
[A-7]
[A-8]
[A-9]
[A-10]
336
10
[A-11]
[A-12]
[A-13]
[A-14]
[A-15]
[A-16]
[A-17]
[A-18]
[A-19]
[A-20]
[A-21]
[A-22]
[A-23]
[A-24]
[A-25]
[B-1]
[B-2]
[B-3]
[B-4]
[B-5]
[B-6]
[B-7]
[B-8]
[B-9]
[B-10]
|
|
[B-22]^C^CINSERT;B10;\1.0;1.0;0
[B-23]^C^CINSERT;B11;\1.0;1.0;0
[B-24]^C^CINSERT;B12;\1.0;1.0;0
[B-25]^C^CINSERT;B13;\1.0;1.0;0
[C-1]
|
|
[C-21]
[C-22]^C^CINSERT;B14;\1.0;1.0;0
[C-23]^C^CINSERT;B15;\1.0;1.0;0
[C-24]^C^CINSERT;B16;\1.0;1.0;0
[C-25]^C^CINSERT;B17;\1.0;1.0;0
[D-1]
|
|
[D-20]
[D-21]
[D-22]^C^CINSERT;B18;\1.0;1.0;0
[D-23]^C^CINSERT;B19;\1.0;1.0;0
[D-24]^C^CINSERT;B20;\1.0;1.0;0
[D-25]^C^CINSERT;B21;\1.0;1.0;0
|
|
[E-21]
[E-22]^C^CINSERT;B22;\1.0;1.0;0
[E-23]^C^CINSERT;B23;\1.0;1.0;0
[E-24]^C^CINSERT;B24;\1.0;1.0;0
[E-25]^C^CINSERT;B25;\1.0;1.0;0
AutoCAD
337
custom.mnu, MENU :
Command: MENU
Enter menu file name or [.(for none)] < >: CUSTOM
,
. X Y, .
^C^CINSERT;B22;\1.0;1.0;0
B22 Wblock;
\ , ;
1.0 X;
; , ENTER;
1.0 Y;
; , ENTER;
0 .
, TABLET1STD , . , , AutoCAD, 225.
32 766 . ,
TABLET1STD, 225, , , .
, , , . , AutoCAD
,
. :
$=
$ ;
() ;
= ;
.
$T1=TAB1
$T1 TABLET1;
TAB1 .
338
10
2
custom.mnu, , . 10.5.
, . , AutoCAD
.
, ,
1. ,
, , . custom.mnu,
TABLET1, : TABA TABB. custom.mnu
TABA, . Load TABB
TABB, , .
TABA, Load TABA.
. 10.5. , 1
TABLET1.
***TABLET1
**TABLET1STD
**TABA
[A-1]
[A-2]
[A-3]
[A-4]
AutoCAD
[A-5]
[A-6]
[A-7]
|
|
[B-18]
[B-19]
[B-20]
[B-21]
[B-22]^C^C$S=X $S=INSBLK
[B-23]^C^C$S=X $S=INSBLK
[B-24]^C^C$S=X $S=INSBLK
[B-25]^C^C$S=X $S=INSBLK
[C-1]
|
|
[C-21]
[C-22]^C^C$S=X $S=INSBLK
[C-23]^C^C$S=X $S=INSBLK
[C-24]^C^C$S=X $S=INSBLK
[C-25]^C^C$S=X $S=INSBLK
[D-1]
|
|
[D-20]
[D-21]
[D-22]^C^C$S=X $S=INSBLK
[D-23]^C^C$S=X $S=INSBLK
[D-24]^C^C$S=X $S=INSBLK
[D-25]^C^C$S=X $S=INSBLK
[E-1]
|
|
[E-21]
[E-22]^C^C$S=X $S=INSBLK
[E-23]^C^C$S=X $S=INSBLK
[E-24]^C^C$S=X $S=INSBLK
[E-25]^C^C$S=X $S=INSBLK
[F-1]
|
|
[H-19]
[H-20]
[H-21]
[H-22]^C^C$T1=TABA
[H-23]^C^C$T1=TABA
[H-24]^C^C$T1=TABA
[H-25]^C^C$T1=TABA
**TABB
[A-1]
[A-2]
INSERT;B10;\1.0;1.0;0
INSERT;B11;\1.0;1.0;0
INSERT;B12;\1.0;1.0;0
INSERT;B13;\1.0;1.0;0
INSERT;B14;\1.0;1.0;0
INSERT;B15;\1.0;1.0;0
INSERT;B16;\1.0;1.0;0
INSERT;B17;\1.0;1.0;0
INSERT;B18;\1.0;1.0;0
INSERT;B19;\1.0;1.0;0
INSERT;B20;\1.0;1.0;0
INSERT;B21;\1.0;1.0;0
INSERT;B22;\1.0;1.0;0
INSERT;B23;\1.0;1.0;0
INSERT;B24;\1.0;1.0;0
INSERT;B25;\1.0;1.0;0
339
340
10
[A-3]
[A-4]
[A-5]
[A-6]
[A-7]
[A-8]
|
|
[B-18]
[B-19]
[B-20]
[B-21]
[B-22]^C^CLAYER;SET;OBJECT;;
[B-23]^C^CLAYER;SET;OBJECT;;
[B-24]^C^CLAYER;SET;OBJECT;;
[B-25]^C^CLAYER;SET;OBJECT;;
[C-1]
|
|
[C-21]
[C-22]^C^CLAYER;SET;CENTER;;
[C-23]^C^CLAYER;SET;CENTER;;
[C-24]^C^CLAYER;SET;CENTER;;
[C-25]^C^CLAYER;SET;CENTER;;
[D-1]
|
|
[D-20]
[D-21]
[D-22]^C^CLAYER;SET;HIDDEN;;
[D-23]^C^CLAYER;SET;HIDDEN;;
[D-24]^C^CLAYER;SET;HIDDEN;;
[D-25]^C^CLAYER;SET;HIDDEN;;
[E-1]
|
|
[E-21]
[E-22]^C^CLAYER;SET;DIM;;
[E-23]^C^CLAYER;SET;DIM;;
[E-24]^C^CLAYER;SET;DIM;;
[E-25]^C^CLAYER;SET;DIM;;
[F-1]
|
|
[H-19]
[H-20]
[H-21]
[H-22]^C^C$T1=TABB
[H-23]^C^C$T1=TABB
[H-24]^C^C$T1=TABB
[H-25]^C^C$T1=TABB
AutoCAD
341
TABB 1 .
, H-22, H-23, H-24 H-25, TABA TABB .
^C^C$T1=TABA
^C^C , ;
$T1=TABA , TABA.
2
2 11 9 . . 10.6, 1 11, J R.
, 2, 99 (119=99). ,
, . ,
, TABLET2 . ,
, .
, TABLET2 ,
. ,
. ,
.
1 ()
2, . 10.6.
LINE
PLINE
ARC,CSE
ARC, SCE
ARC,CSA
CIRCLE-C,R
CIRCLE-C,D
CIRCLE-2P
3
3 9 13 . . 10.7 1 9, 1 13. 117
(139=117). , ,
. , ,
.
, . ,
TABLET3 , . , . custom.mnu,
TABLET3, .
342
10
. 10.6. , 2
3
TABLET3 custom.mnu.
3 . 10.7.
30
120
210
330
custom.mnu TABLET3,
- . , ,
.
custom.mnu
TABLET3.
***TABLET3
;
<<30
<<30
<<135
<<135
<<90
. 10.7. ,
3
AutoCAD
<<90
<<45
<<45
;
<<120
<<120
<<180
<<180
<\
<\
<<0
<<0
;
<<210
<<210
<<225
<<225
<<270
<<270
<<315
<<315
;
<<330
<<330
^H
^H
^H
^H
^H
^H
;
;
;
m\
m\
cm\
cm\
mm\
mm\
;
;
;
.\
+\
+\
%%d\
%%d\
;
;
;
,\
,\
%%p\
%%p\
%%c\
%%c\
343
344
10
4
4 25 7 . . 10.8, 1 25, S Y.
175 (725=175). , 4 , .
, TABLET4 ,
.
.
2 ()
TABLET4 custom.mnu.
4 . 10.8.
1. trana.lsp tranb.lsp, AutoLISP. (, trana.lsp tranb.lsp .)
2. SCR1 SCR2.
. 10.8. , 4
^C^C(LOAD "TRANA");TRANA
LOAD TRANA
AutoLISP. TRANA, ,
TRANA. , .
12.
SCRIPT AutoCAD;
SCR1 .
AutoCAD
345
acad.mnu , .
.
, AutoCAD.
***BUTTONS1
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS
$P0=*);
$P0=SNAP $P0=*
^C^C
^B
^O
^G
^D
^E
^T
***BUTTONS2
$P0=SNAP $P0=*
***AUX1
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS
$P0=*);
$P0=SNAP $P0=*
^C^C
^B
^O
^G
^D
^E
^T
***AUX2
$P0=SNAP $P0=*
,
BUTTONS custom.mnu.
***BUTTONS
$P0=*
^C^C
^B
^O
^G
^D
^E
^T
,
,
/ (<Ctrl+B>)
/ (<Ctrl+O>)
/ (<Ctrl+G>)
/ (<Ctrl+D>)
(<Ctrl+E>)
/ (<Ctrl+T>)
346
10
, , , , - . 4- 10- .
- .
- AutoCAD.
BUTTONS, custom.mnu ( custom.mnu acad.mnu).
4
BUTTONS custom.mnu,
- (. 10.9).
. 10.9. , -
1. PICK
2. ENTER
3. ZOOM Win
4. ZOOM Prev
ZOOM Window, 3, , ( ) ,
. .
- , , .
custom.mnu .
- , ***BUTTONS.
custom.mnu, :
***BUTTONS1
;
'ZOOM;WIN;\@2,2
'ZOOM;PRE
^B
1
2
3
4
5
347
AutoCAD
^O
^G
^D
^E
^T
6
7
8
9
10
1
***BUTTONS1
, , BUTTONS1.
2
;
(;) ENTER ,
<Enter> .
3
'ZOOM;WIN;\@2,2
,
. 10.10.
. () 2.0 ( X) 2.0 ( Y) .
' , ZOOM ;
\ , ;
2,2 .
, ,
, - . AutoCAD , .
('), , ZOOM Window
.
. 10.10.
348
10
4
'ZOOM;PRE
, , ZOOM ()
Previous (). ('), ZOOM, .
, ( ***BUTTONS1),
, - .
, . ,
.
5
,
custom.mnu AutoCAD. - (. 10.11), 1
. 1,00 ,
0. ( custom.mnu acad.mnu.)
1.
4. OSNAPS
7. INSERT B3
10. ZOOM Previous
2. ENTER
5. INSERT B1
8. ZOOM Window
3. CANCEL
6. INSERT B2
9. ZOOM All
B1, B2 B3 .
, POP0 .
ZOOM Previous ZOOM Window ZOOM.
custom.mnu:
***BUTTONS
;
^C^C
$P0=*
^C^CINSERT;B1;\1.0;1.0;0
^C^CINSERT;B2;\1.0;1.0;0
^C^CINSERT;B3;\1.0;1.0;0
'ZOOM;Win
^C^CZOOM;All
'ZOOM;Prev
***AUX1
;
^C^C
$P0=*
^C^CINSERT;B1;\1.0;1.0;0
^C^CINSERT;B2;\1.0;1.0;0
^C^CINSERT;B3;\1.0;1.0;0
'ZOOM;Win
^C^CZOOM;All
'ZOOM;Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AutoCAD
349
. 10.11. , 10-
-
3
^C^C
, 3.
.
4
$P0=*
$P0=*, , , .
AutoCAD . , ,
acad.mnu POP0. , ,
- .
$S=X $S=OSNAPS
$S=X , X, ;
$S=OSNAPS1 , OSNAPS1,
.
5
^C^CINSERT;B1;\1.0;1.0;0
350
10
X, 1.0 Y. 0, , .
INSERT AutoCAD;
B1 ;
\ , ;
1.0 X;
1.0 Y;
; , ENTER;
0 .
9
^C^CZOOM;All
,
- . ZOOM () All ().
ZOOM AutoCAD;
; , ENTER;
All All ZOOM.
10
'ZOOM;Prev
, , ZOOM
() Previous (). - .
' , ZOOM ;
ZOOM AutoCAD;
; , ENTER;
Prev Previous ZOOM.
11
***AUX1
AUX1 .
, 1220.
AutoCAD (acad.mnu) AutoCAD. acad.mnu
AutoCAD
351
,
AutoCAD. 499 ,
1, 2, 3 ..
AutoCAD 0, 500999. $P0=*.
AutoCAD , , . AutoCAD ,
.
, -> , <- . , , .
--
, ,
.
: [--]
.
.
: [Triang:]^C^Cline;1,1;+
3,1;2,2;
->
.
: [->Draw]
<-
. <- .
: [<-CIRCLE 3P]^C^CCIRCLE;3P
<-<-...
, .
.
: [<-<-Center Mark]^C^C_dim;_center
$(
DIESEL. .
: $(if,$(getvar,orthomode),Ortho)
, , ;
.
: [~Application not available]
, Windows. , , 80 . , 16 , 5 .
, , 80 ,
AutoCAD ,
. , .
352
10
1. ***POP1***POP16.
.
2. ,
, .
3. 999 .
, . , 999, .
4. , ,
. , ,
. , 35 , , , .
5. , AutoCAD , , .
6
4,
NEW-INSERT (. 10.12). NEW-INSERT
4, , .
INSERT-BLOCKS
DOOR1
DOOR2
-------WINDOW1
WINDOW2
WBLOCKS SYMBOLS D.
,
X Y, 1,25, 0 .
acad.mnu. ,
- (, custom.mnu),
.
, custom.mnu
INSERT, ***POP4. ,
INSERT-BLOCK, . 10.12.
AutoCAD
353
. 10.12. POP4
custom.mnu POP4 :
***POP1
**FILE
ID_MnFile [&File]
ID_New [&New...\tCtrl+N]^C^C_new
ID_Open [&Open...\tCtrl+O]^C^C_open
ID_FILE_CLOSE [&Close]
ID_PartialOp [$(if,$(eq,$(getvar,fullopen),0),,~)Pa&rtial Load]
^C^C_partialload
ID_Save [&Save\tCtrl+S]^C^C_qsave
ID_Saveas [Save &As...]^C^C_saveas
ID_Export [&Export...]^C^C_export
ID_PlotSetup [Pa&ge Setup...]^C^C_pagesetup
|
|
***POP2
**EDIT
ID_MnEdit [&Edit]
ID_U [&Undo\tCtrl+Z]^C^C_u
ID_Redo [&Redo\tCtrl+Y]^C^C_redo
ID_Cutclip [Cu&t\tCtrl+X]^C^C_cutclip
ID_Copyclip [&Copy\tCtrl+C]^C^C_copyclip
ID_Copybase [Copy with &Base Point]^C^C_copybase
ID_Copylink [Copy &Link]^C^C_copylink
|
|
***POP3
**VIEW
ID_MnView [&View]
ID_Redrawall [&Redraw]'_redrawall
ID_Regen [Re&gen]^C^C_regen
ID_Regenall [Regen &All]^C^C_regenall
354
10
ID_MnZoom [->&Zoom]
ID_ZoomRealt [&Realtime]'_zoom
ID_ZoomPrevi [&Previous]'_zoom_p
ID_ZoomWindo [&Window]'_zoom_w
ID_ZoomDynam [&Dynamic]'_zoom_d
ID_ZoomScale [&Scale]'_zoom_s
ID_ZoomCente [&Center]'_zoom_c
|
|
***POP4
**INSERT
ID_MnInsert [&Insert]
ID_Ddinsert [&Block...]^C^C_insert
ID_Xattach [E&xternal Reference...]^C^C_xattach
ID_Imageatta [Raster &Image...]^C^C_imageattach
|
[->Insert-Blocks]
[Door1]^C^C_insert;d:/symbols/door1;\1.25;1.25;0
[Door2]^C^C_insert;d:/symbols/door2;\1.25;1.25;0
[--]
[Window1]^C^C_insert;d:/symbols/window1;\1.25;1.25;0
[<-Window2]^C^C_insert;d:/symbols/window2;\1.25;1.25;0
[DOOR1]^C^CINSERT;D:/SYMBOLS/DOOR1;\1.25;1.25;0
, (\) (/). DOOR1, D
SYMBOLS,
D:\SYMBOLS\DOOR1.
D:/SYMBOLS/DOOR1 ( ).
[->Insert-Blocks]
->, , .
3, AutoCAD
.
[<-Window1]^C^C_insert;d:/symbols/window1;\1.25;1.25;0
<-, , .
, 499 ( 999).
***POP0 ***POP500***POP999.
. .
, , . .
AutoCAD
355
1. ***POP0
***POP500***POP999. , ,
.
2. . ,
.
3. 0 $P0=*.
POP500POP999
. ,
AutoCAD, GRIPS, CMDEFAULT, CMEDIT CMCOMMAND. ,
POP500, , ***GRIPS POP500. (
GRIPS 1, -
( ).
, , , . AutoLISP ADS.
4. 499 ;
, . , , .
5. , ,
.
, , . ,
21 , , , .
,
. , ,
, 21. ,
, . , ,
,
. AutoCAD
.
AutoCAD, , .
,
. ,
, . ,
AutoCAD , . ,
.
356
10
$=
$ ;
() ;
= ;
.
$P1=P1A
$P1 ;
P1A .
.
AutoLISP . ,
AutoCAD.
, , , .
. 10.13.
,
, .
, . ,
. , ,
.
. , .
,
, .
, AutoCAD , .
,
, - . .
, , .
, <Esc>, Cancel ()
- , .
AutoCAD
357
, .
. ***IMAGE,
.
(***IMAGE),
.
***IMAGE
*** , ;
IMAGE .
, , , 20 .
, ,
, Next Previous,
. ,
. .
$=
$ ;
() ;
= ;
.
$I=IMAGE1
$I ;
IMAGE1 .
, , . , ,
. , .
17 . , , .
, ,
. , .
358
10
[slidename]. , ,
, .
, .
[slidename, label]. slidename ,
. ,
, (label). ,
[BOLT1,1/2-24UNC-3LG]. BOLT1 , -24UNC-3LG ,
.
[slidelib(slidename)]. slidename , slidelib. ( )
, (slidename) .
[slidelib(slidename,label)]. slidename
, (slidelib).
, (slidename) .
[blank]. ,
. (.. ).
[ label]. , AutoCAD
,
. , [ EXIT]^C, EXIT.
(^C), .
.
7
,
(. 10.14). POP12.
. 10.14. ,
AutoCAD
359
, ,
, .
acad.mnu. acad.mnu, (, custom.mnu), .
, custom.mnu
***IMAGE. , , acad.mnu, POP12 .
POP12, ***IMAGE. , ***IMAGE INSTBLK.
custom.mnu,
.
***POP12
[BLOCKS]
[INSERT]^C^C$I=INSTBLK $I=*
***IMAGE
**INSTBLK
[INSERT CUSTOMIZED BLOCKS]
[BL1]^C^CINSERT;BL1;\1.0;1.0;0
[BL2]^C^CINSERT;BL2;\1.0;1.0;0
[BL3]^C^CINSERT;BL3;\1.0;1.0;0
[BL4]^C^CINSERT;BL4;\1.0;1.0;0
[BL5]^C^CINSERT;BL5;\1.0;1.0;0
[BL6]^C^CINSERT;BL6;\1.0;1.0;0
[ EXIT]^C^C
[INSERT]^C^C$I=INSTBLK $I=*
$I=INSTBLK, ,
INSTBLK, . $I=*
, .
$I=INSTBLK , INSTBLK, ;
$I=* , .
***IMAGE
.
(***IMAGE) .
**INSTBLK
, INSTBLK.
[INSERT CUSTOMIZED BLOCKS]
, , ( ) .
[BL1]^C^CINSERT;BL1;\1.0;1.0;0
BL1, , , . ^C^C -
360
10
, INSERT BL1, 1,0 , 0 .
[BL1] ;
BL1 ;
\ , ;
1.0 X;
1.0 Y;
0 .
AutoCAD , . , ,
, .
, , .
.
, , , .
,
. , ,
, 21. ,
, . , ,
,
. AutoCAD
.
$=
$ ;
() ;
= ;
.
$S=EDIT
$S ;
EDIT .
AutoCAD
361
. - , . ,
, .
, , .
, :
$S=
$ ;
S ;
= .
. ,
(.. $S=), .
(acad.mnu), ,
MENU.
Command: MENU
Enter menu file name or [. (for none)] <SM1>: ACAD.MNU
- - , (\).
, .
(\) .
, , .
,
.
, , ,
. , , , 21,
, , .
8
AutoCAD, ,
. 10.15.
, INSTBLK
. acad.mnu. , custom.mnu,
.
362
10
. 10.15.
, custom.mnu
***SCREEN. **S,
**CUSTOM , . 10.14. custom.mnu, :
***IMAGE
**INSTBLK
[INSERT CUSTOMIZED BLOCKS]
[BL1]^C^CINSERT;BL1;\1.0;1.0;0
[BL2]^C^CINSERT;BL2;\1.0;1.0;0
[BL3]^C^CINSERT;BL3;\1.0;1.0;0
[BL4]^C^CINSERT;BL4;\1.0;1.0;0
[BL5]^C^CINSERT;BL5;\1.0;1.0;0
[BL6]^C^CINSERT;BL6;\1.0;1.0;0
[ EXIT]^C^C
|
|
**SCREEN
**S
[AutoCAD ]^C^C^P(ai_rootmenus)^P
[* * * * ]$S=ACAD.OSNAP
[FILE
]$S=ACAD.01_FILE
[EDIT
]$S=ACAD.02_EDIT
[VIEW 1 ]$S=ACAD.03_VIEW1
[VIEW 2 ]$S=ACAD.04_VIEW2
[INSERT ]$S=ACAD.05_INSERT
|
|
**ASSIST 3
[Last
]_l
[Previous]_p
[All
]_all
AutoCAD
363
[Cpolygon]_cp
[Wpolygon]_wp
|
|
[CUSTOM]^C^C$S=X $S=CUSTOM
**CUSTOM 3
[LISP-]
[ TRANA:]^C^C(LOAD "TRANA");TRANA
[ TRANB:]^C^C(LOAD "TRANB");TRANB
[ ]
[SCRIPT-]
[ SCR1:]^C^CSCRIPT;SCR1
[ SCR2:]^C^CSCRIPT;SCR2
[ ]
[IMAGE-BLK]^C^C$I=INSTBLK $S=*
[CUSTOM]^C^C$S=X $S=CUSTOM
$S=X, ,
. $S=CUSTOM CUSTOM,
custom.mnu.
$S=X , X;
$S=CUSTOM , CUSTOM.
**CUSTOM 3
CUSTOM . 3, ,
, , CUSTOM, . . ,
AutoCAD * * * * .
CUSTOM ;
3 , .
[IMAGE-BLK]^C^C$I=INSTBLK $S=*
$I=INSTBLK INSTBLK, . $S=*
.
$I=INSTBLK , INSTBLK;
$S=* , .
364
10
,
.
1. AutoCAD ________ .
2. 1 acad.mnu ________
________ .
3. , , ________ .
4. _________.
5. 2 acad.mnu ________
________ .
6. ,
________.
7. ________.
8. AutoCAD ________ .
9. 3 acad.mnu ________
________ .
10. 3 _________, , .
11. 4 acad.mnu ________
________ .
.
1. AutoCAD ________
.
2. ________ .
3. _________.
4. ________.
5. ,
_________.
6. ________ .
7. _________
.
8. AutoCAD
_________.
9. , AutoCAD
_________.
10.
, ________ .
AutoCAD
365
11. - _______
, .
12. , ,
, ________.
13. , , , ________.
14. , , , ________.
15. _____.
3 ()
TABLET1 acad.
mnu. . 10.16 1.
VIEW POINTS
0,0,1
1,-1,1
1,0,0
1,1,1
0,1,0
-1,1,1
. 10.16. , 1
4 ()
TABLET1 acad.
mnu. . 10.17 1.
INSERT NO
INSERT NC
INSERT COIL
INSERT RESIS
PLOT 1218
PLOT 1824
PLOT 2436
PRPLOT
SETLAYER OBJ
SETLAYER HID
SETLAYER CEN
SETLAYER DIM
366
10
. 10.17. , 1
5 ()
, AutoCAD (. 10.18).
BUTTONS2 acad.mnu. - 10 ; 1 . 1,0 , 0
. bme1.mnu.
1.
4. OSNAPS
7. NEAR
10. PAN
2. ENTER
5. END PT
8. ZOOM Window
3. CANCEL
6. CENTER
9. ZOOM Prev
. 10.18. ,
AutoCAD
367
6 ()
, . 10.19, 12
acad.mnu.
. 10.19. 12
7 ()
.
13. ,
.
SYMBOL-X
LOGO-1
TBLOCK-1
SYMBOL-Y
LOGO-2
TBLOCK-2
SYMBOL-Z
LOGO-3
TBLOCK-3
1 , 2 25 , 9 , 3 , 4 $P0=*, 5 11
, 9 , 6 , 7 , 8 ,
9 9 , 13 , 10 , 11 25 , 4 .
11
, :
;
,
;
;
;
.
370
11
AutoCAD
. ASCII
.shp. - , Notepad.
, . ,
, .
, .
, . ,
. , . , , EXPLODE (),
.
:
.
:
* , ,
:
*201, 21, HEXBOLT
*201 ;
21 , ;
HEXBOLT .
, (*).
1 255, . ,
, . , , , . , .
, , . ,
, .
. ,
. -
371
(, 012),
(.. ). (,). ,
, 2 000,
.
.
. .
80 . .
, , . 11.1. , , . ,
, . , 0
(.. ). 1 0. ,
. ,
0 1 26,565 (arctg 1/2 = arctg 0,5 = 26,565 ).
, 0 2 45 (arctg 2/2 = arctg 1 =
= 45 ).
. 11.1.
, ,
. , , ,
. , . , , .
15 .
.
372
11
1
, , . 11.2. RESIS.
sh1.shp.
. 11.2.
1:
- .
:
*201,8,RESIS
020,023,04D,043,04D,023,020,0
, .
*201,8,RESIS
*201 ;
8 , ;
RESIS .
020,023,04D,043,04D,023,020,0
0 ,
;
2 ;
0 .
, ,
. (0)
, , -
373
. , , (020), 2,
0. ,
(023) ,
(2) , (3)
.
2:
.shp. ,
COMPILE, .
Select Shape or Font File ( ),
. 11.3, COMPILE .
, . , :
Compilation successful
Output file name.shx contains nn bytes
name.shx nn
.shp
.shx. sh1.shp. , , 49. AutoCAD - , ,
, , .
,
FILEDIA 0.
374
11
3:
Select Shape File, LOAD
. , , Open
(. 11.4). FILEDIA 0,
LOAD :
Command: LOAD
Enter name of shape file to load or [?]: SH1
RESIS.
, , (. 11.5).
, ,
. ,
, .
, .
375
. 11.5. RESIS,
, . .
000
001
002
003
004
005
006
007
008
009
00A 10
( )
( )
( )
( )
,
( )
X-Y ,
( )
X-Y, (0,0) (
)
,
376
11
00B 11
00C 12
00D 13
00E 14
,
, X-Y
, ( )
000:
.
001:
. , ,
. , , .
002:
. ,
, .
1
, , 1 2, 2 3, 3 4
. :
020,002,020,001,020,0
(020) 2 ,
0. (002) , (020) ( ) 2 .
(001) , (020)
2 , 0. .
2
, G, . 11.6.
. 11.6. G
377
1:
-
(, Notepad). CHRGEE; GEE. , , , .
*215,20,GEE
002,042,
001,014,016,028,01A,
04C,01E,020,012,014,
002,018,
001,020,01C,
002,01E,0
1
2
3
4
5
6
7
1
*215,20,GEE
(*) 215.
, ,
, 0, . GEE .
2
002,042,
(002) ( ),
4 , 2.
3
001,014,016,028,01,
001 ( ), 014
1 , 90 ( 4).
016 1 , 6. 028 2 ,
180 ( 8). 01
, .
4
04,01,020,012,014,
04 4 ,
. 01 ,
. 020 2 ,
0 ( 0). 012 , 2. , 014
, 4.
5
002,018,
002 ( ), 018 , 8.
378
11
6
001,020,01,
001 ( ), 020
2 , 0 (
0). 01 , .
7
002,01,0
002 ( ), 01
, . 0
.
.
. . ,
, ,
. , , ,
.
003:
, . , , :
003,2,020,002,002,020,001,020,0
(003) . , (2) , ,
. , , 2, .
:
, , .
, 003,
(020) 4 (22):
003,2,020,002,002,020,001,003,2,020,0
003,2 2;
003,2 2.
, , :
379
004:
,
, , 003. , , ( 1
255).
003,2,020,002,002,020,001,004,2,020,0
003,2 , , 2;
004,2 , , 2.
, 003,
2. , 0,5. (004)
, , 2. , ; , , 2, 2. ,
. , ,
:
005 006:
005 , 006
.
3
005 006.
1:
. 11.7, a , .
, , . 005, ,
006, . . ,
, ,
005 006.
, :
*210,10,POP1
005,005,005,012,006,014,006,016,006,0
005 ( );
012 ;
006 ;
014 ;
006 .
380
11
. 11.7: a) , ; )
,
( )
, ( 006) , ( 005), :
Position stack underflow in shape (shape number)
,
( )
,
, .
2:
COMPILE
LOAD. SHAPE,
2.
. , ,
.
255 . , , .
007:
, .
007, . .
1 255.
381
*210,10,PO1
005,005,005,012,006,014,006,016,006,0
*211,8,SUB1
020,007,210,030,007,210,020,0
*210 ;
007 ;
210 .
, , . 11.7, .
008: X Y
, . ,
16 ,
15 . , . , 008
009 X Y. 008 :
008, XDISPLACEMENT, YDISPLACEMENT
X Y +127 128.
(+),
(). , , , . ,
.
009: X Y
008 X Y. , 009
. (0,0).
009 :
009, (XDISP, YDISPL), (XDISPL, YDISPL), ... ,(0,0)
00 10:
(360 ) ,
, , 45 . 45 , , ,
. 0 7, . 11.8.
:
10,(R,+/-0SN)
382
11
R ;
+/- ( (+) ,
() );
0 ;
S ;
N .
10,(3,-043)
(10) 00,
. (3) .
, .
(+) , . (0) , (4) ,
. ,
. 11.9. ,
:
*214,5,FOCT1
001,10,(3,-043),0
. 11.8.
. 11.9.
383
00 11:
00 11 . ,
. , , :
11,( , , ,
, +/-0S/N)
,
. . 255 ,
0. (+) () ,
, , . (S)
, , N , . .
= (
, ) 256 / 45
= ( ,
) 256 / 45
4
3 , , 20 ( ) 140 ( ).
.
.
1:
, 140 .
, 4, 135
(345=135).
:
= (140 135) 256 / 45 = 28,44 = 28
, 20 .
, 0,
0 .
:
= (20 0) 256 / 45 = 113,7 = 114
,
. ; , ( ).
, .
0.
384
11
3. 255, 0.
:
11,(114,28,0,3,004)
2:
- .
, . 11.10:
*221,8,FOCT2
001,11,(114,28,0,3,004),0
. 11.10.
3:
.shp.
, COMPILE LOAD.
SHAPE.
00 12: ,
00 , .
X Y 127 +127.
127 +127. , 127,
, . , .
= ((2 H)/D) 127,
H ;
D .
2H = D.
, = (D/D)127 = 127.
H = 0.
, = (0/D)127 = 0.
385
. 11.11,
4, 1. , :
( ) = (21/4)127 = 63,5 = 63
, . 11.11.
*213,5,BULGE1
12,(4,0,-63),0
4 X;
0 Y;
- , ;
63 .
00D 13: ,
00D ( 13) , ,
. (0,0). , , . 11.12:
*214,16,BULGE2
13,(4,0,-111),
(0,4,63),
(-4,0,-111),
(0,-4,63),(0,0),0
. 11.11.
. 11.12. ,
386
11
, ,
.
.
00 14:
00 14 ,
, .
, ,
14, .
,
,
.
. . 11.13. , G
, . 11.13. , , .
14,
.
. 11.13 ,
G. ,
14, . ,
.
*215,28,FLAG
002,14, ( 008,(-2,-6),
14, .)
008,(-2,-6),
042,001,
014,016,028,01A,
04C,01E,020,012,014,
002,018,
001,020,01C,
002,01E,
14, ( 008,(-4,-1),
14, .)
008,(-4,-1),
0
387
5
, , . 11.14. HAMMER;
hmr.shp. .
, .
1:
,
.
*204,34,HAMMER
003,22,
002,8,(2,-1),
001,024,
8,(-1,4),
00A,(1,004),
8,(-1,-4),06C,
00C,(4,0,63),
044,8,(17,-1),
00C,(0,4,63),
8,(-17,-1),0
1
2
3
4
5
6
7
8
9
10
11
. 11.14. ( )
1
*204,34,HAMMER
2
003,22,
003
(22). -
388
11
,
.
3
002,8,(2,-1),
002 ( ), ( 008) , 2 1
Y. , .
4
001,024,
001 ( ),
(024) , 2 4.
. 11.15. ,
5
8,(-1,4),
( 008) X Y, . X
1, Y 4.
6
00,(1,004),
00 ,
(1). 004 . (0)
, (4) .
7
8,(-1,-4),06
8 ( 008) , X, 1,
Y, 4. (06) 6 , .
389
8
00,(4,0,63),
(00) , X, 4,
Y, 0, 63.
= (2H)/D127 = (21)/4127 = 63,5 =
= 63 ( )
9
044,8,(17,-1),
(044) 4 ,
4. (8) ,
X, 17, Y, 1.
10
00,(0,4,63),
(00) , X, 4,
Y, 0, 63.
= (2H)/D127 = (21)/4127 = 63,5 =
= 63 ( )
11
8,(-17,-1),0
(8) , X,
17, Y, 1. 0 .
3:
.shp.
, COMPILE LOAD.
, SHAPE.
, AutoCAD .
,
, .
, , .
:
;
;
.
:
*0,4,_
_, _, , 0
390
11
*0 ;
4 ;
_ , ;
_ ;
_ ;
: 0 ; 2 ;
0 , .
, ,
:
*0,4,ucm
10,4,2,0
(0), , , .
. (4) , ucm
( , ).
. , .
, .
(10)
. , . 11.16,
10 .
(4) (.. , ). AutoCAD
. , ,
1 , , ,
10 . (2) . : 0 2.
, 0;
( ), 2.
(0) .
, ,
. AutoCAD 10, ASCII.
*10,5,lf
2,8,(0,-14),0
*10 ASCII, ;
5 , ;
lf ;
391
2 ( );
(0,-14) ;
0 , .
(10), ,
, .
(5) , .
(lf) .
(2) , . (8) (008), X Y. (0,-14) .
(.. ) ,
14 . (0) ,
.
, ,
ASCII, . , , 77.
*77,50,ucm
#
$
%
&
,
(
)
*
+
.
/
0
1
2
3
4
5
6
7
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
a
b
c
d
e
f
g
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
392
11
6
,
. 11.16. . 1 ; .
. 11.16.
1:
, ,
, .
- .
*0,4,uppercase m
10,0,2,0
*10,13,lf
002,8,(0,-14),14,9,(0,14),(14,0),(0,0),0
*77,51,ucm
2,14,8,(-5,-10),
001,009,(0,10),(1,0),(4,-6),(4,6),(1,0),
(0,-10),(-1,0),(0,0),
003,2,
009,(0,17),(-7,-11),(-2,0),(-7,11),
(0,-17),(-2,0),(0,0),
002,8,(28,0),
004,2,
14,8,(-9,-4),0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
*0,4,uppercase m
(0) , . (4) , . .
393
2
10,0,2,0
,
(0) ,
. (2)
( ).
, 0.
(0) , .
3
*10,13,lf
(10) , . (13)
, . (lf)
.
4
002,8,(0,-14),14,9,(0,14),(14,0),(0,0),0
(002 2) , ( ). (8,(0,-14))
X Y, 1 14. ,
14 .
, . ,
. . 14. , , , .
, .
(0,14) ,
14 . . 11.17 D1.
. 11.17.
394
11
(14,0) , 14
( D2 . 11.17). ((0,14),(14,0))
, 14 . (0,0)
009, (0) .
5
*77,51,ucm
6
2,14,8,(-5,-10),
002, (2),
( ), 14 ( )
. . 11.16, . ,
,
. [8,(-5,-10)],
5 ( 10) 10
( 10).
7 8
001,009,(0,10),(1,0),(4,-6),(4,6),(1,0),
(0,-10),(-1,0),(0,0),
(001) ( ), .
9, 10, 11
003,2,
009,(0,17),(-7,-11),(-2,0),(-7,11),
(0,-17),(-2,0),(0,0),
, , 8,5 . ,
. ,
2 8,5 = 17 , 2.
8,5 . 003
2, . , , 2.
12
002,8,(28,0),
395
. , , ,
4 (14 10 = 4) .
.
13
004,2,
14
14,8,(-9,-4),0
, .
8,(-9,-4), , X Y 9
4 , . 0 .
2:
ucm.shp. , COMPILE. . ,
Text Style, Text Style Format, . ,
.SHX, -STYLE . , , -STYLE. ,
MYUCM1 .
Command: -STYLE
Enter name of text style or [?] <Standard>: MYUCM1
:
Specify full font name or font filename (TTF or SHX) <txt>: ucm.shx
Specify height of text <0.0000>: 1
Specify width factor <1.0000>: <Enter>
Specify obliquing angle <0>: <Enter>
Display text backwards? [Yes/No] <N>: <Enter>
Display text upside-down? [Yes/No] <N>: <Enter>
Vertical? <N>: <Enter>
MYUCM1.
(. 11.18), MYUCM1,
TEXT () .
396
11
. 11.18.
7
m,
. 11.19. ,
. 1 ;
.
. 11.19. m
1:
, 7.
, , ,
. - .
*0,4,lowercase m
14,3,2,0
*10,13,lf
002,8,(0,-18),14,9,(0,18),(27,0),(0,0),0
1
2
3
4
397
*109,57,lcm
2,14,8,(-11,-14),
005,005,001,020,084,
00A,(4,-044),
08C,020,084,
00A,(4,-0440),
08C,020,084,
00B,(0,62,0,6,004),
00B,(193,239,0,6,003),
006,9,(0,14),(2,0),(0,0),
003,5,07C,004,5,
006,2,8,(27,0),
14,8,(-16,-5),0
5
6
7
8
9
10
11
12
13
14
15
16
17
, , , .
7
005,005,001,020,084,
(005)
.
.
8
00A,(4,-044),
(00) , , . (4)
.
. (0)
. (4) ,
(4) , .
12
00B,(0,62,0,6,004),
(00) , . (0)
,
.
= 0;
= 0;
= (0 0)256/45 = 0;
= 146;
= 4;
= (146 135)256/45 = 62,57 = 62 ( ).
398
11
(62) ,
(0) . (6) . (0)
, (4) , .
13
00B,(193,239,0,6,003),
(00) , . .
= 34;
= 0;
= (34 0)256/45 = 193,4 = 193 ( );
= 132;
= 3;
= (132 90)256/45 = 238,9 = 139 ( ).
,
. , ,
.
14
006,9,(0,14),(2,0),(0,0),
(006)
, , 009.
2:
, , 6.
.
, (.shx)
. , ,
, .
399
,
.
1. , , ________
________.
2.
, ________. ,
. , ________
- .
3. 1 ________,
.
4. ________, .
5. ________, , .
6. , ,
________.
7. - , ______.
8. ________.
9. , , . , ,
________ . ________,
.
10. 001 ________, ________ .
11. , (003), , ________ .
12. 004 ,
. ________ ,
003.
400
11
.
1. , , ________.
2. ( 005) ______
( ________).
3. ,
,
________.
4. , . _________.
5. 16 ;
________ .
6. 00
________.
7. ________ , .
8. 127 ______.
9. 00 _________ , , .
10. _________,
, .
11.
. , ________.
12. , _________ , .
13. , ,
________, .
14. , ________
.
15. 45- , , ________.
16. 10, ASCII, AutoCAD
________.
17. , , ________.
18. SHAPE NAME , ________ .
19. ________, ________.
401
1 ()
,
. 11.20.
. 11.20.
2 ()
, . 11.21.
. 11.21.
402
11
3 ()
G,
. 11.22.
. 11.22. G
4 ()
W,
. 11.23. , .
. 11.23. W
1 , 2 , , 3 255, 4 , 5 0 (), 6 2000,
7 , 8 LOAD, 9 , , 10 , 002,
11 , 12 .
12
AutoLISP
, :
,
AutoLISP;
AutoLISP;
AutoLISP;
AutoLISP;
Load/Unload Applications;
- ;
.
404
12
AutoLISP
AutoLISP, Autodesk, Inc., LISP ( LISP
LISt Processor). ,
(John McCarthy), 1960 ,
The Communications of ACM.
, 1960-, . FORTRAN COBOL. LISP
(AI Artificial Intelligence). LISP Common LISP, BYSCO LISP, ExpertLISP GCLISP, IQLISP,
LISP/80, LISP/88, MuLISP, TLCLISP, UO-LISP, Waltz LISP XLISP. , XLISP
LISP, Common LISP
LISP, AutoLISP. AutoLISP
AutoCAD. , AutoCAD LT
AutoCAD 2.17 AutoLISP , AutoLISP AutoCAD
2.18 .
AutoCAD ,
. , , ,
. , AutoCAD , . ,
AutoLISP,
. AutoLISP
, , .
AutoLISP ,
. , SMLayout,
,
, , , . , ,
AutoLISP, .
,
AutoCAD , . , AutoLISP,
.
. , AutoLISP .
.
AutoLISP . , , AutoLISP
Programmers Reference Manual Autodesk. - -
AutoLISP
405
. AutoLISP ,
. , , ,
. ,
, . ,
, AutoLISP.
, AutoLISP.
:
(+ 1 2 3 ...)
(+) ,
(+), .. (1 + 2 + 3 +...).
(). . , , . ,
. , ,
, , . (50,0) , .
Command: (+ 2 5)
Command: (+ 2 30 4 50)
Command: (+ 2 30 4 50,0)
7
86
86,0
:
(- 1 2 3 ...)
(-) (1 2).
, , (1 (2 + 3 +...)). 14 28, 14. , . 20
10,0, (30,0) 50.
20,0.
406
12
Command:
Command:
Command:
Command:
Command:
(((((-
28 14)
25 7 11)
50 20 10,0)
20 30)
20,0 30,0)
17
7
20,0
10
10,0
:
(* 1 2 3 ...)
(*) , (*),
.. (1 2 3 ...). , .
, .
Command:
Command:
Command:
Command:
Command:
(*
(*
(*
(*
(*
2 5)
2 5 3)
2 5 3 2,0)
2 -5,5)
2,0 -5,5 -2)
10
30
60,0
11
22,0
:
(/ 1 2 3 ...)
Command:
Command:
Command:
Command:
Command:
Command:
(/
(/
(/
(/
(/
(*
30)
3 2)
3,0 2)
200,0 5,0 4)
200 -5)
-200 -5,0)
30
1
1,5
10,0
40
40,0
:
(1+ )
(1+) ( ) , 1. 1 10,5,
9,5.
AutoLISP
407
(1+ 20)
(1+ -10,5)
21
9,5
:
(1- )
(1-) 1 ( ) , 1. 1 10,5,
11,5.
(1- 10)
(1- -10,5)
9
11,5
:
(abs )
abs () ,
, . abs 20,
20 20.
(abs 20)
(abs -20)
(abs -20,5)
20
20
20,5
(sin)
:
(sin )
(sin) , .
(180 ) 0.
(sin 0)
(sin pi)
(sin 1,0472)
0
1,22461016
0,866027
(cos)
:
(cos )
(cos) , .
(180 ) 1,0.
408
12
(cos
(cos
(cos
(cos
0)
0,0)
pi)
1,0)
1,0
1,0
1,0
0,540302
(atan)
:
(atan 1)
atan 1 , . 1,0
0,785398 .
0,463648
0,785398
0,785398
atan .
:
(atan 1 2)
, (1/
2) , . (0,5) (1,0) atan
(0,5/1,0 = 0,5).
Command:
Command:
Command:
Command:
Command:
(atan
(atan
(atan
(atan
(atan
0,5 1,0)
2,0 3,0)
2,0 -3,0)
-2,0 3,0)
-2,0 -3,0)
0,463648
0,588003
2,55359
0,588003
2,55359
1,5708
1,5708
angtos
:
(angtos [ []])
angtos , , .
.
(angtos
(angtos
(angtos
(angtos
0,588003 0 4)
2,55359 0 4)
1,5708 0 4)
-1,5708 0 2)
33,6901
146,3099
90,0002
270,00
AutoLISP
409
0
1
2
3
4
//
, . AUPREC.
0, .
0,588003 , 0 ( )
4 ( ). 33,6901.
, , . ,
; , . ,
(if (< x 5)) , x 5.
.
, AutoLISP.
:
(= 1 2 ...)
(=) , (1
2). , T.
, nil.
(=
(=
(=
(=
(=
5 5)
5 4.9)
5.5 5.5 5.5)
"yes" "yes")
"yes" "yes" "no")
T
nil
T
T
nil
:
(/= 1 2 ... )
(/=) , (1
2). , T. , nil.
410
12
(/=
(/=
(/=
(/=
50 4)
50 50)
50 -50)
"yes" "no")
T
nil
T
T
:
(<1 2 ...)
(<) , .
(1) (2), T.
, nil.
(< 3 5)
(< 5 3 4 2)
(< "x" "y")
T
nil
T
:
(< = 1 2 ...)
(<=) , .
(1) (2), T. , nil.
(<= 10 15)
(<= "c" "b")
(<= -2 0)
T
nil
T
:
(> 1 2 ...)
(>) , .
(1) (2), T.
, nil.
15 10. , ,
T. 10 , 9, , , 9. , ,
nil.
(> 15 10)
(> 10 9 9)
(> "c" "b")
T
nil
T
AutoLISP
411
:
(>=1 2 ...)
(>=) , .
(1) (2), T. , nil.
78 50. , , T.
(>= 78 50)
(>= "x" "y")
(>= "78" "80")
T
T
nil
;
.
(defun ADNUM ( ))
ADNUM, -
. , ,
, .
.
(defun ADNUM (a b c))
ADNUM, : a,
b c. a, b c .
(defun ADNUM (/a b))
ADNUM,
a b. .
(defun C:ADNUM ( ))
C:, ,
, AutoCAD. C:
, .
412
12
AutoLISP .
. ,
AutoLISP. (
AutoLISP AutoLISP Programmers Reference.)
abs
ads
alloc
and
angle
antgos
append
apply
atom
ascii
assoc
atan
atof
atoi
distance
equal
fix
float
if
length
list
load
member
nil
not
nth
null
open
or
pi
read
repeat
reverse
set
type
while
setq
setq . :
(setq [ ] ...)
;
, .
, , (, -.)
Command: (setq X 12)
Command: (setq X 6.5)
Command: (setq X 8.5 Y 12)
X 8,5, Y
12.
Command: (setq answer "YES")
answer YES.
setq .
setq
.
(setq pt1 (getpoint "Enter start point: "))
(setq ang1 (getangle "Enter included angle: "))
(setq answer (getstring "Enter YES or NO: "))
AutoLISP , - . , . ,
pi angle , .
(setq pi 3.0)
(setq angle (...))
AutoLISP
413
getpoint
getpoint , X Y ( X, Y Z) .
. getpoint
:
(getpoint [] [])
;
, .
getpoint AutoLISP.
2D- 3D- (UCS User Coordinate System).
Command
Command AutoCAD
, AutoLISP. AutoCAD . Command :
(Command "_")
Command AutoLISP;
_ AutoCAD.
414
12
Command TEXT ()
. , (Command text 4.04
AutoCAD Text)
.
, Command , AutoLISP. getpoint, getstring,
getangle getint. , (Command getpoint ...) (Command getangle ...) . , , . ,
, (, Command text (getpoint) (getdist) (getangle) hello, sailer).
1
,
, ,
. 12.1.
1: AutoLISP
, : , .
,
(. 12.2). ,
, - . 12.1. 123
. . ,
. ,
1, 2 3. .
. 12.2.
, ,
. , .
, (
415
AutoLISP
), . , .
, , . , . , ,
.
1
2
3
1 2
2 3
3 1
123
2: AutoLISP
AutoLISP
. AutoLISP 1. ,
, .
; ,
;
; . P1, P2 P3
; .
(defun C:TRIANG1()
(setq P1 (getpoint
(setq P2 (getpoint
(setq P3 (getpoint
(Command "LINE" P1
)
1
2
3
4
5
6
7
8
9
10
11
13
,
. , . , .
. , , .
5
, .
. , .
.
6
(defun C:TRIANG1()
defun,
TRIANG1. C:, ,
416
12
TRIANG1 , AutoCAD. ,
: , TRIANG1
(TRIANG1). TRIANG1 (1, 2 3). AutoLISP,
,
. , (,
Command: !P1). ,
(defun C:TRIANGE1(/P1 P2 P3)).
7
(setq P1 (getpoint "\n Enter first point of Triangle: "))
getpoint, , ,
.
Enter first point of Triangle
( ).
.
setq P1. \n , , , (n newline).
8 9
(setq P2 (getpoint "\n Enter second point of Triangle: "))
(setq P3 (getpoint "\n Enter third point of Triangle: "))
, , . , , 2
3. \n ,
.
10
(Command "LINE" P1 P2 P3 "C")
Command, ,
LINE, , P1 P2, P2 P3.
"C" ( Close) (3)
(1). AutoCAD, AutoLISP,
. P1, P2 P3 .
11
, TRIANG1.
, . ,
.
, .
, , .
.
AutoLISP
417
AutoLISP
.lsp. , , AutoLISP:
. , triang1.lsp , .
AutoLISP .lsp.
. , , , TRIANG1.
AutoLISP, . AutoCAD AutoLISP, .
AutoLISP , .
Load/Unload Application (/ ) (. 12.3),
ToolsAutoLISPLoad (AutoLISP)
Load Application ( ) Tools ().
LSP, VLX, FAS, VBA, DBX
ObjectARX. VBA, DBX ObjectARX
. LSP, VLX FAS , Load/Unload Application. ,
, ,
. ,
(*.lsp) Files of type ( )
. ,
Load ()
.
Load/Unload Application.
. 12.3. AutoLISP
Load/Unload Application
418
12
Load
Load .
,
Loaded Applications History List. ObjectARX .
ObjectARX, .
Loaded Applications
Loaded Applications AutoCAD
, . , , ,
Loaded Applications.
History List
History List AutoCAD ,
Add to History.
, History List
, History List .
Add to History
Add to History , , , History List,
History List.
Unload
Unload Loaded
Applications. , Loaded Applications Unload. LISP
ObjectARX, , .
Remove
Remove History List.
, History List,
Remove.
Startup Suit
, Startup Suit, AutoCAD. Startup Suit
AutoCAD Startup Suit,
. , Add.
, , Startup Suit. ,
History List,
Add to Startup Suit .
AutoLISP
419
AutoLISP LOAD, :
Command: (load "[]_")
Command: , AutoCAD;
load , AutoLISP;
[]_ AutoLISP.
AutoLISP . load _ . , AutoCAD AutoLISP .
load _ . , .
, AutoCAD
(Command: TRIANG1), <Enter>. , , C:,
.
Command: TRIANG1 Command: (TRIANG1)
, AutoLISP,
. , TRIANG1 : LISP, , ,
. (
(//).)
Command: (load "c:/lisp/triang")
drag-anddrop, Windows.
AutoLISP, Windows Explorer,
AutoCAD. .
1
AutoLISP,
, (. 12.4).
, X Y
.
. 12.4. , P1 P2
420
12
;
, .
(getcorner pt1)
(setq pt2 (getcorner pt1))
(setq pt2 (getcorner pt1 "Enter second point: "))
( ) ,
getcorner,
().
3D-, X, Y Z, Z . Z ,
.
getdist
getdist , - , () . getdist :
(getdist [] [])
, ;
, .
(getdist)
(setq dist
(setq dist
(setq dist
(setq dist
(getdist))
(getdist pt1))
(getdist "Enter distance"))
(getdist pt1 "Enter second point for distance: "))
, . ,
(setq dist (getdist)), . ,
(setq dist (getdist pt1)), (pt1) ,
AutoLISP
421
() . getdist . , , getdist
.
setvar
setvar AutoCAD. .
setvar :
(setvar "_" )
_ AutoCAD;
, .
(setvar
(setvar
(setvar
(setvar
"cmdecho" 0)
"dimscale" 1.5)
"ltscale" 0.5)
"dimcen" -0.25)
2
AutoLISP, ,
. AutoCAD , CHAMFERA
CHAMFERB. CHAMFER () ( )
CHAMFERA CHAMFERB, . ,
,
. 12.5.
(D)
()
. 12.5. , D
422
12
1:
1. .
2. CHAMFERA CHAMFERB.
3. CHAMFER.
x/d = tan a
x = d * (tan a) = d * [(sin a) / (cos a)]
2: AutoLISP
AutoLISP . 3.
, .
; ,
; .
;
(defun c:chamf (/d a)
(setvar "cmdecho" 0)
(graphscr)
(setq d (getdist "\n Enter chamfer distance: "))
(setq a (getangle "\n Enter chamfer angle: "))
(setvar "chamfera" d)
(setvar "chamferb" (* d (/ (sin a) (cos a))))
(command "chamfer")
(setvar "cmdecho" 1)
(princ)
)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
7
(setq d (getdist "\n Enter chamfer distance: "))
getdist , .
setq d.
8
(setq a (getangle "\n Enter chamfer angle: "))
getangle , . setq .
9
(setvar "chamfera" d)
AutoLISP
423
10
(setvar "chamferb" (* d (/ (sin a) (cos a))))
setvar ,
(* d (/ (sin a) (cos a))), chamferb.
11
(command "chamfer")
Command CHAMFER, .
3: , AutoLISP
.lsp, AutoLISP, , 1.
2
AutoLISP, , . 12.6.
, 1 2 D1 D2.
. 12.6. ,
list
, AutoLISP, list 2D- 3D-.
, list (').
(2.5 3 56)
(2.5 3 56)
list, ,
. , list, .
424
12
car , ;
list .
(car
(car
(car
(car
(car
(car
'(2.5 3 56))
'(x y z))
'((15 20) 56))
'( ))
'(list 2 3.0 4))
'(A B C))
2.5
X
(15 20)
nil
2
A
cdr
cdr , . cdr
:
(cdr list)
cdr , , ;
list .
(cdr
(cdr
(cdr
(cdr
'(2.5 3 56))
'(x y z))
'((15 20) 56))
'( ))
(3 56)
(Y Z)
(56)
nil
cadr
cadr ,
: cdr car. cdr , car . cadr :
(cadr list)
AutoLISP
425
(cadr
(cadr
(cadr
(cadr
'(2 3))
'(2 3 56))
'(x y z))
'((15 20) 56 24))
3
3
Y
56
cadr :
(cadr '(x y z)) = (car (cdr '(x y z))) = car (y z))
y.
x
(y)
y
(w)
w
w
textscr
textscr
, .
, .
princ
princ ( ) . , ( )
. princ :
(princ [ ])
(princ)
(princ a)
(princ "Welcome")
( )
( )
( ) Welcome
426
12
terpri
terpri , .. ,
\n. ,
terpri.
3
,
, (. 12.7).
1:
1
3
1. 2 4
2. :
1 2;
2 3;
3 4;
4 1
. 12.7. 1234
427
AutoLISP
X Y 2 4 car cadr.
, car X ,
cadr Y.
X p2
x2 = x3
x2 = car (x3 y3)
x2 = car p3
Y p2
y2 = y1
y2 = cadr (x1 y1)
y2 = cadr p1
X p4
x4 = x1
x4 = car (x1 y1)
x4 = car p1
Y p4
y4 = y3
y4 = cadr (x3 y3)
y4 = cadr p3
p2 p4 :
p2 = (list (car p3) (cadr p1))
p4 = (list (car p1) (cadr p3))
2: AutoLISP
AutoLISP .
3. , .
; ,
;
;
(defun c:RECT1 (/ p1 p2 p3 p4)
(graphscr)
(setvar "cmdecho" 0)
(prompt "RECT1 command draws a rectangle")(terpri)
setq p1 (getpoint "Enter first corner"))(terpri)
setq p3 (getpoint "Enter opposite corner")"(terpri)
(setq p2 (list (car p3) (cadr p1)))
(setq p4 (list (car p1) (cadr p3)))
(command "line" p1 p2 p3 p4 "c")
(setvar "cmdecho" 1)
(princ)
)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
428
12
13
,
. (;). , , .
4
(defun c:RECT1 (/ p1 p2 p3 p4)
defun RECT1.
5
(graphscr)
graphscr
( , ). .
6
(setvar "cmdecho" 0)
7
(prompt "RECT1 command draws a rectangle")(terpri)
prompt , ("RECT1
command draws a rectangle"). terpri , (
) .
8
(setq p1 (getpoint "Enter first corner"))(terpri)
getpoint ,
. setq p1.
9
(setq p3 (getpoint "Enter opposite corner")"(terpri)
getpoint ,
( ). setq p3.
10
(setq p2 (list (car p3) (cadr p1)))
cadr Y 1, car X
p3. list , (..
X Y). setq p2.
AutoLISP
429
11
(setq p4 (list (car p1) (cadr p3)))
cadr Y 3, car X
p1. list , (..
X Y). setq p4.
12
(command "line" p1 p2 p3 p4 "c")
13
(setvar "cmdecho" 1)
setvar CMDECHO 1, .
14
(princ)
princ ( ) . , AutoCAD , . ,
. princ
, .
15
RECT1
.
. ,
, ,
. , , getcorner. :
;
; , getcorner
(defun c:RECT2 (/ p1 p2 p3 p4)
(graphscr)
(setvar "cmdecho" 0)
(prompt "RECT2 command draws a rectangle")(terpri)
(setq p1 (getpoint "Enter first corner"))(terpri)
(setq p3 (getcorner "Enter opposite corner")"(terpri)
(setq p2 (list (car p3) (cadr p1)))
(setq p4 (list (car p1) (cadr p3)))
(command "line" p1 p2 p3 p4 "c")
(setvar "cmdecho" 1)
(princ)
)
430
12
3: , AutoLISP
.lsp,
APPLOAD, 1.
getangle getorient
getangle
getangle ,
, . getangle :
(getangle [point] [prompt])
point ;
prompt , .
(getangle)
(setq ang (getangle))
(setq ang (getangle pt1)), pt1
(setq ang (getangle "Enter taper angle"))
(setq ang (getangle pt1 "Enter second point of angle"))
.
, UNITS
ANGBASE ANGDIR. .
X ( ).
ANGBASE.
, , , , , . ANGDIR.
135- , . 12.8, , ,
getangle , 2,35619 .
AutoLISP
. 12.8, a
. 12.9, a
431
. 12.8,
. 12.9,
getorient
getorient ,
, . getorient :
(getorient [] [])
;
, .
(getorient)
(setq ang (getorient))
(setq ang (getorient pt1))
(setq ang (getorient "Enter taper angle"))
(setq ang (getorient pt1 "Enter second point of angle"))
getorient getangle. ,
. , getorient , X ( ).
432
12
. 12.10, a
. 12.10,
getangle getorient , .
(setq ang (getorient pt1)), pt1 , ,
.
.
180 (3,14159 ). :
= (pi )/180
, .
(getint)
(setq numx (getint))
(setq numx (getint "Enter number of rows: "))
(setq numx (getint "\n Enter number of rows: "))
AutoLISP
433
getreal
getreal , () . ,
, . getreal
:
(getreal [])
, .
(getreal)
(setq realnumx (getreal))
(setq realnumx (getreal "Enter num1: "))
(setq realnumx (getreal "\n Enter num2: "))
getstring
getstring , . ,
, .
getstring :
(getstring [cr] [])
cr , T Nil.
Nil. T, , . , ENTER.
, .
(getstring)
(setq answer (getstring))
(setq answer (getstring "Enter Y for yes, N for no: "))
(setq answer (getstring "\n Enter Y for yes, N for no: "))
256 . , , , , .
getvar
getvar
AutoCAD. :
(getvar "")
AutoCAD.
434
12
(getvar)
(getvar "dimcen")
(getvar "ltscale")
(getvar "limmax")
(getvar "limmin")
0.09
1.0
12.09,9.00
0.00,0.00
polar sqrt
polar
polar ,
(. 12.11). (.. , ANGBASE
ANGDIR ). polar :
(polar )
;
, ;
.
sqrt
sqrt , (. 12.12). sqrt
:
(sqrt )
( ), .
(sqrt
(sqrt
(setq
(setq
(setq
(setq
144)
144.0)
x (sqrt 57.25))
x (sqrt (* 25 36.5)))
x (sqrt (/ 7.5 (cos 0.75)))
hyp (sqrt (+ (* base base) (* ht ht))))
12.0
12.0
7.566373
30.207615
3.2016035
, (. . 12.12).
AutoLISP
435
. 12.11. polar
. 12.12. sqrt
4
AutoLISP,
, (. 12.13). . , .
. 12.13. ,
436
12
1: AutoLISP
AutoLISP -
. AutoLISP 4:
; ,
; .
;
(defun dtr (a)
(* a (/ pi 180.0)
)
(defun c:trgcir (/ r c d p1 p2 p3)
(setvar "cmdecho" 0)
(graphscr)
(setq r (getdist "\n Enter circle radius: "))
(setq c (getpoint "\n Enter center of circle: ")
(setq d (/ r (sin(dtr 30))))
(setq p1 (polar c (dtr 210) d)
(setq p2 (polar c (dtr 330) d)
(setq p3 (polar c (dtr 90) d)
(command "circle" c r)
(command "line" p1 p2 p3 "c")
(setvar "cmdecho" 1)
(princ)
)
2: AutoLISP
.lsp, APPLOAD, 1.
3
AutoLISP,
123. (12) (. 12.14). ,
1, L1 .
. 12.14. ,
AutoLISP
437
4
,
. ,
, ,
(. 12.15).
. 12.15. L W
, .
(itoa
(itoa
(setq
(setq
89)
-356)
intnum 7) (itoa intnum)
intnum 345) (setq intstrg (itoa intnum))
89
356
7
345
rtos
rtos
. rtos :
(rtos )
, .
(rtos
(rtos
(setq
(setq
50.6)
-30.0)
realstrg (rtos 5.25))
realnum 75.25) (setq realstrg (rtos realnum))
50.6
30.0
5.25
72.25
438
12
;
(, ..);
.
strcase
strcase , ,
. strcase :
(strcase [true]),
, ;
true , .
true .
nil, .
nil, .
prompt
prompt . .
prompt :
(prompt ),
, .
prompt
.
AutoLISP
439
5
, r1 r2, , d . , ,
X a, . 12.16.
. 12.16. ,
1:
r1;
r2;
d;
a;
c1.
r1;
r2;
, .
1. x1 x2.
2. ang.
3. 2 1.
4. 1, 2, 3 4.
5. r1 1.
6. r2 2.
7. , 1 2, 3 4.
440
12
x1 = r2 r1
x2 = SQRT [d^2 (r2 r1)^2]
tan ang = x1 / x2
ang = atan (x1 / x2)
ala = 90 + a + ang
alb = 270 + a ang
a2a = 90 + a + ang
a2b = 270 + a ang
2: AutoLISP
AutoLISP
. 4.
,
.
;
;,
;
;
(defun dtr (a)
(* a (/ pi 180.00))
)
; dtr
; belt ,
(defun c:belt(/ r1 r2 d a c1 x1 x2 c2 p1 p2 p3 p4)
(setvar "cmdecho" 0)
(graphscr)
(setq r1(getdist "\n Enter radius of small pulley: "))
(setq r2(getdist "\n Enter radius of larger pulley: "))
(setq d(getdist "\n Enter distance between pulleys: "))
(setq a(getangle "\n Enter angle of pulleys: "))
(setq c1(getpoint "\n Enter center of small pulley: "))
(setq x1 (- r2 r1))
(setq x2 (sqrt (- (* d d) (* (- r2 r1) (- r2 r1)))))
(setq ang (atan (/ x1 x2)))
(setq c2 (polar c1 a d))
(setq p1 (polar c1 (+ ang a (dtr 90)) r1))
(setq p3 (polar c1 (- (+ a (dtr 270)) ang) r1))
(setq p2 (polar c2 (+ ang a (dtr 90)) r2))
(setq p4 (polar c2 (- (+ a (dtr 270)) ang) r2))
;
;
(command "circle" c1 p3)
(command "circle" c2 p2)
(command "line" p1 p2 "")
(command "line" p3 p4 "")
(setvar "cmdecho" 1)
(princ))
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
AutoLISP
441
5
(defun dtr (a)
6
(* a (/ pi 180.0))
(pi) 180,
( 180 ).
10
(defun c:belt(/ r1 r2 d a c1 x1 x2 c2 p1 p2 p3 p4)
defun, , belt,
, .
18
(setq x1 (- r2 r1))
setq, , ,
(- r2 r1), x1.
19
(setq x2 (sqrt (- (* d d) (* (- r2 r1) (- r2 r1)))))
r2 r1 ( (- r2 r1)),
( (* (- r2 r1) (- r2 r1)).
( (sqrt (- (* d d) (* (- r2 r1) (- r2 r1)))). setq x2.
20
(setq ang (atan (/ x1 x2)))
(atan (/ x1 x2) ,
x1 x2. setq ang.
21
(setq c2 (polar c1 a d))
polar, , c2, 1 d
, .
22
(setq p1 (polar c1 (+ ang a (dtr 90)) r1))
442
12
, (90 + ) (
(+ ang a (dtr 90))).
28
(command "circle" c1 p3)
command, ,
CIRCLE, 1
, 3.
30
(command "line" p1 p2 "")
command, ,
LINE, , p1 p2.
("") ,
LINE.
3: AutoLISP
.lsp, , , 1.
5
AutoLISP,
, . 12.17. , .
. 12.17. ,
-
- ,
, . - , ,
, , ,
. - ,
, . , -
AutoLISP
443
,
. , . . 12.18 ,
-.
. 12.18. , -
( ),
, .
, (< x y) , . .
444
12
if
, if (. 12.19) (then); (nil),
if (else). :
(if then [else]),
;
then , , (T);
else , , (nil).
. 12.19. if
(if (= 7 7) ("true"))
true
false
Yes
(setq num1 8)
(setq num2 10)
(if (> num1 num2)
(setq x (- num1 num2))
(setq x (- num2 num1))
)
AutoLISP
445
6
AutoLISP,
. ,
.
1: -
(num1)
(num2)
x = num1 num2
x = num2 num1
num1 > num2,
x = num1 num2 (If num1 > num2 then x = num1 num2)
num1 < num2,
x = num2 num1 (If num1 < num2 then x = num2 num1)
. 12.20 -, .
.
. 12.20. - 6
2: AutoLISP
AutoLISP
. 6.
, .
446
12
;
; .
;
(defun c:subnum()
(setvar "cmdecho" 0)
(setq num1 (getreal "\n Enter first number: "))
(setq num2 (getreal "\n Enter second number: "))
(if (> num1 num2)
(setq x (- num1 num2))
(setq x (- num2 num1))
)
(princ)
(setvar "cmdecho" 1)
(princ)
)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
8
(if (> num1 num2)
9
(setq x (- num1 num2))
10
(setq x (- num1 num2))
11
)
if.
3: AutoLISP
.lsp, ,
APPLOAD, , 1.
AutoLISP
447
7
AutoLISP,
(. 12.21). , ( ).
.
1: -
. 12.21 -.
.12.21. - 7
2: AutoLISP
AutoLISP 7.
; .
(defun c:cmdnum()
(setvar "cmdecho" 0)
(setq num1 (getreal "\n Enter first number: "))
(setq num2 (getreal "\n Enter second number: "))
(prompt "Do you want to multiply or divide? Enter M or D: ")
(setq ans (strcase (getstring)))
(if (= ans "M")
(setq x (* num1 num2))
)
(if (= ans "D")
(setq x (/ num1 num2))
)
(if (and (/ = ans "D")(/ = ans "M"))
(prompt "Sorry! Wrong entry/ Try again")
(princ x)
)
(setvar "cmdecho" 1)
(princ)
)
448
12
3: AutoLISP
.lsp, , APPLOAD. , , 1.
progn
progn if . progn :
(progn 1 2 ...)
if ( ,
). , progn, if, .
, .
(defun c:IFPRGN()
(setq p1(getint " "))
(if (> = p1 5)
(progn (command "line" "2,2" "3,3" "")
(command "rec" "3,3" "6,6"))
(progn (command "circle" "3,3" 1)
(command "line" "3,3" "5,5" ""))
)
)
;
while
while (. 12.22) .
( nil), , while, ,
nil. while :
(while _ ),
_ , ;
, ,
nil.
AutoLISP
449
. 12.22. while
8
AutoLISP,
n- . n .
,
(. 12.23).
. 12.23. - 8
1: -
n
n (xn)
450
12
1. : t = 1 c =1.
2. t x t.
3. , c n.
2: AutoLISP
AutoLISP 8.
; n-
;
(defun c:npower()
(setvar "cmdecho" 0)
(setq x(getreal "\n Enter a number: "))
(setq n(getint "\n Enter Nth power-integer number: "))
(setq t 1) (setq c 1)
(while (<= c n)
(setq t (* t x))
(setq c (1 + c))
)
(princ t)
(setvar "cmdecho" 1)
(princ)
)
3: AutoLISP
, , APPLOAD.
9
AutoLISP,
, (. 12.24).
. 12.24. ,
AutoLISP
451
, , ,
.
1: AutoLISP
; ,
;
;
(defun c:bc1()
(graphscr)
(setvar "cmdecho" 0)
(setq cr(getpoint "\n Enter center of Bolt-Circle: "))
(setq d(getdist "\n Dia of Bolt-Circle: "))
(setq n(getint "\n Number of holes in Bolt-Circle: "))
(setq a(getangle "\n Enter start angle: "))
(setq dh(getdist "\n Enter diameter of hole: "))
(setq inc(/ (* 2 pi) n))
(setq ang 0)
(setq r (/ dh 2))
(while (< ang (* 2 pi))
(setq p1 (polar cr (+ a inc) (/ d 2)))
(command "circle" p1 r)
(setq a (+ a inc))
(setq ang (+ ang inc))
)
(setvar "cmdecho" 1)
(princ)
)
2: AutoLISP
, , APPLOAD.
repeat
repeat n- ,
(. 12.25). n .
repeat :
repeat n,
n , , .
(repeat 5
(setq x (+ x 10))
452
12
. 12.25. repeat
AutoCAD AutoLISP
AutoCAD. , - AutoLISP,
. ,
Startup Suit,
Load/Unload Application (ToolsLoad Application ToolsAutoLISPLoad). Load/Unload Application
.
10
AutoLISP,
. ,
, (. 12.26).
. 12.26. - 10
AutoLISP
453
AutoLISP 10.
;
; , repeat.
(defun c:concir()
(graphscr)
(setvar "cmdecho" 0)
(setq c (getpoint "\n Enter center point of circles: "))
(setq n (getint "\n Enter number of circles: "))
(setq r (getdist "\n Enter radius of first circle: "))
(setq d (getdist "\n Enter radius increment: "))
(repeat n
(command "circle" c r)
(setq r (+ r d))
)
(setvar "cmdecho" 1)
(princ)
)
,
.
1. AutoLISP ________.
2. AutoLISP ________.
3. ________ .
4. AutoLISP ________ .
5. setq,
________.
6. LOAD
AutoLISP ________.
7. LISP ________.
8. strcase , , ________.
9. progn ________.
10. setq ________.
454
12
.
1. :
Command: (+ 2 30 5 50)
Command: (+ 2 30 4 55.0)
( 20 40)
(30.0 40.0)
(* 72 2 3 2.0)
(* 7 5.5)
(/ 299 5)
(/ 200 9.0)
(1 9)
(1 18.5)
(abs 90)
(abs 27.5)
(sin pi)
(sin 1.5)
(cos pi)
(cos 1.2)
(atan 1.1 0.0)
(atan 0.4 0.0)
(antgos 1.5708 0 5)
(antgos 1.5708 0 3)
(< "x" "y")
(>= 80 90 79)
________.
________.
________.
________.
________.
________.
________.
________.
________.
________.
________.
________.
________.
________.
________.
________.
________ .
________ .
________.
________.
________.
________.
2. ________ , X Y ( X, Y Z).
3. ________ AutoCAD
AutoLISP.
4. AutoLISP AutoCAD
. (/)
5. getdist , ________ ,
.
6. ________ AutoCAD.
________.
7. cadr ,
: ________ ________.
8. ________ , .. , \n.
9. ________ ,
, .
10. ________ , .
AutoLISP
455
11. ________ , .
, , .
12. _________ AutoCAD.
13. ________ ,
.
14. ________ ,
.
15. ________
.
16. if (> num1 num2). , if ________; , ________.
17. _______ if
.
18. while . ( nil), , while, ________ ,
________.
19. repeat n- ,
. n . (/)
6 ()
AutoLISP, 1 D1, D2
D3 (. 12.27). ,
1 D1, D2 D3.
. 12.27. D1, D2 D3
456
12
7 ()
AutoLISP,
1 2 (. 12.28). 12
. 1 2 L. D1
(D1 = L/4).
. 12.28. ,
8 ()
AutoLISP,
123 (.12.29).
, 1,
L1 .
. 12.29.
AutoLISP
457
9 ()
,
. , (2R), ,
, (. 12.30).
. 12.30. L R
10 ()
, , (N) , (. 12.31).
. 12.31. N- , S
1 , 2 AutoCAD, 3 /=, 4 ,
5 , 6 , 7 APPLOAD, 8
, 9 if, 10 .
13
Visual LISP
, :
Visual LISP AutoCAD;
Visual LISP;
Visual LISP;
AutoLISP;
Visual LISP;
Visual LISP;
Visual LISP
.
460
13
Visual LISP
Visual LISP AutoCAD. AutoCAD 2.0
1980- . AutoLISP
, . , ,
, ,
. , AutoLISP . , ,
AutoCAD . ,
,
. ,
. ,
.
, AutoLISP.
Visual LISP . , ,
, . () . , ,
, .
Visual LISP , . ,
- AutoCAD
.
, . Visual LISP AutoLISP. Visual
LISP, AutoCAD, .
, AutoCAD, Visual LISP.
Visual LISP
Visual
LISP, AutoLISP. , Visual LISP, Visual LISP,
.
Visual LISP
: ToolsAutoLISPVisual LISP Editor
: VLIDE
1. AutoCAD.
Visual LISP
461
. Visual LISP . , .
, Visual LISP.
. Visual LISP.
: Debug, Edit, Find, Inspect Run. .
- , , . .
. Visual LISP Console Visual LISP. ,
. ,
Visual LISP, AutoLISP Visual
LISP . , , ($) (+ 2 9.5),
<Enter>. Visual LISP
.
462
13
. -
, , Visual LISP.
Visual LISP
1. New File File. , . 13.2.
Untitled-0, .
2. , Visual LISP.
3. ,
Visual LISP ,
AutoLISP ( Notepad):
;;;
(defun tr1 ()
(setq p1(list 2 2))
(setq p2(list 6.0 3.0))
(setq p3(list 4.0 7.0))
(command "line" p1 p2 p3 "c")
)
Visual LISP
463
1. Visual LISP, .
2. Tools Load Text in Editor. , Load active edit window, Tools. Visual LISP Console
. -
.
3. , (tr1)
( _$). ,
. , .
, AutoCAD,
Activate AutoCAD,
View. AutoCAD.
AutoCAD TR1 .
AutoCAD ,
.13.4.
464
13
. 13.4.
1 ()
AutoLISP, . ,
( )
(. 13.5).
. 13.5. , 1
Visual LISP
465
AutoLISP
Visual LISP AutoLISP,
, .
1. AutoCAD, Visual LISP, ToolsAutoLISPVisual LISP Editor. , VLIDE .
2. Visual LISP, Open File File.
Open file to edit/view.
3. AutoLISP, , Open (). Visual LISP.
4. , Format
edit window Tools.
5. , Load active edit window Tools Load Text in Editor
Tools.
6. , (_$), Visual LISP Console,
<Enter>. nil, , .
Visual LISP
Visual LISP Visual LISP. ,
Visual LISP . ,
(sqrt 37.2) ( _$) <Enter>, Visual LISP 6,09918.
, (setq x 99.3), (+ 38 23.44), (- 23.786 35),
(abs -37.5) (sin 0.333) .
. 13.6, ($).
Visual LISP
1. Visual LISP , <Enter>. Visual LISP
. ,
($).
_$ (setq x 37.5) (setq y (/ x 2))
466
13
4. , (_$) <Tab>.
<Tab> . , ,
Visual LISP. ,
<Tab>
, . <Shift+Tab>.
5. , (.. _$),
<Esc>. , <Shift+Esc> , , ,
. . ,
(setq x 15), <Esc>, . ,
<Shift+Esc> (setq x 15) , .
Visual LISP
467
6. <Enter> ,
. ,
, (sin,
( _$), <Enter>. Visual LISP
, Console, , . , .
7. <Shift+F10>,
,
. 13.8. : Cut, Copy, Paste, Clear Console Window, Find,
Inspect, Add Watch, Apropos Window, Symbol Service,
Undo, Redo, AutoCAD Mode Toggle Console Log.
8. Visual LISP
- ,
Visual LISP. , ,
Help Tools. Visual LISP
,
(. 13.9).
. 13.8.
468
13
. 13.9. -
9. Visual LISP ,
Visual LISP Console, (.log). ,
Toggle Console Log File Toggle Console Log
. Visual LISP Console .
10. , Visual LISP
, . , ,
, .
, , , - .
, .
11. , AutoLISP Visual LISP , , Visual
LISP, AutoCAD.
, AutoCAD Mode
Tools. , ,
<Tab>. AutoCAD,
<Enter>. AutoCAD.
Visual LISP
469
2 ()
Visual LISP (
_$):
(+ 2 30 4 38.50)
(- 20 39 32)
(* 2.0 -7.6 31.25)
(/ -230 -7.62 2.15)
(sin 1.0472)
(atan -1.0)
(< 3 10)
(<= -2.0 0)
(setq variable_a 27.5)
(setq variable_b (getreal "Enter a value: "))
Visual LISP
Visual LISP
. , .
, , Visual LISP , .
, Visual LISP . ,
Visual LISP AutoLISP,
, .
Visual LISP.
Visual LISP , Visual LISP. , LISP, DCL
SQL. Visual LISP (. 13.10).
, :
Visual LISP
( )
Visual LISP
, .
Visual LISP .
, :
470
13
Visual LISP
'
"
\n
:
:
:
:
:
:
. 13.10. AutoLISP
-
Visual LISP -
, Visual LISP. ,
Help Tools. Visual LISP
, .
Visual LISP
471
<Shift+F10>, ,
. 13.11.
. 13.11. ,
Cut
Copy
Paste
Find
Go to Last Edited
Toggle Breakpoint
Inspect
Inspect
Add Watch
Add Watch
Apropos Window
Apropos Window
Symbol Service
Symbol Service
Undo
Redo
Undo
Visual LISP
, ,
Visual LISP Formatter. AutoLISP , . ,
.
472
13
, , . .
, , . , Format edit window,
Tools, Format code in Editor Tools.
, Format
selection Tools Format code in Selection
Tools. Tools Tools . 13.12.
Visual LISP , . , Visual LISP.
; Single-Semicolon
;; Current-Column
;;; Heading 0-Column
;| Inline |;
;_ Function-Closing
,
SingleSemicolon comment indentation
,
,
,
, Insert form-closing comment
Visual LISP
473
. 13.13 .
. , ,
. , , .
. 13.13. ,
, Format options, . 13.14.
, ToolsEnvironment OptionsVisual LISP Format Options. , More options (. 13.15).
, . , .
,
.
. Visual LISP
, . ,
Debug. , Toolbars, Toolbars View,
Debug. Apply ,
Close. Debug . . 13.16
.
474
13
. 13.16. Debug
Visual LISP
475
1. , Visual LISP,
triang2.lsp.
;;;
(defun tr2 ()
(setq p1 (getpoint "\n Enter first point p1: "))
(setq p2 (getpoint "\n Enter second point p2: "))
(setq p3 (getpoint "\n Enter third point p3: "))
(command "arc" p1 p2 p3)
(command "line" p1 p2 p3 "c")
)
AutoCAD.
(Enter
first point p1: Enter second point p2:).
, Visual LISP. , , , ,
. 13.17.
476
13
, . (. 13.18)
. .
(setq p3 (getpoint "\n Enter third point p3: ")).
7. Step into .
(setq p3 (getpoint "\n Enter third point p3: ")),
. 13.19.
8. Step into .
AutoCAD, (Enter
third point p3:). Visual
LISP. . (getpoint "\n Enter third point p3: ")).
9. , Step into .
,
(getpoint "\n Enter third point p3: ")).
10. Step into . , .
11. , Step over, Debug, Step over
Debug.
<Shift+F8>.
12. Step over ,
. , AutoCAD.
Visual LISP
477
AutoLISP
1.
2.
3.
4.
.
.
.
.
1
LISP,
I- ( ), . 13.20.
1. 1, , ,
.
1:
, ,
, .
, .
P1 ;
L ;
W ;
T1 ;
T2 .
(I- ), . 13.20.
. 13.20. 1
478
13
: 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11 12.
2: Visual LISP
Visual LISP. ToolsAutoLISP
Visual LISP Editor VLIDE .
, New File File. :
(defun isec ()
(setq p1 (getpoint "\n Enter the starting point of the I-section: ")
l (getdist "\n Enter the length of the I-section: ")
w (getdist "\n Enter the width of the I-section: ")
t1 (getdist "\n Enter the thickness of the flange: ")
t2 (getdist "\n Enter the thickness of the web: ")
p2 (list (+ (car p1) w) (cadr p1))
p3 (list (car p2) (+ (cadr p2) t1))
p4 (list (- (car p3) (/ (- w t2) 2)) (cadr p3))
p5 (list (car p4) (+ (cadr p4) (-l (* 2 t1))))
p6 (list (car p3) (cadr p5))
p7 (list (car p6) (+ (cadr p6) t1))
p8 (list (car p1) (+ (cadr p1) l))
p9 (list (car p8) (- (cadr p8) t1))
p10 (list (- (car p5) t2) (cadr p5))
p11 (list (- (car p4) t2) (cadr p4))
p12 (list (car p1) (cadr p11))
)
(command "PLINE" p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p1 "")
)
3: Visual LISP
Save Save As File
isec.lsp. , Load Text in
Editor Tools Load active edit window,
Tools. Visual LISP Console
. Visual LISP Console , , Tile Horizontally Window.
- , .
, , . , Format Edit Window,
Tools. ,
. , (isec) _$. , . <Enter>,
AutoCAD , .
, I- , .
Visual LISP
479
1. , Notepad. , APPLOAD
, , AutoLISP.
2. , ,
, MIRROR.
, , MIRROR, .
480
13
2
Visual LISP, (. 13.21) ( , 1).
: (vpoint v), (h) (a)
.
. 13.21. , 1
1:
, 1, , (Vpoint),
(Extrusion Height) (Angle of Extrusion).
, ,
. ( ), v, h a.
getreal,
, . getangle ,
. ,
EXTRUDE, .
2: Visual LISP
Visual LISP, Tools AutoLISP Visual LISP
Editor VLIDE .
, New File File. ,
, LISP 1
( ).
(defun dtr (a)
(* a (/ pi 180.0)))
(defun isec3d ()
(setq p1 (getpoint "\n Enter the starting point of the I-section: ")
l (getdist "\n Enter the length of the I-section: ")
Visual LISP
481
3: Visual LISP
Save Save As File
isec3d.lsp. , Load
Text in Editor Tools Load active edit window,
Tools. Visual LISP Console
. ,
(isec3d) _$. , .
<Enter>, AutoCAD , ,
, , , , . , AutoCAD
, .
Toggle breakpoint,
Debug. , ,
.
482
13
3
Visual LISP, C-
, . 13.22.
,
, , .
1: Visual LISP
Visual LISP,
ToolsAutoLISPVisual LISP Editor VLIDE .
, New File
File.
LISP , , Notepad. ,
C- .
. 13.22. C-
;; C-
(defun csec ()
(setq p1 (getpoint "\n Enter the point: "))
(setq L (getdist "\n Enter the length: "))
(setq W (getdist "\n Enter the width: "))
(setq t1 (getdist "\n Enter the thickness of flange: "))
(setq t2 (getdist "\n Enter the thickness of web: "))
(setq p2 (list (+ (car p1) w) (cadr p1)))
(setq p3 (list (car p2) (+ (cadr p2) t1)))
(setq p4 (list (- (car p3) (- w t2) (cadr p3)))
(setq p5 (list (car p4) (+ (cadr p4) (- L (* 2 t1)))))
(setq p6 (list (+ (car p5) (- w t2)) (cadr p5)))
(setq p7 (list (+ (car p5) (+ (cadr p6) t1)))
(setq p8 (list (car p1) (cadr p7)))
(command "PLINE" p1 p2 p3 p4 p5 p6 p7 p8 "c")
)
2: Visual LISP
Save Save As File
csec.lsp. , Load Text
in Editor Tools Load active edit window, Tools. Visual LISP Console
. ,
(csec) _$. , .
3 ()
Visual LISP, - , . 13.23. , , (L), (W)
(t1 t2) .
Visual LISP
483
. 13.23. - 3
4 ()
Visual LISP, T- , ,
3. , (vpoint),
.
5 ()
Visual LISP,
L- , . 13.24.
, , ,
.
. 13.24. L- 5
484
13
4
Visual LISP, , .
. 13.25.
. 13.25.
2: Visual LISP
Visual LISP, ToolsAutoLISPVisual LISP Editor
VLIDE . ,
New File File. LISP
, , Notepad. 4. ( LISP
, , .)
;
;
;
(defun TRANA ()
(graphscr)
(setvar "cmdecho" 0)
(setq L (getdist "\n Enter length of bottom rectangle: "))
(setq W (getdist "\n Enter width of bottom rectangle: "))
(setq H (getdist "\n Enter height of transition: "))
(setq L1 (getdist "\n Enter length of top rectangle: "))
(setq W1 (getdist "\n Enter width of top rectangle: "))
(setq
(setq
(setq
(setq
(setq
(setq
x1
y1
d1
d2
p1
p2
(/ (- w w1) 2))
(/ (a l 11) 2))
(sqrt (+ (* h h) (* x1 x1))))
(sqrt (+ (* d1 d1) (* y1 y1))))
(sqrt (- (* d2 d2) (* y1 y1))))
(sqrt (- (* d2 d2) (* x1 x1))))
Visual LISP
485
(setq t1 (+ l1 y1))
(setq t2 (+ l w))
(setq t3 (+ l x1 w1))
(setq t4 (+ l x1))
(setq pt1 (list 0 0))
(setq pt2 (list y1 p1))
(setq pt3 (list t1 p1))
(setq pt4 (list l 0))
(setq pt5 (list t4 p2))
(setq pt6 (list t3 p2))
(setq pt7 (list t2 0))
(command "layer" "make" "ccto" "c" "l" "ccto" "")
(command "line" pt1 pt2 pt3 pt4 pt5 pt6 pt7 "c")
(setq sf (/ (+ l w) l2))
(setvar "dimscale" sf)
(setq c1 (list 0 (- 0 (+ 0.75 sf))))
(setq c7 (list (- 0 (+ 0.75 sf) 0)))
(setq c8 (list (- 1 (+ 0.75 sf) 0)))
(command "layer" "make" "cctd" "c" "2" "cctd" "")
(command "dim" "hor" pt1 pt2 c1 "" "base" pt3 "" "base" pt4 "" "exit")
(command "dim" "hor" pt4 pt5 c1 "" "base" pt6 "" "base" pt7 "" "exit")
(command "dim" "vert" pt1 pt2 pt2 "" "exit")
(command "dim" "vert" pt4 pt5 pt5 "" "exit")
(command "dim" "aligned" pt1 pt2 c7 "" "exit")
(command "dim" "aligned" pt4 pt5 c8 "" "exit")
(setvar "cmdecho" 1)
(princ))
2: Visual LISP
Save Save As File
trana.lsp. , Load Text
in Editor Tools Load active edit window, Tools. Visual LISP Console
. ,
(trana) _$. , .
486
13
5
Visual LISP, , . 13.26, .
. 13.26.
1: Visual LISP
Visual LISP 5.
;
;
; DTR
(defun DTR (a)
(* PI (/ A 180.0))
)
; RTD
(defun RTD (a)
(* a (/ 180.0 pi))
)
(defun tan (a)
(/ (sin a) (cos a))
)
(defun cone-lp ()
(graphscr))
(setvar "cmdecho" 0)
(setq r2 (getdist "\n Enter outer radius at larger end: ")
(setq r1 (getdist "\n Enter inner radius at smaller end: ")
(setq t1 (getdist "\n Enter sheet thickness: ")
(setq a (getangle "\n Enter cone angle: ")
; ,
;
(setq x0 0)
(setq y0 0)
Visual LISP
487
(setq sf (/ r2 3))
(setvar "dimscale" sf)
(setq ar a)
(setq tx (/ (* t1 (sin ar)) 2))
(setq rx2 (- r2 tx))
(setq rx1 (+ r1 tx))
(setq w (* (* 2 pi) (cos ar)))
(setq rl1 (/ rx1 (cos ar)))
(setq rl2 (/ rx2 (cos ar)))
; x
;
(setq xl (+ x0 rl1)
x3 (+ x0 rl2)
x2 (- x0 (* rl1 (cos (- pi w))))
x4 (- x0 (* rl2 (cos (- pi w))))
)
; y
;
(setq y1 y0
y3 y0
y2 (+ y0 (* rl1 (sin (- pi w))))
y4 (+ y0 (* rl2 (sin (- pi w))))
)
(setq p0 (list x0 y0)
p1 (list x1 y1)
p2 (list x2 y2)
p3 (list x3 y3)
p4 (list x4 y4)
)
(command "layer" "make" "ccto" "c" "1" "ccto" "")
(command "arc" p1 "c" p0 p2)
(command "arc" p3 "c" p0 p4)
(command "line" p1 p3 "")
(command "line" p2 p4 "")
(setq
(setq
(setq
(setq
f1
f2
d1
d2
(/ r2 24))
(/ r2 2))
(list (+ x3 f2) y3))
(list x0 (- y0 f2)))
488
13
2: Visual LISP
Save Save As File
cone-lp.lsp. , Load
Text in Editor Tools Load active edit window,
Tools. Visual LISP Console
. ,
(cone-lp) _$. ,
.
, . , ,
. ,
.
, .
:
1. , , Visual LISP.
Open File File.
2. , Load Text in Editor Tools Load active edit window, Tools.
3. , (tr2) Visual
LISP ( _$). , . , . p1, p2 p3
Watch window,
View.
4. , Visual LISP p1, Watch window, View.
Add Watch, Watch.
1. Watch 1 (X, Y Z).
5. p2 (, ) Add Watch, Watch.
Add Watch OK.
Watch, . 13.27.
, .
Visual LISP
489
,
Visual LISP
, Visual LISP.
Visual LISP, ..
.
Malformed list ( )
. .
Malformed string ( )
, .
Null function ( )
, .
Too few arguments ( )
, .
String too long ( )
SETVAR .
490
13
Visual LISP
491
492
13
,
.
1. Visual LISP ________ ________.
2. ________ , , .
3. ________ , .
4. ________,
View.
5. ________, Debug.
6. Visual LISP?
1. ____________________
2. ____________________
7. Visual LISP.
1. ____________________
2. ____________________
3. ____________________
4. ____________________
8. Visual LISP.
1. ____________________
2. ____________________
3. ____________________
4. ____________________
5. ____________________
.
1. Visual LISP.
1. ____________________
2. ____________________
Visual LISP?
AutoLISP Visual LISP?
Visual LISP Console?
Visual LISP LISP?
, .
6. LISP ,
Visual LISP?
7. ?
8. Visual LISP :
____________
LISP ______________
_______________
_______________
2.
3.
4.
5.
Visual LISP
493
6 ()
Visual LISP, , . 13.28. ,
,
. , .
. 13.28. 6
7 ()
Visual LISP,
, . 13.29. ,
, .
. 13.29. 7
494
13
8 ()
Visual LISP, , . 13.30. , , ,
.
VPOINT,
.
. 13.30. 8
9 ()
Visual LISP, , . 13.31, . , L5 = D1, L3 = 1,5*D1, L2 = 10*D1, L1 = L2D1,
L4 = L3+D1.
. 13.31. 9
10 ()
Visual LISP,
, . 13.32. , P0 ( -
Visual LISP
495
. 13.32. 10
11 ()
Visual LISP,
, (. 13.33).
,
.
. 13.33. ,
12 ()
Visual LISP,
, . 13.34. ,
.
496
13
. 13.34. , .
,
1 , , 2 , 3 ,
4 Watch Window, 5 Toggle Breakpoint, 6 ToolsAutoLISPVisual LISP Editor, VLIDE,
7 , , , 8 Standard, Tools,
Debug, View.
14
Visual LISP:
, :
Visual LISP;
ssget, sslength, ssname, ssadd,
ssdel, entget, assoc, cons, subst, entnext, entlast
entmode;
;
.
498
14
Visual LISP
, . ,
Visual LISP , . , ,
, - .
AutoCAD,
,
, .
, . ,
,
Visual LISP Programmers Reference, Autodesk.
ssget
ssget ,
. (, , , ..) , . ssget
:
(ssget [_] [1 2])
_ (w, c, l, p ..);
1 ;
2 .
(ssget)
(ssget "L")
(ssget "p")
(ssget "w" (list 0 0)
(list 12.0 9.0))
(ssget "c" pt1 pt2))
(
0,0 12.0,9,0)
( pt1 pt2)
1
Visual LISP, , ( limmin limmax). ssget.
, .
1: Visual LISP
Visual LISP, ToolsAutoLISPVisual LISP Editor
VLIDE . Visual
LISP, New File File. ,
.
499
Visual LISP:
Visual LISP 1.
, .
;
;, .
;
(defun delall ()
(setvar "cmdecho" 0)
(setq pt1 (getvar "limmin"))
(setq pt2 (getvar "limmax"))
(setq ss1 (ssget "c" pt1 pt2))
(command "erase" ss1 "")
(command "redraw")
(setvar "cmdecho" 1)
(princ)
)
1
2
3
4
5
6
7
8
9
10
11
12
13
13
,
. , (;).
4
(defun delall ()
defun delall.
6
(setq pt1 (getvar "limmin"))
getvar
(limmin), setq pt1.
7
(setq pt2 (getvar "limmax"))
getvar
(limmax), setq pt2.
8
(setq ss1 (ssget "c" pt1 pt2))
ssget ,
, pt1 pt2. ( .) setq ss1.
9
(command "erase" ss1 "")
command ERASE,
, ss1.
500
14
10
(command "redraw")
command REDRAW,
, .
2: Visual LISP
Save Save As File
delall.lsp. , Load
Text in Editor Tools Load active edit window,
Tools. Visual LISP . - , .
,
13 Visual LISP. , , 13
. , , Format Edit Window,
Tools.
, (delall)
_$ <Enter>. ,
. ,
AutoCAD, Activate AutoCAD Window.
, , , .
ssget "X"
ssget "X" , . , . ssget "X"
:
(ssget "X" _)
X ssget;
_ ,
.
, TEXT,
,
TEXT, ROMANC
, LINE,
, ,
OBJECT
Visual LISP:
501
ssget "X" , . , ,
OBJECT, . -,
, -,
OBJECT.
(ssget "X" (list (cons 0 "LINE")(cons 8 "OBJECT")))
ssget "X"
AutoCAD, ssget "X":
0
2
3
6
7
8
38
39
62
66
210
,
DIMSTYLE
2
Visual LISP, , . , , ssget filter
(ssget "X"). , .
1: Visual LISP
Visual LISP, ToolsAutoLISPVisual LISP Editor
VLIDE . Visual
LISP, New File File. ,
.
Visual LISP 2.
; ,
; .
;
(defun deltext ()
(setvar "cmdecho" 0)
(setq layer (getstring "\n Enter layer name: "))
(setq ss1 (ssget "x" (list (cons 8 layer) (cons 0 "text"))))
(command "erase" ss1 "")
(command "redraw")
(setvar "cmdecho" 1)
(princ))
502
14
2: Visual LISP
Save Save As File
deltext.lsp. , Load
Text in Editor Tools Load active edit window, Tools. Visual LISP
. , . , (deltext) _$
<Enter>. ,
. , AutoCAD,
Activate AutoCAD Window. , , , .
sslength
sslength ,
, , . sslength :
(sslength _)
_ .
(setq
(setq
(setq
(setq
ss1
num
ss2
num
(ssget))
(sslength ss1))
(ssget "1"))
(sslength ss2))
,
, ss1
(1), ss2. ss2
ssname
ssname , . ,
. ssname :
(ssname _ )
_ ;
, .
,
ss1
0, ssname ,
. 1,
, ..
Visual LISP:
503
ssadd
ssadd ()
. :
(ssadd _ _)
ssadd , , . ( _)
, .
(setq all(ssget))
Selection objects: All
Selection set = 30
All, , , .
.
(setq b(entsel))
Select objects: ,
.
(<entity name: 1ffo5a0> (10.977 4.99 0))
(setq c(car b))
entity name: 1ffo5a0
(setq d(ssadd c all))
(command "erase" all "")
ssdel
ssdel . , ssadd.
ssdel :
(ssdel _ _)
, ,
. .
(setq all(ssget))
Select objects: All
(setq b(entsel))
Select objects: , ,
.
(<entity name: 1ffo5a0> (2.455 5.99 0))
(setq c(car b))
entity name: 1ffo5a0
(setq d(ssdel c all))
selection set = 36
(command "erase" all "")
,
.
504
14
entget
entget .
ssname. entget :
(entget _)
_ , ssname.
(setq
(setq
(setq
(setq
ss1 (ssget))
index 0)
entname (ssname ss1 index))
entlist (entget entname))
, entname, entlist.
assoc
assoc , . assoc :
(assoc _)
AutoCAD;
_ .
(setq
(setq
(setq
(setq
(setq
ss1 (ssget))
index 0)
entname (ssname ss1 index))
entlist (entget entname))
entasso (assoc 0 entlist))
, 0, , entlist.
cons
cons .
:
(cons _ _)
_ ;
_ .
(X .Y)
((X .Y) Z)
((X Y Z) 0.5 5.0)
Visual LISP:
505
subst
subst . , .
subst :
(subst _ _ )
_ , ;
_ , ;
.
entmod
entmod , . :
(entmod _)
_ .
3
Visual LISP,
. ,
.
1:
,
1. ; ssname, .
2. entget, .
3. assocc , 0.
4. cons, ,
.
506
14
5. subst .
6. , entmod.
2: Visual LISP
Visual LISP, ToolsAutoLISPVisual LISP Editor
VLIDE . Visual
LISP, New File File. ,
. Visual LISP 3.
; .
;
; .
;
(defun chgtext1 ()
(setvar "cmdecho" 0)
(setq newht (getreal "\n Enter new text height: "))
(setq ss1 (ssget))
(setq name (ssname) ss1 0))
(setq ent (entget name))
(setq oldlist (assocc 40 ent))
(setq conlist (cons (car oldlist) newht))
(setq newlist (subst conlist oldlist ent))
(entmod newlist)
(setvar "cmdecho" 1)
(princ)
)
3: Visual LISP
Save Save As File
chgtext1.lsp. , Load
Text in Editor Tools Load active edit window,
Tools. Visual LISP .
- , .
, (chgtext1) _$ <Enter>. ( ,
.) ,
,
.
<Enter>. , .
, ,
, .
, . ,
. ,
Visual LISP:
507
1
ssget ssget "X",
ss1. AutoCAD ,
. 7 (setq ss1 (ssget)),
3, ss1.
:
Command: !ss1
<Selection set: 2>
2
, - , .
ssname, . , ssname,
. , 0, ssname ,
1, , ..
(setq name (ssname ss1 0)) ssname
. :
Command: !name
<Object name: 60000018>
3
enget .
(setq ent (entget name))
ent. :
Command: !ent
((-1.< Object name: 60000018> (0 . "TEXT") (8 . "0") (10 4.912227
5.36301 0.0) (40 . 0.3) (1 . "CHANGE TEXT") (50 . 0.0) (41 . 1.0)
(51 . 0.0) (7 . "standard") (71 . 0) ) (72 . 1) (11 6.51227 5.36302
0.0) (210 0.0 0.0 1.0))
4
, 40 (.. ), assocc. (setq oldlist (assocc 40 ent)), , assocc, oldlist.
:
Command: !oldlist
(40 . 0.3)
508
14
5
(40 . 0.3) (40), ,
, (0.3). , (0.3) - .
, conlist.
11 (setq conlist (cons
(car oldlist) newht)). , , newht,
0.5, (40 . 0.5).
conlist :
Command: !conlist
(40 . 0.5)
6
, ent, subst. 12 (setq newlisst (subst conlist oldlist ent)).
newlist :
Command: !newlist
((-1.< Object name: 60000018> (0 . "TEXT") (8 . "0") (10 4.912227
5.36301 0.0) (40 . 0.5) (1 . "CHANGE TEXT") (50 . 0.0) (41 . 1.0)
(51 . 0.0) (7 . "standard") (71 . 0) ) (72 . 1) (11 6.51227 5.36302
0.0) (210 0.0 0.0 1.0))
7
.
entmod, 13 (entmod newlist) .
,
entnext
,
. , entnext ,
(entnext(entnext)) . entnext :
(entnext < >)
entlast
entlast ,
. :
entlast
entsel
entsel
.
509
Visual LISP:
:
(entsel [])
4
Visual LISP, , . ,
.
1: -
-, . 14.1,
Visual LISP.
. 14.1. - 4
2: Visual LISP
Visual LISP, ToolsAutoLISPVisual LISP Editor
VLIDE . Visual
LISP, New File File. ,
. ,
.
;
;, .
;
(defun chgtext2 ()
(setvar "cmdecho" 0)
(setq newht (getreal "\n Enter new text height: "))
(setq ss1 (ssget "x" (list (cons 0 "text"))))
(setq index 0)
(setq num (sslenght ss1))
(repeat num
(setq name (ssname) ss1 index))
1
2
3
4
5
6
7
8
9
10
11
510
14
(setq ent (entget name))
(setq oldlist (assocc 40 ent))
(setq conlist (cons (car oldlist) newht))
(setq newlist (subst conlist oldlist ent))
(entmod newlist)
(setq index (1 + index))
)
(setvar "cmdecho" 1)
(princ)
12
13
14
15
16
17
18
19
20
21
7
(setq ss1 (ssget "x" (list (cons 0 "text"))))
ssget "X" .
setq ss1.
8
(setq index 0)
setq index 0. .
9
(setq num (sslenght ss1))
sslenght , ss1.
setq num.
10
(repeat num
repeat , , num .
2: Visual LISP
Save Save As File
chgtext2.lsp. , Load
Text in Editor Tools Load active edit window,
Tools. ,
(chgtext2) _$ <Enter>. , . , , .
<Enter>,
.
5
Visual LISP,
, .
Visual LISP:
511
1: Visual LISP
. 14.2 - .
. 14.2. - 5
2: Visual LISP
Visual LISP, ToolsAutoLISPVisual LISP Editor
VLIDE . Visual
LISP, New File File. ,
.
(defun chgtext3 ()
(setvar "cmdecho" 0)
(setq newht (getreal "\n Enter new text height: "))
(setq ss1 (ssget))
(setq index 0)
(setq num (sslenght ss1))
(repeat num
(setq name (ssname) ss1 index))
(setq ent (entget name))
(setq ass (assocc 0 ent))
(setq index (1 + index))
(If (= "TEXT" (cdr ass))
(progn
(setq oldlist (assocc 40 ent))
(setq conlist (cons (car oldlist) newht))
(setq newlist (subst conlist oldlist ent))
(entmod newlist)
)
)
)
(setvar "cmdecho" 1)
(princ)
)
512
14
3: Visual LISP
Save Save As File
chgtext3.lsp. , Load
Text in Editor Tools Load active edit window, Tools. ,
(chgtext3) _$ <Enter>. , .
, ,
. , .
.
6
Visual LISP, , .
, .
1: Visual LISP
Visual LISP, ToolsAutoLISPVisual LISP Editor
VLIDE . Visual
LISP, New File File. ,
.
(Defun radcir ()
(setq p1(entsel "select the circle")
p2(car p1)
p3(entget p2)
p4(assocc 10 p3)
p5(getpoint "\n Enter the new center point of the circle: ")
p6(cons 10 p5)
p3(subst p6 p4 p3)
);setq
(entmod p3)
);defun
2: Visual LISP
Save Save As File
radcir.lsp. , Load Text
in Editor Tools Load active edit window, Tools. ,
(radcir) ( _$) <Enter>.
, .
, ,
.
, . .
Visual LISP:
513
,
.
1. Visual LISP
, . (/)
2. ________ ,
.
3. ________ . , .
4. ________ , , ,
.
5. ________ ,
. ,
.
.
1. ________ .
2. ________ .
3. ________ .
4. ________ , .
5. ________ .
6. ________ .
1 ()
Visual LISP, . ,
.
2 ()
Visual LISP,
, . , .
3 ()
Visual LISP,
, . ,
, , .
1 , 2 ssget, 3 ssget "X", 4 sslenght, 5 ssname.
15
Dialog Control Language
, :
, ;
;
,
(DCL);
;
;
AutoLISP;
, DCL.
516
15
, (DCL Dialog Control Language),
ASCII, . DCL . , DCL,
. DCL .dcl (, ddosnap.dcl).
, AutoCAD,
AutoLISP. DCL
AutoLISP, . ,
DCL.
, .
DCL , , .
, ,
AutoCAD Customization Guide,
Autodesk. DCL, . ( , AutoCAD ).
, (DCL), , , .
, , , ,
, .
, . 15.1.
517
. .
, . , AutoLISP
AutoCAD (ADS) ARX. ,
, Cancel (),
, . ,
, , AutoLISP, ADS ARX. , AutoLISP ADS,
DCL, AutoLISP, AutoCAD.
, , AutoCAD. ,
-,
.
, ,
, (AutoLISP ADS), .
() . ,
. , , ,
(. 15.2).
. 15.2.
518
15
, , , , ,
(PDB), AutoCAD.
base.dcl. , . ,
, ,
, . . 15.3.
DCL.
. 15.3.
( )
()
DCL
button
edit_box
image_button
list_box
popup_list
radio_button
slider
toggle
column
boxed_column
row
boxed_row
radio_column
boxed_radio_column
radio_row
boxed_radio_row
image
text
spacer
519
DCL button.
,
. . , , , .
, ,
, . , Cancel
() - .
,
. ,
.
DCL text.
. ,
,
. , , . AutoCAD
.
Cancel, .
, , , . ,
fixed_width, , ,
. , height , key , . : . , fixed_width = true fixed_width
, true , .
, , , , .
. (1, 15, 22), , , , ,
.
520
15
width = 15
height = 10
. , ,
.
aspect_ratio = 0.75
. , ,
, .
key = "accept"
label = "OK"
. . - , .
is_default = true
fixed_width = true
, AutoCAD
,
(PDB), AutoCAD.
, . , DCL
, .
. , (PDB).
Action
alignment
allow_accept
aspect_ratio
color
edit_limit
edit_width
fixed_height
fixed_width
height
is_canceled
is_default
key
label
layout
list
max_value
min_value
mnemonic
multiple_select
small_increment
tabs
value
width
521
key .
, , .
. , key, .
(key = "accept") key "accept". key,
- .
label
DCL: label
label = "OK"
label = "Hello DCL Users"
- .
label,
, ,
, .
label .
label . , label, . , ,
. label
; .
welcome : dialog {
label = "Sample Dialog Box";
522
15
: text {
label = "Welcome to the world of DCL";
}
: button {
key = "accept";
label = "OK";
}
is_default
DCL: is_default
is_default = true
is_default .
true.
, <Enter>.
, , . , , . , <Enter>. true,
is_default. , ,
. , .
is_default,
true.
xed_width alignment
fixed_width
DCL: fixed_width
fixed_width = true
523
. ,
,
fixed_width true.
.
alignment
DCL: alignment
alignment = centered
alignment = right
, alignment, . , , , :
left, right centered. alignment left;
. , , alignment top, bottom
centered. centered.
1
(DCL),
, . 15.4.
, .
DCL , 1.
dclwel1.dcl. , .
. 15.4. 1
welcome1 : dialog {
label = "Sample Dialog Box";
: text {
label = "Welcome to the world DCL";
}
: text {
label = "Dialog Control Language";
}
: button {
key = "accept"
label = "OK"
is_default = true
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
524
15
1
welcome1 : dialog {
welcome1 , . ,
.
2
label = "Sample Dialog Box";
35
: text {
label = "Welcome to the world DCL";
}
, .
text, .
label = "Welcome to the world DCL";,
,
. .
913
: button {
key = "accept"
label = "OK"
is_default = true
}
DCL
DCL, AutoLISP,
AutoCAD. , , DCL,
AutoCAD.
,
525
. DCL
. ,
DCL, . , , :
(load_dialog _)
load_dialog ;
_ DCL (.dcl).
load_dialog DCL, . new_dialog,
:
(new_dialog _ )
new_dialog , ;
_ ;
, load_dialog.
(new_dialog "welcome1" 1)
526
15
. 15.5. ,
, OK . , . fixed_width = true;, .
alignment = centered, . DCL,
,
(. 15.6).
. 15.6. ,
527
welcome2 : dialog {
label = "Sample Dialog Box";
: text {
label = "Welcome to the world of DCL";
}
: text {
label = "Hello - DCL";
}
: button {
key = "accept";
label = "OK";
is_default = true;
fixed_width = true; // ( )
alignment = centered; // ( )
}
}
AutoLISP DCL
, DCL
, DCL, AutoLISP:
(defun c:load_dcl(/ dcl_id )
(setq dcl_id (load_dialog "dclwel2.dcl")) - ( DCL)
(new_dialog "welcome2" dcl_id) - ( )
(start_dialog) - ( )
(princ)
)
:
load_dcl AutoLISP;
dclwel2 DCL, ;
welcome2 , DCL.
base.dcl ,
DCL .
ok_cancel,
OK Cancel (. 15.7). DCL ( 1), ok_cancel:
welcome3 : dialog {
label = "Sample Dialog Box";
: text {
label = "Welcome to the world of DCL";
}
: text {
label = "Dialog Control Language";
alignment = right;
}
ok_cancel;
}
528
15
. 15.7. OK Cancel
, base.dcl. , .
OK
DCL: ok_only
OK Cancel
DCL: ok_cancel
OK, Cancel Help
DCL: ok_cancel_help
AutoLISP
load_dialog
AutoLISP load_dialog DCL, . AutoCAD ,
"dclwel1". (.dcl) .
DCL AutoCAD , .
DCL: (load_dialog _)
(load_dialog "dclwel1")
(load_dialog "dclwel1.dcl")
unload_dialog
AutoLISP unload_dialog DCL, .
dcl_id, DCL.
DCL: (unload_dialog dcl_id)
(unload_dialog dcl_id)
new_dialog
AutoLISP new_dialog
. ,
"welcome1" , DCL.
dcl_id , DCL.
DCL: (new_dialog "_" dcl_id)
529
start_dialog
AutoCAD AutoLISP start_dialog
, . , , start_dialog
.
DCL: (start_dialog)
done_dialog
AutoLISP done_dialog
. ,
.
DCL: (done_dialog)
action_tile
AutoLISP action_tile
. action_tile "accept"
(done_dialog), .
"accept" , OK.
DCL: (action_tile _ _)
AutoLISP
DCL, 1, , , (.. ). ,
AutoCAD , . , AutoLISP ADS
(AutoCAD Development System). , AutoLISP ADS,
DCL, , , , , ,
AutoCAD. AutoLISP
2.
530
15
2
AutoLISP,
(. 1).
DCL, 1. welcome1, : "".
. ,
, , ,
, ,
.
welcome1 : dialog {
label = "Sample Dialog Box";
: text {
label = "Welcome to the world DCL";
}
: text {
label = "Dialog Control Language";
}
: button {
key = "accept"
label = "OK"
is_default = true
}
}
AutoLISP,
DCL (dclwel1) welcome1, OK. ,
.
(defun C:welcome (/ dcl_id)
(setq dcl_id (load_dialog "dclwel1.dcl"))
(new_dialog "welcome1" dcl_id)
(action_tile
"accept"
"(done_dialog)")
(start_dialog)
(unload_dialog dcl_id)
(princ)
)
1
2
3
4
5
6
7
8
9
10
1
(defun C:welcome (/ dcl_id)
defun AutoLISP,
welcome. :, , welcome ,
AutoCAD (.. ).
dcl_id.
531
2
(setq dcl_id (load_dialog "dclwel1.dcl"))
3
(new_dialog "welcome1" dcl_id)
, AutoLISP (welcome1),
, DCL (welcome1).
46
(action_tile
"accept"
"(done_dialog)"
7
(start_dialog)
start_dialog AutoLISP , .
8
(unload_dialog dcl_id)
, , DCL, dcl_id.
9 10
(princ)
)
princ . .
princ , . ,
, welcome.
532
15
( row)
DCL: row
DCL , , .
, , , .
DCL: boxed_row
,
.
. , , .
.
DCL: column
, .
DCL: boxed_column
, .
. , , .
.
DCL: toggle
(), ,
, .
, , ,
. : .
, ,
. , -,
. () .
533
, 1; , 0.
DCL: mnemonic
mnemonic = "U"
,
. ( <Enter>).
- , . ,
, .
, New <N>.
<N> New
. ,
.
mnemonic,
. ,
. , .
; , New
(N), (n) . , ,
, . .
(GUI) . . - .
3
DCL ,
(. 15.8).
, .
, DCL, .
. , . DCL
. . 15.8
, 3.
. ;
(. 15.9).
534
15
. 15.8.
. 15.9.
3.
, .
Osnaps : dialog {
label = "Running Object Snaps"
: boxed_row {
label = "Select Object Snaps"
: column {
: toggle {
label = "Endpoint";
key = "Endpoint";
mnemonic = "E";
fixed_width = true;
}
: toggle {
label = "Midpoint";
key = "Midpoint";
mnemonic = "M";
fixed_width = true;
}
}
: column {
: toggle {
label = "Intersection";
key = "Intersection";
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
535
23
24
25
26
27
28
29
30
31
32
33
34
35
3 4
: boxed_row {
label = "Select Object Snaps"
57
: column {
: toggle {
label = "Endpoint";
column DCL,
. toggle
(), . label Endpoint, .
811
key = "Endpoint";
nemonic = "E";
fixed_width = true;
}
536
15
3135
}
}
}
ok_cancel
}
, 31, (), 32 ,
19. 33 boxed_row ( ), 3.
ok_cancel ,
OK Cancel. .
, DCL
, . ,
osnapsh.dlc. ,
AutoCAD . , , AutoCAD, 1. . 15.10 ,
AutoCAD .
. 15.10. AutoCAD, , 3
537
DCL AutoCAD. ,
, . 7, , Windows.
Command: (load_dialog "osnapsh.dcl")
1
Command: (new_dialog "osnapsh" 1)
AutoLISP
logand logior
AutoLISP logand logior (AND) (OR),
.
logand
logand
logand
logand
logand
logand
logand
(2
(8
(6
(6
(1
(1
7)
15)
15 7)
15 1)
4)
5)
2
8
6
0
0
1
logior
logior
logior
logior
logior
logior
logior
(2
(8
(6
(6
(1
(1
7)
15)
15 7)
15 1)
4)
5)
7
15
15
15
5
5
. ,
:
None
Endpoint
Midpoint
Center
Node
Quadrant
Apparent Intersection
Parallel
0
1
2
4
8
16
2048
8192
Intersection
Insertion
Perpendicular
Tangent
Nearest
Quick
Extension
32
64
128
256
512
1024
4096
OSMODE. , 4, .
, . -
538
15
, (1 + 2 + 4 = 7),
OSMODE.
. AutoLISP
logand, ,
. , OSMODE 7,
logand, , .
logand (1 7)
logand (2 7)
logand (4 7)
1
2
4
Endpoint ( )
Midpoint ( )
Center ( )
atof rtos
atof ,
rtos .
(atof "3.5")
(rtos 8.15)
3.5
8.1500
get_tile set_tile
g e t _ t i l e ,
set_tile .
(get_tile "midpoint")
(set_tile "xsnap" value)
4
AutoLISP,
, 3.
AutoLISP 4. , .
;; AutoLISP .
;; osnapsh.dcl.
(defun c:osnapsh ( / dcl_id)
(setq dcl_id (load_dialog "osnapsh.dcl"))
(new_dialog "osnapsh" dcl_id)
;;
;;
(setq osmode (getvar "osmode"))
(if (= 1 (logand 1 osmode))
(set_tile "Endpoint" "1")
)
(if (= 2 (logand 2 osmode))
(set_tile "Midpoint" "1")
)
(if (= 32 (logand 32 osmode))
(set_tile "Intersection" "1")
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
539
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
1 2
;; AutoLISP .
;; osnapsh.dcl.
, . AutoCAD , .
35
(defun c:osnapsh ( / dcl_id)
(setq dcl_id (load_dialog "osnapsh.dcl"))
(new_dialog "osnapsh" dcl_id)
defun, 3, AutoLISP,
osnapsh.
c:, osnapsh ,
AutoCAD. osnapsh (dcl_id).
4 (load_dialog "osnapsh.dcl"),
osnapsh.dcl . setq
dcl_id. 5 new_dialog "osnapsh", DCL
540
15
( 1 DCL). dcl_id ,
DCL.
8
(setq osmode (getvar "osmode"))
getvar
"osmode",
osmode. setq osmode.
, osmode , ("osmode") AutoCAD.
911
(if (= 1 (logand 1 osmode))
(set_tile "Endpoint" "1")
)
(logand 1 osmode), 9, 1,
OSMODE (1),
. , 7 (1 + 2 + 4 = 7), (logand 1 7) 1. OSMODE 6 (2 + 4 = 6), (logand 1 6) 0. if , ,
(logand 1 osmode). T (true),
, . 10 Endpoint 1, .
, 11, if.
(if (= 1 (logand 1 osmode)) nil,
12 .
24 25
(defun setvars ()
(setq osmode 0)
24 setvars, 25 0 osmode.
2628
(if (= "1" (get_tile "Endpoint"))
(setq osmode (logior osmode 1))
)
541
41 42
(action_tile "accept" "(setvars) (done_dialog)")
(start_dialog)
,
DCL: radio_button
radio_button , . ( )
. , . ,
, , ,
, .
. , , , . -
. , ,
.
DCL: radio_column
, .
, .
,
.
DCL: boxed_radio_column
, .
542
15
DCL: radio_row
, .
. , , .
,
.
, , .
5
DCL ,
(. 15.11).
AutoLISP, ,
.
. 15.11. 5
DCL ,
. 15.11. dwgunits. , .
Dwgunits : dialog {
label = "Drawing Units"
: row {
: boxed_column {
label = "Select Units";
: radio_column {
: radio_button {
key = "scientific";
label = "Scientific";
mnemonic = "S";
}
: radio_button {
key = "decimal";
label = "Decimal";
mnemonic = "D";
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
543
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
4 5
: boxed_column {
label = "Select Units";
4
boxed_column, . label =
"Select Units", 5, Select
Units . Label DCL.
68
: radio_column {
: radio_button {
key = "scientific";
radio_column
, . radio_button
, .
. key -
544
15
scientific. .
911
label = "Scientific";
mnemonic = "S";
}
4146
}
}
}
}
ok_cancel
}
, 41,
( ), . 43 boxed_column ( ),
44 ,
3 DCL. ok_cancel
, OK Cancel. .
DCL ,
. , dwgunits.dlc,
dwgunits. ,
AutoCAD . AutoCAD 5. . 15.12 , .
Command: (load_dialog "dwgunits.dcl")
5
Command: (new_dialog "dwgunits" 1)
. 15.12. , 5
545
AutoLISP, , , .
, .
;; dwgunits.lsp
;;. dwgunits.dcl
;
(defun c:dwgunits ( / dcl_id)
(setq dcl_id (load_dialog "dwgunits.dcl"))
(new_dialog "dwgunits" dcl_id)
;
;; lunits luprec
;; .
;
(setq lunits (getvar "lunits"))
(if ( = 1 lunits)
(set_tile "scientific" "1")
)
(if ( = 2 lunits)
(set_tile "decimal" "1")
)
(if ( = 3 lunits)
(set_tile "engineering" "1")
)
;
(setq luprec (getvar "luprec"))
(if ( = 1 luprec)
(set_tile "one" "1")
)
(if ( = 2 luprec)
(set_tile "two" "1")
)
(if ( = 3 luprec)
(set_tile "three" "1")
)
;; radio_button
;; lunit luprec
;
(action_tile "scientific" (setq lunits 1)")
(action_tile "decimal" (setq lunits 2)")
(action_tile "engineering" (setq lunits 3)")
;
(action_tile "one" (setq luprec 1)")
(action_tile "two" (setq luprec 2)")
(action_tile "three" (setq luprec 3)")
(action_tile "accept" (done_dialog)")
;
(start_dialog)
(setvar "lunits" lunits)
(setvar "luprec" luprec)
(princ)
)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
546
15
13
;; dwgunits.lsp .
;; dwgunits.dcl
;
. . AutoCAD , .
46
(defun c:dwgunits ( / dcl_id)
(setq dcl_id (load_dialog "dwgunits.dcl"))
(new_dialog "dwgunits" dcl_id)
4 AutoLISP defun,
dwgunits, dcl_id. :,
dwgunits,
, AutoCAD (.. ). (load_dialog
"dwgunits.dcl"), , dwgunits.dcl
. setq dcl_id. new_dialog, dwgunits, DCL (
1 DCL). dcl_id , DCL.
11
(setq lunits (getvar "lunits"))
g e t v a r
"lunits",
lunits. setq lunits.
, lunits ,
("lunits")
AutoCAD.
1214
(if ( = 1 lunits)
(set_tile "scientific" "1")
)
if ( AutoLISP) , lunits 1.
T (true), , . set_tile, 13,
"scientific" 1,
. 14 if.
if ( = 1 lunits) nil,
14.
547
22
(setq luprec (getvar "luprec"))
getvar "luprec",
luprec. , setq
luprec. , luprec , ("luprec") AutoCAD.
2325
(if ( = 1 luprec)
(set_tile "one" "1")
)
36
(action_tile "scientific" (setq lunits 1)")
Scientific ()
Decimal ()
Engineering ()
Architectural ()
Fractional ()
40
(action_tile "one" (setq luprec 1)")
548
15
4347
(action_tile "accept" (done_dialog)")
;
(start_dialog)
(setvar "lunits" lunits)
(setvar "luprec" luprec)
, , "accept". , ,
dwgunits. start_dialog .
(setvar "lunits" lunits) (setvar "luprec" luprec) lunits luprec lunits
luprec, .
DCL: edit_tile
, . ,
.
.
width edit_width
width
DCL: width
width = 22
width
. , , . , width,
. 22.
,
. (22)
, fixed_width.
, width .
edit_width
DCL: edit_width
edit_width = 10
549
edit_width, , , ,
.
0, fixed_width , .
PDB ,
, .
6
DCL ,
, (. 15.13).
Snap
Grid. ,
. 15.13. 6
AutoLISP, ,
.
DCL 6 :
dwgaids : dialog {
label = "Drawing Aids";
: row {
: boxed_column {
label = "SNAP";
fixed_width = true;
width = 22;
: toggle {
label = "On";
mnemonic = "O";
key = "snapon";
}
: edit_box {
label = "X-Spacing";
mnemonic = "X";
key = "xsnap";
edit_width = 10;
}
: edit_box {
label = "Y-Spacing";
mnemonic = "Y";
key = "ysnap";
edit_width = 10;
}
}
: boxed_column {
label = "GRID";
fixed_width = true;
width = 22;
: toggle {
550
15
label = "On";
mnemonic = "n";
key = "gridon";
}
: edit_box {
label = "X-Spacing";
mnemonic = "S";
key = "xgrid";
edit_width = 10;
}
: edit_box {
label = "Y-Spacing";
mnemonic = "p";
key = "ygrid";
edit_width = 10;
}
}
}
ok_cancel
AutoLISP 6.
, , (. 15.14).
. 15.14. AutoCAD 6
551
552
15
DCL: slider
, , ( ), , . ,
. , , . , ,
,
APERTURE. , , ,
, .
. . .
, . .
DCL: image
,
.
, ,
. image ,
.
min_value =2
max_value = 15
553
small_increment big_increment
DCL: small_increment big_increment
small_increment = 1
big_increment = 10
, small_increment big_increment,
,
. , 1, ,
, 1. ,
slider , . , small_increment, (1/100)
, , big_increment,
(1/10) .
aspect_ratio color
aspect_ratio
DCL: aspect_ratio
aspect_ratio = 1
aspect _ ratio - .
(/).
, .
( ), aspect_ratio. ,
5, (.. aspect_ratio)
0,5, 2,5 ( = ). .
color
DCL: color
color = 2
,
. ,
, AutoCAD.
( 2).
, , , vector_image.
554
15
7
DCL ,
(. 15.15).
. 15.15. 7
, . 15.16, .
: (Min ... Max) .
.
OK Cancel. . 15.16,
(Aperture Size) (Select Aperture).
. 15.16. , 7
DCL 7.
, .
aprtsize : dialog {
label = "Aperture Size";
: boxed_row {
label = "Select Aperture";
: column {
fixed_width = true;
: text {
label = "Min Max";
alignment = centered;
}
: slider {
1
2
3
4
5
6
7
8
9
10
11
555
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
11 12
: slider {
key = "aperture_slider";
, (: slider), ( slider). , ,
. (key = "aperture_slider") slider
aperture_slider.
13 14
min_value = 2;
max_value = 17;
min_value,
, slider. , max_value , . ,
2, 17.
1517
width = 15;
height = 1;
big_increment = 1;
slider.
(big_increment = 1;) , .
556
15
22 23
: image {
key = "aperture_image";
, (: image), .
aperture_image.
2426
aspect_ratio = 1;
width = 5;
color = 2;
AutoLISP
dimx_tile dimy_tile
AutoLISP dimx_tile
X (x_aperture), dimy_tile
Y (y_aperture).
"aperture_image" ,
key (key = "aperture_image").
: (dimx_tile tilename) (dimy_tile tilename)
(dimx_tile "aperture_image")
(dimy_tile "aperture_image")
vector_image
AutoLISP vector_image ( ) . ,
vector_image. AutoCAD
1,1 3,3 ( 1).
: (vector_image x1 y1 x2 y2 )
(vector_image 1 1 3 3 1)
1 1 X Y ;
3 3 X Y ;
1 AutoCAD.
557
fill_image
AutoLISP fill_image
, , ,
.
(
2). (x1 y1) (x2 y2)
.
: (fill_image x1 y1 x2 y2 )
start_image
AutoLISP start_image , . "aperture_image"
key (key = "aperture_image").
: (start_image)
(start_image "aperture_image")
end_image
AutoLISP end_image , end_image. ,
, "aperture_image".
: (end_image)
(end_image "aperture_image")
558
15
$value
$value AutoLISP, , (, ). 8, $value , setq
aprt_size.
: $value
8
AutoLISP,
, 7 (. . 15.15), . -
. 15.17 15.18.
. 15.17. - 8
AutoLISP 8. , .
;;APRTSIZE.LSP, AutoLISP
;;Aperture Size. DCL APRTSIZE.DCL.
;
(defun c:aprtsize ()
(setq dcl_id (load_dialog "aprtsize"))
(new_dialog "aprtsize" dcl_id)
;
; "aperture",
; X Y
; .
1
2
3
4
5
6
7
8
9
10
559
1113
(setq aprt_size (getvar "aperture"))
(if (> aprt_size 15)
(setq aprt_size 15)
)
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
560
15
. 15.18. AutoCAD , 8
561
15 16
(setq x_aperture (dimx_tile "aperture_image"))
(setq y_aperture (dimy_tile "aperture_image"))
AutoLISP dimx_tile
( X), setq x_aperture. dimy_tile, , ( Y).
17
(set_tile "aperture_slider" (itoa aprt_size))
AutoLISP i t o a
aprt_size , set_tile "aperture_slider". "aperture_slider",
DCL, slider.
1821
(setq
(setq
(setq
(setq
x1
x2
y1
y2
((+
((+
(/
(/
(/
(/
x_aperture
x_aperture
y_aperture
y_aperture
2)
2)
2)
2)
aprt_size"))
aprt_size"))
aprt_size"))
aprt_size"))
X .
x_aperture 2, aprt_size.
aprt_size ,
aperture.
,
. X .
Y .
22 23
(start_image
(fill_image 0 0 x_aperture y_aperture)
start_image aperture_image,
DCL. fill_image ( 2) .
27 28
(vector_image x1 y2 x1 y1 1)
(end_image)
562
15
2931
(action_tile "aperture_slider"
"(draw_size (setq aprt_size (atoi $value)))")
(action_tile "accept" "(do_setvars)(done_dialog)")
36 37
(defun do_setvars ()
(setvar "aperture" aprt_size)
42 43
(defun draw_size (aprt_size)
(setq x1 (- (/ x_aperture 2) aprt_size))
draw_size aprt_size,
.
.
1. , (DCL), . (/)
2. DCL . (/)
3. , , AutoCAD. (/)
4. . (/)
5. , DCL, ,
. (/)
6. , DCL, . (/)
7. , , , . (/)
8. is_default, true. (/)
9. load_dialog .
(/)
563
10. , , . (/)
11. , ,
. (/)
12.
. (/)
13. ( ) .
(/)
14. . (/)
15.
. (/)
16. width . (/)
17. slider . (/)
18. . (/)
19. color
. (/)
20. vector_image
. (/)
21. $value , . (/)
22. , ,
, ________, AutoCAD.
23. ________ , .
24. ________
.
25. , ,
, ________.
26. ________ .
27. , , ________.
28. AutoLISP ________
.
29. AutoLISP ________ ,
.
30. AutoLISP ________
.
31. AutoLISP ________
AND ().
32. edit_width , ________.
564
15
1 ()
(DCL),
, . 15.19. AutoLISP,
, , .
. 15.19. ,
2 ()
DCL Isometric Snap/Grid,
. 15.20. AutoLISP, ,
, .
565
3 ()
DCL ,
(. 15.21). AutoLISP,
,
. ,
, , .
. 15.21. ,
4 ()
DCL , (. 15.22).
AutoLISP, ,
, .
. 15.22. ,
16
DIESEL:
, :
DIESEL
;
MODEMACRO;
DIESEL;
AutoLISP MODEMACRO.
568
16
DIESEL:
DIESEL (Direct Interactively Evaluated String Expression Language)
. , () , MODEMACRO. ,
.
DIESEL ,
AutoCAD. , DIESEL
, AutoLISP DCL. , AutoLISP MODEMACRO MODEMACRO .
DIESEL,
.
AutoCAD
(. 16.1). , AutoCAD.
, . ,
, GRID ().
, MODEL/PAPER
(/). :
. 16.1. ,
. , , . ,
, . ,
( ) AutoCAD
, ().
AutoCAD ( ).
, .
SNAP. SNAP ()
( ) (
).
DIESEL:
569
GRID. GRID ()
, .
ORTHO. ORTHO () .
, .
POLAR. POLAR (-)
, Polar Tracking (
) Drafting Settings ( ).
OSNAP. OSNAP ()
.
. OSNAP
(Off (.) On (.)) .
OTRACK. OTRACK (-) , AutoCAD ,
.
LWT. LWT () . , .
MODEL/PAPER. MODEL/PAPER (/) . , MODEL.
PAPER.
MODEMACRO
MODEMACRO
. , , DIESEL. (
.) MODEMACRO
AutoCAD, -
, MODEMACRO SETVAR. , , Customization AutoCAD. SETVAR
<Enter>.
, MODEMACRO <Enter> .
, . Customization AutoCAD <Enter>,
.
Command: MODEMACRO
: MODEMACRO
Command: SETVAR
Variable name or ?: MODEMACRO
570
16
: SETVAR
?: MODEMACRO
MODEMACRO (.), <"">:
Customization AutoCAD
MODEMACRO , ,
.
Command: MODEMACRO
Enter new value for MODEMACRO, or . for none <"">:
Customization AutoCAD
: MODEMACRO
MODEMACRO (.), <"">:
Customization AutoCAD
MODEMACRO ,
, . ,
Enter new value for MODEMACRO, or . for none <"">:
(.). , MODEMACRO,
, .
Command: MODEMACRO
Enter new value for MODEMACRO, or . for none <"">: .
, ,
: .
: Snap (), Grid (), Ortho (), Polar
Tracking ( ), Object Snap ( ), Object Tracking
( ), Lineweight ( ) Model Space (
) (. . 16.1). X, Y Z, .
,
MODEMACRO . , ,
, AutoCAD. , ,
AutoCAD.
.
, , .
, ,
. , - , . , (DIMSTYLE). , ,
DIESEL:
571
, (TEXTSTYLE) (TEXTSIZE).
(VIEWDIR).
, . ,
, , , . AutoCAD
, .
, DIESEL
MODEMACRO ,
, DIESEL.
DIESEL AutoLISP, . ,
AutoLISP (getvar dwgname).
DIESEL
$(getvar,dwgname). , , AutoLISP, . DIESEL
:
$(_, 1, 2, ...)
$(getvar,dwgname)
1
MODEMACRO,
:
(Cust-Acad);
(DEMO);
(OBJ).
, Cust-Acad,
DEMO, OBJ.
MODEMACRO, . , (Cust-Acad) ,
. .
getvar,
: $(getvar,dwgname). getvar
572
16
Cust-Acad
Cust-Acad , .
N:$(GETVAR,dwgname)
N: , . getvar ,
dwgname, , N:.
L:$(GETVAR,clayer)
L: , .
getvar ,
dwgname, .
. 16.2.
. 16.2. , 1
2
MODEMACRO, ,
(. 16.3):
;
;
, .
, TSTYLE:, TSIZE: ETM: .
Command: MODEMACRO
Enter new value for MODEMACRO, or . for none <"">:
TSTYLE:$(GETVAR,TEXTSTYLE) TSIZE:$(GETVAR,TEXTSIZE) ETM:
$(FIX,$(*,60,$(*,24,$(GETVAR,TDUSRTIMER))))
DIESEL:
573
TSTYLE:$(GETVAR,TEXTSTYLE)
getvar , TEXTSTYLE, ,
TSTYLE:.
TSIZE:$(GETVAR,TEXTSIZE)
getvar , TEXTSIZE, ,
TSIZE:.
( )
. 16.3. , 2
ETM:$(FIX,$(*,60,$(*,24,$(GETVAR,TDUSRTIMER))))
getvar
TDUSRTIMER. :
< >.< >
0,03206400 ( )
, , , TDUSRTIMER, 24 (
). , 60
( ).
, , FIX.
, , TDUSRTIMER, 0,03206400. , .
, , .
0,03206400 24 = 0,769536 ;
0,769536 60 = 46,17216 ;
46,17216 = 46.
574
16
MODEMACRO
AutoLISP
DIESEL ( 1 2).
, .
, , DIESEL.
.
,
DIESEL, AutoLISP. ,
DIESEL.
AutoLISP DIESEL, MODEMACRO.
3
AutoLISP, , MODEMACRO,
:
;
;
, .
, , , TSTYLE:, TSIZE: ETM: .
AutoLISP 3.
etm.lsp. , .
(defun c:etm()
(setvar "MODEMACRO"
(strcat
"TSTYLE:$(gertvar,textstyle)"
"TSIZE:$(getvar,textsize)"
"ETM:$(fix,#(*,60,$(*,24,
$(getvar,tdusrtimer))))
)
)
)
1
2
3
4
5
6
7
8
9
10
3
(strcat
AutoLISP strcat ,
47, , DIESEL,
MODEMACRO.
DIESEL:
575
4
"TSTYLE:$(gertvar,textstyle)"
DIESEL,
gertvar, textstyle $(gertvar,textstyle) . , STANDARD TSTYLE:
STANDARD. .
6 7
"ETM:$(fix,#(*,60,$(*,24,
$(getvar,tdusrtimer))))"
DIESEL
DIESEL , ,
.
MODEMACRO , . DIESEL .
4
, DIESEL,
(. 16.4).
_1
_2
_3
Dimtad ( )
Dimtix ( )
Dimscale (
)
,
DIESEL. , MENU,
. (DIESEL1)
.
576
16
***MENUGROUP=MENU1
***POP1
[*DIESEL*]
[DIESEL1:]^C^CMODEMACRO;$M=CustAcad,N:$(GETVAR,DWGNAME),+
L:$(GETVAR,CLAYER);
[DIESEL2:]^C^CMODEMACRO;$M=PLWID:$(GETVAR,PLINEWID),+
FRAD:$(GETVAR,FILLETRAD),OFFSET:$(GETVAR,OFFSETDIST),+
LTSCLAE:$(GETVAR,LTSCALE);
[DIESEL3:]^C^CMODEMACRO;$M=DTAD:S(GETVAR,DIMTAD),+
DTIX:$(GETVAR,DIMTIX),DSCALE:$(GETVAR,DIMSCALE);
. 16.4. 4
MACROTRACE
MACROTRACE AutoCAD,
DIESEL. 0 (Off).
MACROTRACE 1 (On). MACROTRACE DIESEL
. , DIESEL,
.
DIESEL:
577
Command: MACROTRACE
Enter new value for MODEMACRO, or . for none <"">:
$(getvar,dwgname),$(getvar clayer)
, getvar
clayer. , ..
MACROTRACE 1, :
Eval: $(GETVAR,DWGNAME)
====>UNNAMED
Eval: $(GETVAR,CLAYER)
Err: $(GETVAR,CLAYER)??
. ,
DIESEL (unnamed), .
DIESEL. ,
.
$?
$?(func,??)
$(func)??
$(++)
DIESEL
DIESEL, AutoLISP, ,
. , , ,
. , . , DIESEL, 10.
.
DIESEL.
: $(+,1,2,3,...)
(+) , (+).
.
$(+,2,5)
$(+,2,5,50.75)
7
57.75
, DIESEL MODEMACRO.
578
16
Command: MODEMACRO
Enter new value for MODEMACRO, or . for none <"">: $(+,2,5)
AutoCAD 7, . , ,
DIESEL, .
: $(-,1,2,3,...)
(-) .
, .
$(-,28,14)
$(-,25,7,11.5)
14
6.5
: $(*,1,2,3,...)
(*) , .
$(*,2,5)
$(*,2,5,3.0)
$(*,2,5,3.25)
10
30
32.5
: $(/,1,2,3,...)
(/) .
, .
$(/,3,2)
$(/,3.0,2,)
$(/,200,5,4)
$(/,200.0,5.5)
$(/,200,-5)
$(/,-200,-5.0)
1.5
1.5
10
36.36363636
40
40
DIESEL , . true (), ; false (),
. , DIESEL.
: $(=,1,2)
DIESEL:
579
(=) . , 1. , 0.
$(=,5,5)
$(=,5,4.9)
$(=,5,-5)
1
0
0
: $(!=,1,2)
(!=) . ,
1.
0.
$(!=,50,4)
$(!=,50,50)
$(!=,50,-50)
1
0
1
: $(<,1,2)
(<) . (1) ,
(2), .. , 1.
0.
$(<,3,5)
$(<,5,3)
$(<,3,0.5)
1
1
1
: $(<=,1,2)
(<=) . (1) (2), 1.
, 0.
$(<=,10,15)
$(<=,19,10)
$(<=,-2.0,0)
1
0
1
: $(>,1,2)
(>) (1)
(2), 1. ,
0.
$(>,15,10)
$(>=,20,30)
1
0
580
16
: $(>=,1,2)
(>=) (1)
(2), 1. ,
0.
$(>=,78,50)
$(>=,78,88)
1
0
eq
: $(eq,1,2)
(eq) , , 1. , 0.
$(eq,5,5)
$(eq,yes,yes)
$(eq,yes,no)
1
1
0
angtos
: $(angtos, [,,])
angtos , , .
.
$(angtos,0.588003,0,4)
$(angtos,-1.5708,1,2)
33.6901
270d0'
AutoCAD :
angtos
0
1
2
3
4
//
(precision) , .
AUPREC.
precision 0, 4.
eval
: $(eval,)
eval DIESEL, , ,
.
$(eval,welcome)
$(eval,$(getvar,dimscale))
welcome
, dimscale
DIESEL:
581
x
: $(fix,)
fix , ,
.
$(fix,42.573)
$(fix,-23.50)
42
23
getvar
: $(getvar,_)
getvar
AutoCAD.
$(getvar,dimtad)
$(getvar,clayer)
dimtad
rtos
: $(rtos,) $(rtos,,,)
rtos .
.
$(rtos,50)
$(rtos,1.5,5,4)
50
1
AutoCAD :
0
1
2
3
4
(precision) , .
LUPREC, LUNITS.
, AutoCAD LUNITS LUPREC, UNITS.
if
: $(if,,then,else])
, , 0, if (then). 0, (else).
582
16
:
;
then , ,
, 0;
else , ,
, 0.
$(if,$(=,7,7),true)
$(if,$(=,5,7),true,false)
$(if,1.5,true,false)
"true"
"false"
"true"
strlen
: $(strlen,)
strlen , , .
$(strlen,Customizing AutoCAD)
19
upper
: $(upper,)
upper .
$(upper,customization)
CUSTOMIZATION
edtime
: $(edtime,,_)
edtime
. , ,
DATE, 2449013 . 85156759. edtime
. , edtime.
D
DD
DDD
DDDD
M
MO
MON
MONTH
YY
YYYY
5
05
Sat
Saturday
1
11
Apr
April
03
2003
H
HH
MM
SS
MSEC
AM/PM
am/pm
A/P
a/p
2
02
23
12
325
PM
am
P
P
DIESEL:
583
:
DDDD
,
DD
MONTH
YY
HH
MM
AM/PM
Monday
,
28
April
03
08
52
PM
1. DIESEL (Direct Interactively Evaluated String Expression Language)
. (/)
2. MODEMACRO , .
(/)
3. DIESEL . (/)
4. , , . (/)
5. MODEMACRO ,
, . (/)
6. , ,
38. (/)
7. . (/)
8. MODEMACRO ,
, DIESEL.
(/)
9. DIESEL $(getvar,dwgname). (/)
10. DIESEL AutoLISP . (/)
584
16
11. ________.
12. DDD Monday
________.
13. DIESEL $(upper,AutoCAD) ________.
14. DIESEL $(strlen,AutoCAD) ________.
15. DIESEL $(if,$(=,3,2),yes,no) ________.
16. DIESEL $(fix,-17.75) ________.
17. DIESEL $(eq,Customizing,customizing) ________.
18. DIESEL $(/81,9,9) ________.
19. MACROTRACE ________ DIESEL.
1 ()
MODEMACRO,
:
;
.
2 ()
MODEMACRO,
:
;
( dimscale);
, .
, DIMS:, DIMFAC:
ETH:, .
3 ()
AutoLISP,
:
;
( dimscale);
, .
17
Visual Basic
, :
VBA;
Visual Basic Editor;
AutoCAD;
;
AutoCAD.
586
17
Visual Basic
BASIC 1963 . , BASIC
(Beginners All-purpose Symbolic Instruction Code) . 1970- . BASIC Windows 1991
Visual Basic (VB).
. , ,
(GUI), .
, , , ,
.
Visual Basic , , BASIC. , , . , -,
Visual Basic .
Visual Basic
Autodesk Microsoft Visual
Basic for Application (VBA) AutoCAD 14.0. ,
VBA , . VBA
, Visual Basic.
, Microsoft Office,
VBA AutoCAD,
.
VBA , Microsoft Excel, Microsoft Word, Microsoft Access Visual Basic, ActiveX Automation. Microsoft
. ActiveX Automation
AutoCAD Microsoft Excel , ActiveX.
Excel -
AutoCAD. AutoLISP, , . AutoCAD ,
ActiveX, , AutoCAD,
, Object Library.
Visual Basic , BASIC.
, BASIC
, , AutoLISP.
.
Visual Basic
587
AutoCAD ,
, . , .
VBA AutoCAD
Visual Basic , ( .exe).
, , .
VBA . , , ,
,
. , ,
.
, VBA, , , .
AutoCAD , ,
. (IDE Integrated Development Environment).
.
Project Explorer
Project Explorer ,
, . , ,
. . Project
Explorer, . 17.2, : AutoCAD Objects (
AutoCAD), Forms () Modules (). AutoCAD Objects
ThisDrawing, AutoCAD. Forms Visual Basic, . , Modules
, . , ,
. ,
Project Explorer .
588
17
),
Project Explorer ,
Module (Code), . ,
, ,
, Project Explorer, View Code. User form (Code).
Visual Basic
589
Properties ()
Properties () . Visual Basic
, . , , ,
.
, , , ,
, .
,
.
, Properties.
Properties (), . 17.3, , .
, . 17.3. Properties
()
. ,
. Properties , .
Module ()
Module () . , Module () Insert (). Module, . 17.4.
, . Module1.
. 17.4.
590
17
UserForm ( ) Toolbox ( )
UserForm, . 17.5, .
(, ,
..),
. , UserForm ( ) Insert (). ,
Toolbox, . 17.6. , , .
. 17.5.
. 17.6. Toolbox
Visual Basic
Visual Basic VBA. Visual Basic, . AutoCAD
(Application object) (Document object).
, , .
, , AutoCAD. , . Quit, ZoomAll, Runmacro
. Quit ; ZoomAll
.
Runmacro .
, .
,
, ,
.
, .
Visual Basic
591
, , .
, AutoCAD,
, AutoCAD. , .
.
1. Count (), , ( , ).
2. Add (), - () .
3. Close (), . - Items()
, :
Application.Documents.Item(1), 1 .
-, :
Application.Documents.Item(''), ( ).
, :
Documents.Open(_), _ .
, Activate() :
ThisDrawing.Application.Documents ("piston.dwg").Activate
piston.dwg , .
piston.dwg
Visual Basic ThisDrawing.
.
AutoCAD VBA.
VBA .
, AutoCAD . , , .
, , :
1) ;
2) ;
3) .
VBA
. , VBA:
Application.ActiveDocument.ModelSpace.AddArc(Start, End, Angle)
, Application.ActiveDocument ThisDrawing. :
ThisDrawing.ModelSpace.AddArc(Start, End, Angle)
592
17
, ,
, , , .
Visual Basic
( , ),
Windows.
, Toolbox , .
. Toolbox , ,
,
-. , ,
- (OOP Object-Oriented Programming),
, , ++, Visual Basic. ,
Visual Basic , - .
, , .
( ) AutoCAD , ,
. , AddLine . , ,
. , Line,
, Color (), Layer
(), Linetype ( ) Start X ( ).
Add
, Add, AddCircle, AddLine AddText.
, . , ,
. ,
, ,
. .
AddCircle
AddCircle . .
AutoCAD ,
, , ,
, . VBA, , AddCircle.
Visual Basic
593
AddCircle :
ThisDrawing.ModelSpace.AddCircle ,
, ;
, .
ThisDrawing.ModelSpace.AddCircle(cnt1,10)
cnt1
10. cnt1 .
ThisDrawing.ModelSpace.AddCircle(0,1,3, 8)
(0,1,3) 8.
, AddCircle,
. ,
( ), ,
, . point1 point2 , /
. , 1 . 19.
Basic (#) .
4,94065645841247E-324 1,79769313486232E308
1,79769313486232E308 4,94065645841247E-324.
ThisDrawing.ModelSpace.AddCircle point1, 3#
Set Circle2 = ThisDrawing.ModelSpace.AddCircle(point2, 4#)
AddLine
AddLine
, . AddLine :
ThisDrawing.ModelSpace.AddLine 1, 2
1 , ;
2 , .
ThisDrawing.ModelSpace.AddLine(x1,x2)
, x1 x2
(x1 x2 , ).
594
17
ThisDrawing.ModelSpace.AddLine(0,1,1, 5,8,0)
,
(0,1,1) (5,8,0).
AddArc
AddArc :
ThisDrawing.ModelSpace.AddArc , , _, _
, ;
, ;
_ , ; ;
_ , ; .
cnt1
rad. ang1, ang2.
.
ThisDrawing.ModelSpace.AddArc(0,0,0, 8, 3.4, 1.453)
AddText
AddText , . AddText :
ThisDrawing.ModelSpace.AddText _, 1, _
_ , ;
1 , ;
_ , .
Visual Basic
595
(IDE) , , AddLine,
AddCircle , . Visual
Basic, HelpMicrosoft Visual Basic Help.
AutoCAD 2004 Visual Basic, VBA,
AutoCAD, Excel, Word PowerPoint.
AutoCAD 2004 Developer Help Help. . 17.7 ActiveX and VBA
Developers Guide.
AutoCAD
Visual Basic Editor. , , , VBA
ActiveX Automation. Index
() Search (),
596
17
. VBA
,
Object Browser. Visual Basic
ViewObject Browser. AutoCAD, ,
, AcadModelSpace,
. 17.8.
<F1>, ModelSpace Collection,
,
.
VBA
VBA AutoCAD, ToolsMacroVisual Basic Editor ( Visual
Basic), . 17.9.
, (IDE
Integrated Development Environment), , . IDE
.
VBA .
, Save ()
File (). <Alt> , , . AutoCAD VBA
.dvb.
Visual Basic
597
1
, (5,5,0) 2 (. 17.10). . 17.11.
. 17.10. 1
. 17.11.
598
17
' UserForm1 2
' (5,5,0).
' , Draw Circle
Private Sub CommandButton1_Click()
Dim CenterPoint(0 To 2) As Double
Dim Radius As Double
'
CenterPoint(0) = 5
CenterPoint(1) = 5
1
2
3
4
5
6
7
8
9
10
599
Visual Basic
CenterPoint(2) = 0
Radius = 2
' OLE
ThisDrawing.ModelSpace.AddCircle CenterPoint, Radius
Unload Me
End Sub
11
12
13
14
15
16
17
13
,
. .
Rem ('). .
4
Private Sub CommandButton1_Click()
5 6
Dim CenterPoint(0 To 2) As Double
Dim Radius As Double
, AddCircle.
912
CenterPoint(0) = 5
CenterPoint(1) = 5
CenterPoint(2) = 0
Radius = 2
. X, Y Z.
15
ThisDrawing.ModelSpace.AddCircle CenterPoint, Radius
AddCircle ModelSpace,
ThisDrawing. , AddCircle (CenterPoint).
, ,
.
.
600
17
16
Unload Me
UserForm1 AutoCAD.
17
End Sub
, 4, .
Module1
Module1.
' Module1
Sub DrawCircle()
UserForm1.Show
End Sub
1
2
3
4
24
Sub DrawCircle()
UserForm1.Show
End Sub
,
,
. VBA Get,
.
GetPoint
GetPoint X Y X, Y Z, . - .
, ,
.
GetPoint :
P = ThisDrawing.Utility.GetPoint([], [])
Visual Basic
601
[] , ();
[] , ().
.
. pnt1.
pnt2 = ThisDrawing.Utility.GetPoint("Enter 2nd point")
. pnt2.
GetDistance
GetDistance . . GetPoint.
GetDistance :
d = ThisDrawing.Utility.GetDistance([], [])
[] , ();
[] , ().
,
, . d1.
x = ThisDrawing.Utility.GetDistance(p1, "Specify the height")
,
. x.
GetAngle
GetAngle ( ) .
,
, . , AutoCAD
. GetAngle ,
, .
602
17
GetAngle :
ang = ThisDrawing.Utility.GetAngle([], [])
ang , ;
[] ();
[] ,
().
,
. , , a1.
ang3 = ThisDrawing.Utility.GetAngle(p1, "Specify the center point")
, . ang3.
.
,
ANGBASE ANGDIR.
.
X ( , 3). X
ANGBASE, 0.
ANGBASE , 90- .
, , , , . , , ANGDIR. GetOrientation
, GetAngle, ANGBASE ANGDIR. , 3, ,
.
2
, P1, P2 P3,
. 17.13. GetPoint
AddLine. . 17.14 , .
1. AutoCAD , Start from
Scratch ( ) (
).
2. ToolsMacroVisual Basic Editor (
Visual Basic).
3. InsertModule ().
603
Visual Basic
. 17.13. ,
. 17.14.
2
4. , InsertUserForm
().
5. , . 17.14. ,
Toolbox.
6. , , ,
.
2 , ,
, .
'
' , .
'
' Start.
' pnt1, pnt2 pnt3.
' ().
Private Sub CommandButton1_Click()
UserForm1.Hide
pnt1=ThisDrawing.Utility.GetPoint(,"Provide the First Point:")
' , GetPoint
' " "
pnt2 = ThisDrawing.Utility.GetPoint(pnt1, "Second Point?")
'
ThisDrawing.ModelSpace.AddLine pnt1, pnt2
pnt3 = ThisDrawing.Utility.GetPoint(pnt2, "3rd Point?")
ThisDrawing.ModelSpace.AddLine pnt2, pnt3
ThisDrawing.ModelSpace.AddLine pnt3, pnt1
Unload Me
End Sub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
604
17
16, 11 13
, . .
Rem (').
.
7
Private Sub CommandButton1_Click()
8
UserForm1.Hide
9, 12 15
pnt1 = ThisDrawing.Utility.GetPoint(, "Provide the First Point:")
pnt2 = ThisDrawing.Utility.GetPoint(pnt1, "Second Point?")
pnt3 = ThisDrawing.Utility.GetPoint(pnt2, "3rd Point?")
15 G e t P o i n t .
- . GetPoint
, ,
.
14, 16 17
ThisDrawing.ModelSpace.AddLine pnt1, pnt2
ThisDrawing.ModelSpace.AddLine pnt2, pnt3
ThisDrawing.ModelSpace.AddLine pnt3, pnt1
AddLine , .
.
18 19
Unload Me
End Sub
UserForm1 ,
AutoCAD .
605
Visual Basic
Module2
Module2.
Option Explicit
Sub Triangle()
UserForm1.Show
End Sub
1
2
3
4
1
Option Explicit
. , , ,
. Variant.
24
Sub Triangle()
UserForm1.Show
End Sub
Triangle,
Macro name ( ) Macros ().
, MacroMacros () Tools
(). 14 Module2.
UserForm2. -, UserForm1, , ,
Module1 UserForm1, . 24 .
3
,
.
1. AutoCAD , Start from
Scratch ( ) (
).
2. ToolsMacroVisual Basic Editor (
Visual Basic).
3. InsertModule (). , , Restore
Window, .
4. Properties Window,
Standard.
5. Properties , ,
CreateCylinder.
606
17
PolarPoint AngleFromXAxis
PolarPoint
PolarPoint , ,
, .
:
P = ThisDrawing.Utility.PolarPoint (, , )
Visual Basic
607
, ;
, ;
, .
AngleFromXAxis
AngleFromXAxis ( ),
, . AngleFromXAxis :
ang = ThisDrawing.Utility.AngleFromXAxis(1, 2)
1 ;
2 .
1
, , (. 17.15). - .
,
, . , . 17.16.
. 17.15. , ,
. 17.16.
1
4
Visual Basic, (.. , P1 P2) (. 17.17). . (. 17.18)
TextBox. Toolbox.
1. Visual Basic.
2. ,
Insert.
3. , . 17.18, , Draw SAS Triangle.
.
608
17
. 17.17. ,
(SAS
Side Angle Side)
. 17.18.
3
4. ,
, ,
.
'
Const PI = 3.141592654
Public IncludedAngle As Double '-
Public Angle As Double '
Public Dist As Double '
1
2
3
4
5
6
' .
7
' "Draw SAS Triangle"
8
'
9
'
10
11
Private Sub CommandButton1_Click()
12
UserForm1.Hide
13
'p1 ;
14
'p2 ;
15
p1 = ThisDrawing.Utility.GetPoint(, "Enter or select 1st base point:") 16
p2 = ThisDrawing.Utility.GetPoint(p1, "Enter or select 2nd base point: ") 17
ThisDrawing.ModelSpace.AddLine p1, p2 '
18
If TextBox1.Text = "" Then
19
Angle = ThisDrawing.Utility.GetAngle(p2, "Enter angle from horiz.
or select included angle: ")
20
Else
21
Angle = ThisDrawing.Utility.AngleFromXAxis(p1, p2) + IncludedAngle 22
End If
23
If TextBox2.Text = "" Then
24
Dist = ThisDrawing.Utility.GetDistance(p2, "Enter or select dist.
from base point: ")
25
End If
26
p3 = ThisDrawing.Utility.PolarPoint(p2, Angle, Dist)
27
ThisDrawing.ModelSpace.AddLine p2, p3
28
ThisDrawing.ModelSpace.AddLine p1, p3
29
Unload Me
30
End Sub
31
32
609
Visual Basic
Private Sub TextBox1_Change()
IncludedAngle = PI - Val(TextBox1.Text)*PI/180 '
End Sub
Private Sub TextBox2_Change()
Dist = Val(TextBox2.Text)
End Sub
33
34
35
36
37
38
39
2
Const PI = 3.141592654
pi (), .
.
35
Public IncludedAngle As Double
Public Angle As Double
Public Dist As Double
, , . , ,
(), . , Double, AutoCAD,
.
712
'
' "Draw SAS Triangle"
'
'
Private Sub CommandButton1_Click()
CommandButton1_
Click(), 12.
- .
13
UserForm1.Hide
AutoCAD. , AutoCAD
, ,
.
1417
'p1 ;
'p2 ;
p1 = ThisDrawing.Utility.GetPoint(, "Enter or select 1st base point: ")
p2 = ThisDrawing.Utility.GetPoint(p1, "Enter or select 2nd base point: ")
610
17
AutoCAD, , .
1923 3335
If TextBox1.Text = "" Then
Angle = ThisDrawing.Utility.GetAngle(p2, "Enter angle from horiz. or
select included angle: ")
Else
Angle = ThisDrawing.Utility.AngleFromXAxis(p1, p2) + IncludedAngle
End If
Private Sub TextBox1_Change()
IncludedAngle = PI - Val(TextBox1.Text)*PI/180
End Sub
2426
If TextBox2.Text = "" Then
Dist = ThisDrawing.Utility.GetDistance(p2, "Enter or select dist. from
base point: ")
End If
, GetDistance.
3739
Private Sub TextBox2_Change()
Dist = Val(TextBox2.Text)
End Sub
,
,
.
18, 28 29
ThisDrawing.ModelSpace.AddLine p1, p2
ThisDrawing.ModelSpace.AddLine p2, p3
ThisDrawing.ModelSpace.AddLine p1, p3
AddLine ,
.
611
Visual Basic
Module3
, Module3.
Option Explicit
Sub SAS()
UserForm1.Show
End Sub
1
2
3
4
2
VBA , (,
P1 P2) , . 17.19.
, . 17.20.
. 17.19. ,
.
. 17.20.
2
3
Visual Basic , (.. , P1 P2)
, . 17.21.
, . 17.22.
. 17.21. ,
.
. 17.22.
3
612
17
AutoCAD 2004/2006 , VBA.
AutoCAD, Sample/VBA,
.
. , .
1. AutoCAD ,
, . (IDE Integrated Development Environment).
(/)
2. Visual Basic, ToolsMacrosVisual
Basic Editor ( Visual Basic). (/)
3. Visual Basic VBA. (/)
4. , , . (/)
5. , ,
, , , . (/)
6. ?
() AddArc
() AddCircle
() AddLine
()
7. ?
() GetPoint
() GetAngle
() GetDistance
()
8. ?
() ActiveDocument
() Application
() AddMethod
()
9. , , ________ .
() (Star)
() (Blank)
() (Dot)
()
Visual Basic
613
.
1. ________ AutoCAD
Microsoft Excel , ActiveX.
2. AutoCAD , ActiveX, , AutoCAD, , ________.
3. Visual Basic ________ .
4. Visual Basic ________, - .
5. ________,
AutoCAD , , .
6. ________ ,
, .
7. Visual Basic Editor IDE (Integrated Development
Environment), ________.
8. ________ ( .dvb) , , ,
Visual Basic AutoCAD.
9. ________ , ,
, ,
.
10. ________ , GetPoint.
11. ________ X ( , 3)
.
12. ________ X Y X, Y Z,
.
13. ________ AutoCAD.
14. ________ , ,
,
.
15. ________
.
16. ________ ( ) .
614
17
4
Visual Basic, , (. 17.23).
. 17.23. ,
5
Visual Basic,
S, (. 17.24). X ANG. P1, S ANG.
AutoCAD.
. 17.24. S, ANG
Visual Basic
615
6
Visual Basic, , ,
N ,
S (. 17.25). .
. 17.25. N , S
7
Visual Basic,
, . 17.26. , ,
.
AutoCAD.
. 17.26. L R
616
17
8
Visual Basic, , . 17.27.
. AutoCAD.
. 17.27. ,
9
Visual Basic, , . 17.28. ,
, .
AutoCAD.
, D1 ( ).
. 17.28.
Visual Basic
617
10
Visual Basic, , . 17.29.
. 17.29.
11
Visual Basic, , . 17.30.
. 17.30.
618
17
1
Visual Basic,
( ), . 17.31.
P0, L1 L2 ID, OD HD.
AutoCAD.
DIS (DIS = 1,25*HD). ,
( ) HID, CEN.
, 0,75 .
. 17.31.
2
320 200 . Q,
. . 17.32, :
X = Q + 160, Z = 240 X, Y = 120 Z R = Z/4. 40 ,
20 . .
. 17.32.
1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 .
18
, :
();
AutoCAD;
;
DBCONNECT MANAGER;
;
;
AutoCAD SQL Environment (ASE)
Query Editor;
,
Link Select;
ASE AutoCAD.
620
18
,
. . , . , , . , .
, ,
. 18.1. ,
. , COMP_CFG,
CPU, HDRIVE RAM. , . , ,
. , .
. 18.1. ,
.
,
. , ,
-.
()
( ), . PARADOX, dBASE, INFORMIX
ORACLE.
,
(. 18.2 18.3).
. 18.2. (
)
621
. 18.3. ( )
. . 18.2
. , ,
. , COMP_CFG (1) PENTIUM350, 4300MB,
64MB .. .
() (. . 18.3).
HDRIVE, . ,
, .
AutoCAD
AutoCAD ,
, AutoCAD. (Links)
,
. , AutoCAD (Labels), , ,
. AutoCAD
:
1. DBCONNECT MANAGER, ,
AutoCAD.
2. External Configuration Utility,
AutoCAD .
3. Data View, , ,
AutoCAD.
4. Query Editor, , SQL. (SQL, Sructured Query Language, .)
5. Migration Tool, , ,
AutoCAD 2004/2006.
622
18
AutoCAD, ODBC (Open Database Connectivity) OLE
(OLE DB Object Linking and Embedding Database). AutoCAD
, ,
, .
, , .
, , . , ,
() ,
Windows. ,
, .
, AutoCAD 2004/2006, dBASE, Oracle, Microsoft Access, PARADOX, Microsoft Visual FoxPro, SQL Server.
,
, .
DBCONNECT MANAGER
:
ToolsdbConnect
: DBCONNECT
DBCONNECT MANAGER, . 18.4, dbConnect.
,
. DBCONNECT MANAGER
,
.
.
DBCONNECT MANAGER AutoCAD.
, .
Drawing . 18.4.
, .
DBCONNECT MANAGER
Data Source .
AutoCAD Microsoft
Access (jet_dbsamples.udl).
DBCONNECT MANAGER .
623
1
Microsoft Access . jet_dbsamples.udl, .
1. DBCONNECT MANAGER,
DBCON NECT.
dbConnect, ,
Modify Window.
2. DBCONNECT MANAGER Data Sources ( ),
jet_dbsamples. ,
. 18.5.
.
DBCONNECT MANAGER
Configure (),
. 18.5.
3. Data Link Properties ( ), Connection () (. 18.6).
4. [...],
Data Link Properties ( Connection) Select or enter
a database name ( ).
Select Access Database ( Access), . 18.7. db_samples ( .mdb)
Open ().
624
18
Microsoft Jet, -
, .
, Data Link Properties, , AutoCAD.
5. , ,
Test Connection ( ). ,
Microsoft Data Link (
(Microsoft)), . 18.8.
. 18.8.
6. , OK, Microsoft Data Link
,
OK .
7. ,
jet_dbsamples DBCONNECT MANAGER. , .
.
DBCONNECT MANAGER , ,
AutoCAD. Data View ( ). , Read-only
( ). , . AutoCAD
.
625
Edit (). .
Read-only ( )
,
View Table ( ),
DBCONNECT MANAGER. View Table,
. View DataView
External Table ( ),
dbConnect. , , Read-only,
.
Edit ()
,
Edit Table ( ),
DBCONNECT MANAGER. Edit Table,
.
View DataEdit External Table ( ),
dbConnect.
2
Computer jet_dbsamples
. , , , .
1. DBCONNECT MANAGER, jet_dbsamples
Computer, , . Edit Table (
), . 18.9.
, .
2. Data View ( ), Computer.
, , ,
.
18.9. Edit
3. , - .
Table
.
Tag_Number 24675.
:
626
18
Manufacturer
Equipment_Description
Item_Type
Room
IBM
PIII/450, 4500GL, NETX
CPU
6035
CREATIVE
INFRA 6000, 40XR
CD DRIVE
6996
5. , ,
.
, Tag_Number,
Commit () . , , . ,
, . , ,
, . ,
Data View , ,
, .
, Restore () .
() , , AutoCAD. -
627
, .
, , ,
. .
,
Link Template ( ), ,
. ,
, Tag_Number,
Computer. . , .
. ,
, .
3
, Computer jet_dbsamples . Tag_Number.
1. , Computer.
2. DBCONNECT MANAGER.
jet_dbsamples Computer, ,
.
3. New Link Template ( ),
. 18.11, New Link Template (
). ,
New Link Template,
DBCONNECT MANAGER.
4. ComputerLink1.
, Continue (). Link Template ( ).
Tag_Number ,
, , .
628
18
5. , . DBCONNECT MANAGER, .
6. , Data View (
) , Computer.
24675 ( Tag_Number),
().
7. Link!
(!) (. 18.13).
Link! (!), Data View.
8. , .
, .
,
.
. 18.13. Link!
629
Data View and Query Options
( ), . 18.14. ,
Data View and Query Options ( ),
Data View.
Query Editor ( ) .
.
,
( Tag_Number) ( Room), . Link
Manager ( ).
.
630
18
4
Link Manager, ,
Computer, 24352 24675.
1. , Computer.
2. LinksLink Manager (
) . Link Manager
( ), . 18.15.
3. Column Values ( ), 24352
Value () .
4. (. 18.16) 24675 OK.
5. , OK, Link Manager.
, . ,
. , . ,
, .
, .
, Labels (). .
, , ,
AutoCAD. .
AutoCAD. .
631
.
;
.
,
.
, Label Template
( ).
.
5
Computer
, :
) Tag_Number, Manufacturer Item_Type;
) 0.25, Times New Roman,
(Color 18), (Middle-left);
) (Middle Center),
X=1.5 Y=1.5.
1. , , - .
2. DBCONNECT MANAGER, Tools dbConnect
( dbConnect). Computer
jet_dbsamples.
3.
New Label Template ( ) . New Label Template ( ),
. 18.17. , New Label Template,
DBCONNECT MANAGER.
4. ComputerLabel1.
, Continue (),
New Label Template. Label
Template ( ).
632
18
633
. 18.21.
. , , , .
, AutoCAD.
1. , , .
LabelReload ()
.
2.
, .
,
AutoCAD. , ,
, , . AutoCAD , -
634
18
, . , .
1. Export Template Set ( ),
TemplatesExport Template Set ( )
dbConnect. Look In (),
, .
2. File Name ( )
, Save ().
.
1. Import Template Set ( ),
TemplatesImport Template Set ( )
dbConnect (. 18.22).
2. , Open
().
. 18.22.
,
, , .
(ASE)
SQL (Structured Query Language ) ,
, . SQL (ASE AutoCAD
SQL Environment) , .
. ,
. ().
635
. , ASE , .
ASE, AutoCAD.
, AutoCAD 2004/2006 (SQL). , ,
25 . ,
Query Editor, , , .
AutoCAD
AutoCAD ,
.
. , SQL, Quick Query Range Query,
.
,
, . , Quick Query, ,
Query Builder. , ,
, . . , .
. ,
AutoCAD , , ,
. Query Editor
.
Quick Query
, , .
, , Item_Type
CPU.
Range Query
,
, . , , Room 6050,
6150.
Query Builder
, , . , , Item_Type
CPU, Room 6050.
636
18
SQL Query
, SQL 92. , ,
Item_Type, Room Tag_Number, :
Item_Type = 'CPU' And Room >= 6050 And Room <= 6150 And Tag_Number > 26072
6 , Query Editor.
6
Computer
SQL, Query Editor.
1. DBCONNECT MANAGER,
Computer New Query (
). New Query ( ), . 18.23. New Query, DBCONNECT MANAGER.
, Execute (),
Query Editor. , ,
.
637
638
18
639
, , .
SQL
, , , - . AutoCAD
, .
, .
,
.
1. Export Query Set ( ),
QueriesExport Query Set ( )
dbConnect. Look In (), ,
.
2. File Name ( )
, Save ().
.
1. Import Query Set ( ),
QueriesImport Query Set ( )
dbConnect (. 18.22).
2. , Open
().
,
, AutoCAD ,
.
AutoCAD , , - . , -
640
18
,
Computer, ,
.
, .
, AutoCAD ,
Link Select,
Query . 18.28.
Editor. AutoCAD.
.
, . .
. . 18.28.
, .
Link Select ( ).
. ,
.
.
, , .
.
(Link Select)
, . , , .
641
, Link Select, .
1. Link Select ( ), LinksLink
Select ( ) dbConnect (. 18.29).
, Use Query ( ).
, , Select in Drawing < ( ).
Data View ( ), Indicate records in data view ( ).
Indicate objects in drawing ( ),
AutoCAD .
642
18
643
AutoCAD 2004/2006
R13/R14
, AutoCAD 2004/2006, R13 R14 ( R12 AutoCAD 2004/2006 ). , , Save As ( )
(R13 R14). AutoCAD ,
, .
,
.
1. ________.
2. () ________.
3. ____.
4.
AutoCAD. (/)
5. Data View , ,
. (/)
6. AutoCAD
. (/)
7. , , AutoCAD
________.
8. AutoCAD : ______ ______.
9. AutoCAD , . (/)
10. ASE ________.
.
1. SQL , . (/)
2. .
3. ?
4. ()?
5. ________.
6. ________.
644
18
7. _____________
, .
8. .
________.
9. Query Editor , ________, ________, ________ ________.
10. , ,
, . (/)
11. , Query Editor. (/)
12. (Link Select) ______ Query Editor,
, AutoCAD .
13. AutoCAD
________.
14. , AutoCAD 2004/2006, ________
R12.
1 ()
, DBCONNECT MANAGER,
Employee jet_dbsamples
(EMP_ID = 1006, Keyser). ,
.
, , :
EMP_ID
LAST_NAME
FIRST_NAME
Gender
TITLE
Department
ROOM
1064
Joel
Billy
M
Marketing Execute
Marketing
6071
2 ()
Inventory jet_dbsamples SQL, Query Editor. :
1. Furniture.
2. 200 650.
3. Office master.
1 , 2 , 3 dbConnect, 4 , 5 , 6 , 7 , 8
, , 9 , 10 AutoCAD SQL Environment.
19
, :
;
, ,
;
;
,
;
;
AutoLISP .
646
19
(Geometry Calculator) ADS, , . , . ,
, , AutoCAD (,
MID, CEN END).
. , , 3.5^12.5*[234*log(12.5)-3.5*cos(30)].
AutoCAD.
AutoLISP. , AutoLISP ,
, .
CAL, CAL 'CAL ( )
.
,
/ . , / , .
:
2 + 3
15.5 - 3.754
12.34 * 4
345.5/2.125
25.5^2.5
()
4.5 + (4.35^2)
Command: CAL
... >>Expression: (4.5 + (4.35^2))
23.4225
647
, , :
a+(b^c)
Command: CAL
... >>Expression: [2,4,3]-[5,4,7.5]
-3.0 0.0 4.5
(CAL)
:
sin()
cos()
tan()
asin()
( 1 1)
acos()
( 1 1)
atan()
ln()
log()
648
19
exp()
exp 10()
sqr()
sqrt()
abs()
round()
trunc()
r2d()
, ,
d2r()
, ,
pi
, 3,14159
Command: CAL
... >>Expression: Sin(60)
0.866025
CAL . , . , ,
. , CAL (cen+end)/2,
(CENter),
(ENDpoint). , ,
2. , ,
.
CAL AutoCAD:
CAL
AutoCAD
END
ENDpoint ( )
EXT
EXTension ( )
INS
INSert ( )
INT
INTersection ( )
MID
MIDpoint ( )
CEN
CENter ( , )
NEA
NEArest ( )
NOD
NODe ( )
QUA
QUAdrant ( )
PAR
PARallel ( )
PER
PERpendicular ( )
TAN
TANgent ( )
649
1
CAL
( ), 34.
, 12 (. 19.1).
. 19.1. CAL
Command: Line ()
Specify first point: 'CAL
>> Expression: (cen+end)/2
>>Select entity for CEN snap:
>>Select entity for END snap: 12
Specify next point or [Undo]: 'CAL
>> Expression: (cen+end)/2
>>Select entity for CEN snap:
>>Select entity for END snap: 12
4 1 3 2,
. 19.1. 'CAL .
('), , (.. ). (cen+end)/2
, (CEN) (END).
,
2. , CAL, ,
,
.
rad.
, , .
2
, (R). , 0,75
(0.75*R), . 19.2.
650
19
. 19.2.
Command: CIRCLE
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:
2
Specify radius of circle or [Diameter] <current>: 'CAL
>>Expression: 0.75*rad
>>Select circle, arc or polyline segment for RAD function:
: CIRCLE
[3T/2T/KKP ( )]: 2
[]: 'CAL
>>: 0.75*rad
>> , RAD:
(>>Expression)
. 0.75*rad. rad , .
0,75. 0,75
.
, , ,
,
pld plt. pld pld(p1,p2,dist). , 12 dist
1. , pld pld(p1,p2,0.7),
1 2 1,5, 12
0,7 1.
plt plt(p1,p2,t). 12, ,
t. t=0, -
651
1. , t=1, 2. ,
t 0, 1 (0<t<1),
. , plt(p1,p2,0.3),
1,5, 0,3*1,5 = 0,45 1.
3
,
pld plt. 12 34 (. 19.3).
p l d p l t . 19.3.
pld(end,end,0.5) 12,
, 0,5 1.
. 19.3.
: CIRCLE
[3T/2T/KKP ( )]: 'CAL
>>: pld(end,end,0.5)
>> END: 1
>> END: 2
[] <>:
652
19
: CIRCLE
[3T/2T/KKP ( )]: 'CAL
>>: plt(end,end,0.5)
>> END: 3
>> END: 4
[] <>:
ang ,
. . ang (. 19.4):
ang(v)
ang(p1,p2)
ang(apex,p1,p2)
ang(apex,p1,p2,p)
. 19.4.
ang(v)
ang(v) , . , [2,2,0]. , :
653
Command: CAL
>>Expression: v=[2,2,0] ( v)
Command: CAL
>>Expression: ang(v) (v )
45.0
: CAL
>>: v=[2,2,0] ( v)
: CAL
>>: ang(v) (v )
45.0
v , 45 .
ang(1,2)
ang(1,2) ,
12 . ,
(1,1,0) (4,4,0) :
Command: CAL
>>Expression: 1=[1,1,0] ( 1)
Command: CAL
>>Expression: 2=[4,4,0] ( 2)
Command: CAL
>>Expression: ang(1,2)
45.0
, ,
:
Command: CAL
>>Expression: ang(end,end)
>>Select entity for END snap: 12
>>Select entity for END snap: 12
31.7134 (, )
: CAL
>>: ang(end,end)
>> END: 12
>> END: 12
31.7134 (, )
ang(apex,p1,p2)
ang(apex,p1,p2) , (apex,P1) (apex,P2), (. . 19.4).
:
Command: CAL
>>Expression: ang(end,end,end)
>>Select entity for END snap: ( )
654
19
: CAL
>>: ang(end,end,end)
>> END: ( )
>> END: (1)
>> END: (2)
51.41459 (, )
ang(apex,p1,p2,)
ang(apex,p1,p2,) , (apex,p1) (apex,p2), .
() .
12 34 :
ill(p1,p2,p3,p4)
1 2 , 3 4 , . 19.5. .
4
, 12 34. ,
(. 19.5).
,
, :
Command: Circle ()
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 'CAL
>>Expression: ill(end,end,end)
>>Select entity for END snap: 1
>>Select entity for END snap: 2
>>Select entity for END snap: 3
>>Select entity for END snap: 4
Specify radius of circle or [Diameter] <current>:
: CIRCLE
[3T/2T/KKP ( )]: 'CAL
>>: ill(end,end,end,end)
>> END: 1
>>
>>
>>
END:
END:
END:
[]
655
2
3
4
<>:
. 19.5.
ill(end,end,end,end)
ille.
, .
, .
5
, , 2 4 (. 19.6).
. ,
(end+end)/2. ,
mee, . 19.6.
Command: Circle (),
Draw ()
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 'CAL
>>Expression: mee
>>Select entity for MEE: 2
>>Select entity for MEE: 4
Specify radius of circle or [Diameter] <current>:
656
19
. 19.6. mee
6
,
. 0,5.
, . 19.7.
. 19.7. nee
, ,
, 0,5
.
nor(p1,p2), ,
12. nee. , .
.
Command: Circle Draw
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 'CAL
>>Expression: NEA+0.5*nee
>>Select entity for NEA snap:
657
: CIRCLE
[3T/2T/KKP ( )]: 'CAL
>>: NEA+0.5*nee
>> NEA:
>> NEA:
>> NEA:
[] <>: 0.5
7
, .
0,25 . ,
(. 19.8).
. 19.8. dee
658
19
AutoLISP
AutoLISP .
. AutoLISP ,
, - . AutoLISP .
8
,
, , 0,5 . :
.
,
, .
midpoint = (cen+cen)/2.
, , ,
: offset = [0,0.5]. (midpoint+offset) (. 19.9).
. 19.9.
Command: CAL
>>Expression: midpoint=(cen+cen)/2
>>Select entity for CEN snap: .
>>Select entity for CEN snap: .
Command: CAL
>>Expression: offset=[0,0.5]
Command: Circle Draw
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 'CAL
>>Expression: (midpoint+offset)
Specify radius or [Diameter] <current>:
659
: CAL
>>: midpoint=(cen+cen)/2
>> CEN: .
>> CEN: .
: CAL
>>: offset=[0,0.5]
: Circle Draw
[3T/2T/KKP ( )]: 'CAL
>>: (midpoint+offset)
[] <>:
,
offset midpoint:
Command: Circle Draw
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]: 'CAL
>>Expression: (midpoint-offset)
Specify radius or [Diameter] <current>:
, AutoLISP:
Command: (Setq NEWPORT "(CEN+CEN)/2+[0,0.5]")
Command: Circle Draw
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:
(cal NEWPORT) ( )
>>Select entity for CEN snap: .
>>Select entity for CEN snap: .
xyof(p)
X Y (p) ; Z
xzof(p)
X Z (p) ; Y
yzof(p)
Y Y (p) ; X
xof(p)
X (p) ; Y Z
yof(p)
Y (p) ; X Z
zof(p)
Z (p) ; X Y
rxof(p)
X (p)
ryof(p)
Y (p)
rzof(p)
Z (p)
660
19
9
, . , ,
. 19.10.
, .
1, Y 2. - rxof(end),
X, - ryof(end), Y. ,
X Y 3, 0,25 ,
[0.25,0,0].
. 19.10.
Command: Line ()
Specify first point: 'CAL
>>Expression: [rxof(end),ryof(end)]
>>Select entity for END snap: 1.
>>Select entity for END snap: 2.
Specify next point or [Undo]: 'CAL
>>Expression: rxof(end)+[0.25,0,0]
>>Select entity for END snap: 3.
: Line ()
: 'CAL
>>: [rxof(end),ryof(end)]
>> END: 1.
>> END: 2.
[]: 'CAL
>>: rxof(end)+[0.25,0,0]
>> END: 3.
cvunit. ,
,
661
. ,
. acad.unt,
ASCII. cvunit :
cvunit( , , )
Command: CAL
>>Expression: cvunit(100,cm,inch)
>>Expression: cvunit(100,feet,meter)
>>Expression: cvunit(1,feet,inch)
39.3701
30.48
12.0
. , , .
abs()
abs(v)
ang(v)
, X v
ang(p1,p2)
, X p1-p2
cur
cvunit(val,from,to)
(val)
(from) (to)
dee
; dist(end,end)
getvar()
AutoCAD
ill(p1,p2,p3,p4)
p1-p2 p3-p4
ille
, ; ill(end,end,end,end)
mee
, ; (end+end)/2
nee
, , ; nor(end,end)
nor
nor(v)
, XY v
nor(p1,p2)
, XY p1-p2
nor(p1,p2,p3)
, , p1,p2 p3
pld(p1,p2,dist)
, p1-p2 p1 dist
plt(p1,p2,t)
662
19
rad
rot(p,org,ang)
, ang org
u2w(p)
vec(p1,p2)
, p1 p2
vec1(p1,p2)
, p1 p2
vee
vec(end,end)
vee1
;
vec1(end,end)
w2u(p)
,
.
1. / . (/)
2. . (/)
3. ill . (/)
4. dee
. (/)
5. dist(p1,p2) ________.
6. xzof(p) ________ P ;
Y (0.0).
7. nor(v) ________, XY v.
8. ang(v) , ________ v.
9. ________ ,
X P1P2.
10. nee ________.
.
1. AutoCAD.
(/)
663
2. AutoLISP . (/)
3. rad . (/)
4. ang(v) , 12. (/)
5. ?
a)
)
)
)
abs(real)
abs(P1,P2)
abs(val)
6. X Y
?
a)
)
)
)
xyof(p)
zxof(p)
xy(p)
7.
, 12 d 1?
a)
)
)
)
plt(p1,p2,d)
pld(p1,p2,d)
plt(p2,p1,d)
8. Y ?
a)
)
)
)
xyof(p)
xof(p)
yof(p)
9. vec(end,end).
a)
)
)
)
vee
eve
vem
10. ________ , ,
.
11. ________
.
12. ________ , ang org.
13. pld ________.
14. plt ________.
15. , ,
________.
664
19
1 ()
, . 19.11. (L), (H)
(TL), .
2 ()
, . 19.12; .
3, ,
1 2. , . 1 2, , .
. 19.11. 1
. 19.12. 2
3 ()
, . 19.13; .
1. 3, , 1 2. , 1
2 .
2. 4,
12 0,25 .
3. 4.
1 ()
, . 19.14; .
1. 3. ,
3, , 1 2. , 1 2
.
665
2. , 0,75
. 5,
, 3 4.
. 19.13. 3
. 19.14. 1
1 , 2 , 3 , 4 , 5 dee, 6 X Z, 7 , 8 , 9 ang(p1,p2), 10 nor(p1,p2).
AutoCAD
, AutoCAD 2004/
2005/2006, :
1. : Windows NT 4.0 SP 6a
( AutoCAD 2004), Windows 2000 SP 4, Windows XP (Home, Professional
Tablet PC).
2. 256 ().
3. Pentium III 500 (
AutoCAD 2004) 800 ( AutoCAD 2005/2006).
4. 300 .
5. 64 .
6. AutoCAD 10 .
7. ,
, 2,5 .
8. ( ) CD-ROM .
9. 1024768 True Color
().
10. - (
Wintab).
11. Web- Microsoft Internet Explorer 6.0.
12. ( ).
13. .
AutoCAD
667
:
1. .
2. .
3. .
AutoCAD
, AutoCAD . , Windows.
,
AutoCAD 2004 ( ).
1. , AutoCAD 2004 .
2. AutoPlay () , AutoCAD 2004
- InstallShield Wizard. (AutoPlay () Windows,
, .. .exe. ,
<Shift> - CD-ROM
.) , , Welcome ( ).
3. Install ().
AutoCAD 2004 Setup, Welcome to AutoCAD 2004 Installation
Wizard. Next () , Autodesk Software License Agreement
( ).
4. , I accept (), Next (), ;
Serial Number ( ).
5. , Next (). ( - AutoCAD 2004.)
, User Information
( ). , Next ().
6. Select Installation Type ( )
(Typical (), Full (), Compact
() Custom ()).
, Full ( ).
AutoCAD.
Next (). Destination
Folder ( ).
7. , AutoCAD. C:\Program Files\AutoCAD 2004.
668
- , Browse ()
. Choose Text Editor ( ), Next ().
8. Notepad
(). , .
Next (); Start Installation
( ).
9. , Next ().
, , , Setup Complete
( ). , Finish ().
AutoCAD
3D
3DARRAY
, .
:
R ;
P
.
:
B ;
C ;
DI
( )
;
DO
( )
;
M
N;
P ;
S , ;
T ;
,
;
W ; , ,
670
3DCLIP
3DCONFIG
(
AutoCAD 2004)
3DCORBIT
3DDISTANCE
3DDWFPUBLISH
DWF (
AutoCAD 2006)
3DFACE
, .
:
First point ( );
I Invisible ()
3DMESH
3DORBIT
3DORBITCTR
,
( AutoCAD 2004)
3DPAN
3DPOLY
(),
.
:
;
C
;
U
3DSIN
, , 3D Studio
3DSOUT
, AutoCAD, , 3D Studio
3DSWIVEL
3DZOOM
ABOUT
AutoCAD,
ACISIN
ACISOUT
ADCCLOSE
ADCENTER
AutoCAD
ADCNAVIGATE
AutoCAD ,
ALIGN
AutoCAD
671
AMECONVERT
APERTURE
APPLOAD
ARC
.
, .
:
A ;
C ;
D ;
E ;
L ;
R
ARCHIVE
,
( AutoCAD 2005)
AREA
,
.
:
A ;
F (, );
O ;
S
ARRAY
Array (),
Rectangular Array ( ) Polar Array (
)
ARX
, ARX-
ASSIST
.
,
ATTDEF
( ).
:
I Invisible: ;
C Constant: ;
V Verify: ;
P Preset: ,
ATTDISP
.
:
ON ;
OFF ;
N
ATTEDIT
.
:
Y ( );
N ( )
672
ATTEXT
ATTREDEF
ATTSYNC
AUDIT
.
:
Y ;
N
BACKGROUND
BASE
BATTMAN
BHATCH
BEDIT
; , (
AutoCAD 2006)
BACTION
( AutoCAD 2006)
BACTIONSET
,
( AutoCAD 2006)
BACTIONTOOL
, (
AutoCAD 2006)
BASSOCIATE
(
AutoCAD 2006)
BATTORDER
(
AutoCAD 2006)
BAUTHORPALETTE
BAUTHORPALETTECLOSE
BCLOSE
.
:
C CDF: ;
D DXF: ;
S SDF: ;
O
AutoCAD
673
BCYCLEORDER
BGRIPSET
, ,
( AutoCAD 2006)
BLOCKUPTABLE
( AutoCAD 2006)
BPARAMETER
(
AutoCAD 2006)
BSAVE
( AutoCAD 2006)
BASAVEAS
( AutoCAD 2006)
BVHIDE BVSHOW
( AutoCAD 2006)
BVSTATE
, ,
( AutoCAD 2006)
'BLIPMODE
, .
:
ON ;
OFF
BLOCK
,
.
:
?
BLOCKICON
,
AutoCAD
BMPOUT
.bmp
BOUNDARY
, .
:
A
BOX
,
XY.
:
C ;
CE
BREAK
.
:
F
BROWSER
Web-,
'CAL
CAMERA
( AutoCAD 2006)
674
CHAMFER
CHANGE
.
:
C , , , , ;
P , , , ,
,
CHECKSTANDARDS
, . Check Standards ()
CHPROP
.
:
C ;
LA ;
LT ;
S ;
LW ;
T ;
PL
CIRCLE
.
:
C ( );
3P , ;
2P ;
TTR
CLOSE
,
,
CLOSEALL
. , ,
,
COLOR
.
:
(1255);
;
Byblock
;
Bylayer ,
COMMANDLINE
( AutoCAD 2006)
COMMANDLINEHIDE
( AutoCAD 2006)
COMPILE
PostScript
( ).
:
A
;
D ;
P ;
T ;
(Trim)
AutoCAD
675
CONE
CONVERT
,
AutoCAD R13
CONVERTCTB
CONVERTPSTYLES
COPY
. , ,
.
:
M COPY ()
COPYBASE
COPYCLIP
COPYHIST
COPYLINK
OLE
CUI
CUIEXPORT/
CUIIMPORT
.cui
( AutoCAD 2006)
CUILOAD/CUIUNLOAAD
/ .cui (
AutoCAD 2006)
CUTCLIP
CYLINDER
.
:
;
E ,
DBCCLOSE
dbConnect Manager
DBLCLKEDIT
. ON,
, .
OFF
DBCONNECT
DBLIST
DDEDIT
,
,
DDPTYPE
, -
.
:
;
E
676
DDVPOINT
DELAY
. ,
DIM DIM1
AutoCAD
DIMALIGNED
DIMANGULAR
DIMARC
(
AutoCAD 2006)
DIMBASELINE
. ,
DIMCENTER
DIMCONTINUE
. .
,
DIMDIAMETER
DIMDISASSOCIATE
,
,
DIMEDIT
.
:
H ;
N ;
R ;
O
DIMHORIZONTAL
( AutoCAD 2004)
DIMJOGGED
, ; ( AutoCAD 2004)
DIMLINEAR
DIMORDINATE
DIMOVERRIDE
, .
DIMRADIUS
DIMREASSOCIATE
DIMREGEN
DIMROTATED
( AutoCAD 2004)
AutoCAD
677
DIMSTYLE
DIMTEDIT
.
:
A ;
H , ;
;
L ;
R
DIMVERTICAL
( AutoCAD 2004)
DIST
DIVIDE
()
.
:
B
DONUT
DRAGMODE
.
:
ON ;
OFF ;
A ,
DRAWINGRECOVERY/
DRAWINGRECOVERYHIDE
DRAWORDER
DSETTINGS
, ,
DSVIEWER
Aerial View ( )
.
:
R ;
S ;
ST ;
V , ;
A ;
?
678
DVIEW
DWGPROPS
DXBIN
EATTEDIT
EATTEXT
.
,
. EATTEXT Attribute
Extraction Wizard,
EDGE
. .
:
D
EDGESURF
ELEV
ELLIPSE
.
.
:
A ;
C ;
I
ETRANSMIT
. EXE-,
, ZIP,
ERASE
EXPLODE
( ,
, , , ,
, )
.
:
CA
();
TA ;
D ;
PO ;
PA ;
Z / ;
TW ;
CL ;
H ;
OFF ;
U DVIEW
AutoCAD
679
EXPORT
EXTEND
.
:
P , , UCS View;
E ;
U
EXTRUDE
. , Z-.
:
P
FIELD
( AutoCAD 2005)
FILL
, , .
:
ON ;
OFF
FILLET
(..
). , , .
:
P ;
R ;
T .
FILTER
FIND
, ,
FOG
GRADIENT
(
AutoCAD 2006)
GRAPHSCR
GRID
.
:
X ;
ON ;
OFF ;
S ;
X Y
680
GROUP
HATCH
.
:
? , acad.pat;
,
acad.pat;
U
( U );
S (.. )
HATCHEDIT
. ,
, .
:
D ;
S ;
P
HELP (<F1>)
HIDE
HLSETTINGS
(
AutoCAD 2004)
HYPERLINK
HYPERLINKOPTIONS
.
:
Y ;
N
ID
IMAGE
AutoCAD
IMAGEADJUST
IMAGEATTACH
IMAGECLIP
,
.
:
? ;
O ;
;
R ;
E ;
REN ;
S ;
C
AutoCAD
681
IMAGEFRAME
IMAGEQUALITY
.
:
H ;
D
IMPORT
AutoCAD
INK...
, AutoCAD c
TabletPC ( AutoCAD 2006)
INKBORDERDISPLAY
( AutoCAD 2006)
INKCOLOR
( AutoCAD 2006)
INKGESTURE
(
AutoCAD 2006)
INKHILITE
( AutoCAD 2006)
INKOLECREATE
OLE- (
AutoCAD 2006)
INKPENWIDTH
( AutoCAD 2006)
INKRECO
( AutoCAD 2006)
INKRLINE
/ ( AutoCAD 2006)
INKTRANSPARENCY
( AutoCAD 2006)
INSERT
INSERTOBJ
INTERFERE
INTERSECT
ISOPLANE
,
.
:
L ;
T ;
R
JPGOUT
JOIN
( AutoCAD 2006)
JUSTIFYTEXT
.
:
ON ;
OFF
682
LAYER
LAYERP
. ,
LAYERS. , LAYERP .
,
LAYERPMODE
.
:
ON
LAYOUT
, , .
:
C ;
D ;
N ;
T ;
R ;
SA ;
S ;
?
LAYOUTWIZARD
LAYTRANS
LEADER
,
.
, .
- .
:
A -;
F ( ,
);
U
.
:
? ;
;
S ;
N ;
ON ;
OFF ;
C ;
L ;
LW ;
P ;
PS ;
F , ;
T ;
LO , ;
U
AutoCAD
683
LENGTHEN
LIGHT
.
, , . ,
( , )
LIMITS
( WCS)
.
:
Lower
;
ON ;
OFF
LINE
.
:
<Enter> ;
U ;
C
LINETYPE
,
.
.
:
? , ;
C ;
L ,
;
S
LIST
(, ,
X, Y Z, ..)
LOAD
, , SHAPE
LOGFILEOFF
LOGFILEON
LSEDIT
LSLIB
LSNEW
.
:
DE ;
P
;
T ;
DY
684
LTSCALE
LWEIGHT
MARKUP/MARKUPCLOSE
MASSPROP
- . : ,
, ,
.
,
, .
,
MATCHCELL
(
AutoCAD 2005)
MATCHPROP
MATLIB
Materials Library ( ),
( ) , ( ).
MEASURE
.
:
B ,
MENU
.
,
MENULOAD
Menu Customization ( ),
(
AutoCAD 2006)
MENUUNLOAD
MINSERT
.
:
? ;
~
MIRROR
AutoCAD
685
MIRROR3D
MLEDIT
MLINE
().
:
J Justification () ,
;
S Scale () ;
ST
MLSTYLE
Multiline Styles,
,
, ,
, .
(, , , )
( , , )
MODEL
Model (
)
MOVE
MREDO
MSLIDE
MSPACE
MTEXT
.
,
MULTIPLE
( )
.
:
3points
;
O
;
L
, ;
Z
Z;
V , ;
XY/YZ/ZX
686
MVIEW
MVSETUP
. MVSETUP
TILEMODE. ON (1), ,
, .
TILEMODE OFF (0), .
(TILEMODE OFF):
A ; ,
, ;
C ;
S ;
O (Options) ,
, ,
;
T ;
U
NETLOAD
.dll,
Microsoft .Net Framework ( AutoCAD 2005)
NEW
NEWSHEETSET
OFFSET
, ,
.
:
;
T (Through) ,
OLELINKS
, OLE-
, .
.
:
ON ;
OFF ;
H (Hideplot) ;
F (Fit) ,
;
L ;
O ,
;
P ;
2 , ;
3 ;
4 ;
R (Restore)
AutoCAD
687
OLESCALE
OOPS
, ERASE
()
OPEN
Select File ( ), .
, ,
,
OPENDWFMARKUP
OPENSHEETSET
(
AutoCAD 2005)
OPTIONS
Options (),
AutoCAD
ORTHO
,
.
:
ON ;
OFF
OSNAP
.
:
END ( ,
), , ,
,
;
MID , , , , , , ,
;
INT , , ,
, , , ;
EXT ;
APP , ,
, , , ,
(..
);
CEN , , ;
QUA , ( ,
0, 90, 180 270);
PER , ,
, , , , , , ;
TAN , , ;
NOD ;
INS , , ;
NEA , , ,
, , , ;
QUI ;
NON
OLE-
688
PAGESETUP
PAN
( )
PARTIALCUI
PARTIALOAD
PARTIALOPEN
PASTEBLOCK
Windows
PASTECLIP
Windows
PASTEORIG
, ,
,
PASTESPEC
Windows
PCINWIZARD
- 2-
Model
PEDIT
, .
( ):
C ;
O ;
J ;
W ;
E (
);
X ,
, , , , ;
F
;
S ;
L ;
U .
( ):
C ;
O ;
E ; ,
() ,
, ;
S ;
D ;
U ;
X
AutoCAD
PEDIT
689
.
:
E ( X);
X
, X
N-, X - ;
S ;
D ;
Mclose M- ;
Mopen M- ;
Nclose N- ;
Nopen N- ;
U ,
PEDIT
PFACE
PLAN
().
:
C ;
U ;
W ()
PLINE
.
,
.
:
A ( ) ;
, , , ;
,
;
C ;
H ;
L ;
U ;
W
PLOT
Plot (), . ,
, ,
,
, . ,
PLOTSTAMP
PLOTSTYLE
690
PLOTTERMANAGER
PNGOUT
PNG (
AutoCAD 2004)
POINT
-,
POLYGON
( ),
.
:
C .
:
I ;
C ;
E
PREVIEW
PROPERTIES
Properties ()
PROPERTIESCLOSE
Properties ()
PSETUPIN
PSPACE
PUBLISH
DWF (Design Web Format)
,
PUBLISHTOWEB
PURGE
.
:
B ;
D ;
LA ;
LT ;
P ;
SH ;
ST ;
;
QDIM
QLEADER
QNEW
AutoCAD
QSAVE
QSELECT
Plotter Manager,
Add-A-Plotter Wizard Plotter
Configuration Editor
AutoCAD
691
QTEXT
QUICKCALC/
QCCLOSE
QUIT
RAY
(),
( )
RECOVER
RECTANG
REDEFINE
AutoCAD,
UNDEFINE
REDO
UNDO
REDRAW
,
, ,
REDRAWALL
REFCLOSE
REFEDIT
REFSET
REGEN
REGENALL
REGENAUTO
. :
ON ;
OFF
REGION
( )
REINIT
-, ( ), AutoCAD
RENAME
.
:
B ;
D ;
LA ;
LT ;
S ;
U ();
VI ;
VP
.
:
ON ;
OFF
AutoCAD
692
RENDER
Render,
, .
.
REPLAY
RESETBLOCK
( AutoCAD 2006)
RESUME
REVCLOUD
.
:
Object () ,
;
Arc Length ( ) ,
REVOLVE
()
(, ,
, , ..).
:
;
O
;
X ;
Y Y
REVSURF
RMAT
Materials (),
, .
.
.
AutoCAD
RMLIN
, ,
. (RML Redline Markup Language) , MARKUP
ROTATE
.
:
;
R
AutoCAD
693
ROTATE3D
.
:
2points ;
A (Axis by object) ;
L ,
;
V ;
X/Y/Z ( X,
, Z)
RPREF
Rendering Preferences, , ,
RENDER
. ,
,
.
RSCRIPT
RULESURF
,
,
SAVE
SAVEAS
, ,
SAVEIMG
Save Image,
. , TGA TIFF
SCALE
. .
:
R
SCALELISTEDIT
(
AutoCAD 2006)
SCALETEXT
SCENE
( ) . ,
, ,
,
SCRIPT
()
694
SECTION
SECURITYOPTIONS
(
AutoCAD 2004)
SELECT
, .
:
AU ;
( Add) ;
ALL ;
BOX , ;
C ,
, ;
CP , ,
;
F , ;
G , ;
L ;
;
P ;
R ( Remove) ,
;
SI ;
U ;
W , ,
;
WP , , ,
SETIDROPHANDLER
AutoCAD
( AutoCAD 2004)
SETUV
SETVAR
.
:
?
.
:
3points ;
O ;
Z ()
;
V
;
XY XY ;
YZ YZ ;
ZX ZX
AutoCAD
SHADEMODE
.
:
695
2D ,
;
3D ,
;
3D wireframe
;
H , ;
F , ;
G ;
L Flat Shaded Wireframe;
O Gouraud Shaded Wireframe
SHAPE
.
:
?
SHEETSET/
SHEETSETHIDE
Sheetset Manager (
AutoCAD 2005)
SHELL
AutoCAD
SHOWMAT
SIGVALIDATE
,
( AutoCAD 2004)
SKETCH
.
:
P (Pen)
;
X SKETCH;
Q
SKETCH;
R ;
E ;
C , ;
(.) ()
696
SLICE
.
:
3points , ;
O ,
(, , , );
Z , , Z;
V ,
;
XY , XY;
YZ , YZ;
ZX , ZX
'SNAP
.
:
ON ;
OFF ;
X Y;
R ;
S ( );
T ( )
SOLDRAW
, SOLVIEW
SOLID
, (.. ,
)
SOLIDEDIT
SOLPROF
SOLVIEW
SPACETRANS
AutoCAD ( )
SPELL
, . ,
SPHERE
.
:
R ;
D
AutoCAD
697
SPLINE
SPLINEDIT
.
:
F ,
.
:
;
C ;
O ;
D ;
M ;
P ;
T ,
;
L
;
X ;
C ;
O ;
(Move Vertex) ()
;
R
, ,
;
E ;
U SPLINEDIT
STANDARDS
STATS
Statistics (), .
STATUS
STLOUT
ASCII-
STL
STRETCH
(, )
STYLE
Text Style ( ),
STYLESMANAGER
.
:
.
:
;
C ;
F (Fit tolerance)
;
O -
698
SUBSTRACT
SYSWINDOWS
. Window (),
Windows
TABLE
(
AutoCAD 2005)
TABLEDIT
;
( AutoCAD 2005)
TABLEEXPORT
CSV (
AutoCAD 2005)
TABLESTYLE
(
AutoCAD 2005)
TABLET
.
:
ON ;
OFF ;
CAL ;
CFG
TABSURF
,
,
TEXT
.
:
;
J .
:
A ;
F ;
C ;
;
R ;
TL ;
TC ;
TR ;
ML ;
MC ;
MR ;
BL ;
BC ;
BR ;
S ,
TEXTTOFRONT
( AutoCAD 2005)
TEXTSCR
AutoCAD
TIFOUT
TIFF (
AutoCAD 2004)
( )
AutoCAD
699
TIME
.
.
:
D ;
O ;
OFF ;
R "0"
TINSERT
(
AutoCAD 2005)
TOLERANCE
Geometric Tolerance ( ),
TOOLBAR
TOOLPALETTES
ToolPalettes ( ),
TOOLPALETTESCLOSE
ToolPalettes
TORUS
.
:
R ;
D . ( , .
( )
( ) ,
.)
TRACE
( )
TRANSPARENCY
TRAYSETTINGS
Windows (
AutoCAD 2004)
TREESTAT
,
.
,
, .
TRIM
, .
:
P ;
E ;
U TRIM;
O ;
U
700
UCS
().
:
W ;
N ;
;
G ;
P ;
R ;
S ;
D ;
;
?
UCSICON
, .
:
ON ;
OFF ;
;
N ;
OR
;
P UCS Icon ( ) ,
UCSMAN
UNDEFINE
AutoCAD
UNDO
.
:
N ( U);
C UNDO;
BE , ;
E ;
M (Mark) ;
B (Back)
UNION
UNITS
UPDATEFIELD
( AutoCAD 2005)
UPDATETHUMBSNOW
Sheet Set
Manager ( AutoCAD 2005)
VBAIDE
Visual Basic
VBALOAD
VBA AutoCAD
VBAMAN
, , , ,
VBA
AutoCAD
701
VBARUN
VBA
VBASTMT
VBA- AutoCAD
VBAUNLOAD
VBA
VIEW
View (),
, ,
VIEWPLOTDETAILS
(
AutoCAD 2005)
VIEWERS
VLISP
VPCLIP
VPLAYER
.
:
? , ;
F ,
;
T ,
;
R ;
N , ;
V (Viewport Visibility Default)
VPMAX/VPMIN
AutoCAD ( AutoCAD 2005)
VPOINT
.
:
<Enter> ,
;
V , ;
R
VPORTS
VSLIDE
VTOPTIONS
( AutoCAD 2006)
WBLOCK
702
WEDGE
WHOHAS
WIPEOUT
WMFIN
Windows
WMFOPTS
WMFIN
WMFOUT
Windows
WORKSPACE
( AutoCAD 2006)
WSSAVE
( AutoCAD 2006)
WSSETTINGS
, Workspace
( AutoCAD 2006)
XATTACH
XBIND
()
XCLIP
.
:
ON ;
OFF , ;
C ;
D ;
P , ;
N
XLINE
( ).
:
,
;
H ;
V ;
, ;
B ( , );
O ,
, .
:
.
:
;
C ;
L , ;
CE
AutoCAD
703
XOPEN
XPLODE
, .
:
G .
:
E ;
, , ;
C ;
LA ;
LT ;
I ;
IS
XREF
Xref Manager
ZOOM
.
:
Scale (X/XP)
;
Scale X ;
Scale XP ;
;
C ;
D ;
E ;
S ;
W , , ;
Realtime ( )
-
. ,
AutoCAD
ACADLSPASDOC
ACADPREFIX
ACADVER
ACISOUTVER
AFLAGS
ANGBASE
acad.lsp,
,
AutoCAD
ACADPREFIX , AutoCAD.
.
ACADVER
AutoCAD.
$ACADVER (DXF-),
.
ACISOUTVER ACIS- SAT-, ACISOUT.
40
AFLAGS ATTDEF.
0. AFLAGS :
0 , 1 , 2 , 4 , 8
ANGBASE .
0,0000
AutoCAD
705
ANGDIR
ANGDIR
.
0.
0 , 1
APBOX
APBOX
(AutoSnap). 0
, 1 ( )
APERTURE
APERTURE
. . 10
APSTATE
APBOX . 0
AREA
, AREA,
LIST DBLIST. AREA
.
SETVAR
ASSISTSTATE
ATTDIA
ATTDIA
INSERT ( ).
.
0.
0 , 1
ATTMODE
ATTMODE
.
. 0 , 1 ( ),
2
ATTREQ
ATTREQ ,
INSERT , . 0
, , 1 ( )
(
ATTDIA)
AUDITCTL
AUDITCTL (
.adt) AUDIT.
.
0 .adt (
), 1 .adt
706
AUNITS
AUPREC
AUTOSNAP
BACKGROUNDPLOT
BACKZ
BACTIONCOLOR
BDEPENDENCYHIGHLIGHT
BGRIPOBJCOLOR
BGRIPOBJSIZE
BINDTYPE
AUNITS .
. 0 ( ), 1 //, 2 (), 3 , 4
AUPREC
(
).
, 0
AUTOSNAP ,
.
7.
0 , , 1 , 2
, 4
;
( AutoCAD 2005). 0 ; , 1 ;
, 2
; ( ), 3
;
BACKZ
( ).
( ), BACKZ
.
, , Block
Editor ( AutoCAD 2006). 7
, Block Editor (
AutoCAD 2006). 0 ; 1
( )
, Block Editor ( AutoCAD 2006).
141
, Block Editor (
AutoCAD 2006).
1 255. 8
.
. 0
( ), 1
AutoCAD
BLIPMODE
BLOCKEDITLOCK
BLOCKEDITOR
BPARAMETERCOLOR
BPARAMETERFONT
BPARAMETERSIZE
BTMARKDISPLAY
BVMODE
CALCINPUT
CDATE
CECOLOR
CELTSCALE
CELTYPE
707
BLIPMODE . . 0 ( ), 1
BLOCKEDITLOCK
( AutoCAD 2006).
0 ( ), 1
BLOCKEDITOR
Block Editor (
AutoCAD 2006). 0
BPARAMETERCOLOR
, Block Editor
( AutoCAD 2006). 7
BPARAMETERFONT
, , Block
Editor ( AutoCAD 2006).
Simplex.shx
BPARAMETERSIZE
,
Block Editor (
AutoCAD 2006). 1 , 255 . 12
BTMARKDISPLAY (
AutoCAD 2006). 0 , 1
( )
BVMODE , Block Editor
( AutoCAD 2006). 0 ( ), 1 (, )
CALCINPUT
( AutoCAD 2006). 0 , 1 <End>
( )
CDATE
CECOLOR
.
.
BYLAYER (256)
CELTSCALE . . 1.0000
CELTYPE , .
. ByLayer ()
708
CELWEIGHT
CENTERMT
CHAMFERA
CHAMFERB
CHAMFERC
CHAMFERD
CHAMMODE
CIRCLERAD
CLAYER
CLISTATE
CMDACTIVE
CMDECHO
CELWEIGHT
.
. 1
ByLayer () ( ), 2 ByBlock
(), 3
Default ( ) (
LWDEFAULT)
CENTERMT , (
AutoCAD 2006). 0 ( ), 1
;
CHAMFERA
. . 0.5000
CHAMFERB
. . 0.5000
CHAMFERC .
.
1.0000
CHAMFERD .
.
0.0000
CHAMMODE
. 0 ( ), 1
CIRCLERAD , .
0.0000
CLAYER .
. 0
CLISTATE , ( AutoCAD 2006). 1
CMDACTIVE ,
,
, , () .
: 1 , 2
, , 4
( ), 8
, 16 AutoLISP
CMDECHO -
( AutoCAD)
AutoLISP. . 0
, 1
( )
AutoCAD
709
CMDINPUTHISTORYMAX
, ;
INPUTHISTORYMODE ( AutoCAD 2006).
20
CMDNAMES
CMDNAMES
.
CMLJUST
CMLJUST .
. 0
, 1
( ), 2
CMLSCALE
CMLSCALE
. , 3,0
,
, . 0, .
.
. 1.0000
CMLSTYLE
CMLSTYLE
,
. .
STANDARD
COMPASS
COMPASS
.
0 , 1
COORDS
COORDS
. . 0
, 1 ( ), 2 ,
CPLOTSTYLE
. AutoCAD ByLayer
(), ByBlock (), Normal ()
User Defined ( )
CPROFILE
CPROFILE
.
.
Unnamed Profile.
710
CROSSINGCOLOR
( AutoCAD 2006). 3
CTAB
CTAB
(Model ).
.
CTABLESTYLE
CTABLESTYLE
( AutoCAD 2005).
Standard
CURSORSIZE
.
5
CVPORT
CVPORT .
, : 1
, 2
( ), 3
.
DATA
DATA ,
.
DBMOD
DBMOD ,
. .
DBMOD : 0 , 1 , 2
, 4
, 8 , 16
DCTCUST
DCTCUST
.
.
DCTMAIN
DCTMAIN .
\Support.
SETVAR.
.
DEFLPLSTYLE
DEFLPSTYLE
. .
AutoCAD
711
DEFPLSTYLE
DEFPLSTYLE
.
. ByLayer ()
DELOBJ
DELOBJ
, , .
. 1
( ), 0
DEMANDLOAD
,
AutoCAD ,
(..
AutoCAD
). 3
DIASTAT
, DIASTAT,
.
. 0 , 1 OK
DIMADEC
DIMADEC
.
1. 1 , , DIMDEC. 08
, , DIMADEC
DIMALT
DIMALT
. Off (0).
,
DIMALT On (1).
DIMALTD
DIMALTF
DIMALTRND
DIMALTRND . 0.00.
712
DIMALTTD
DIMALTTD
. . 2
DIMALTTZ
DIMALTTZ
. / ,
rtos angtos AutoLISP.
DIMALTTZ . 0
( ), 1
, 2
, 3 .
0 3
, .
, 4 ,
. 8 .
12 (4 8)
,
DIMALTU
DIMALTU
, . . 1 , 2
( ), 3 , 4 ( ), 5 ( ), 6 , 7 ,
8 Windows
DIMALTZ
DIMALTZ .
/
, rtos
angtos AutoLISP.
DIMALTZ . 0 ( ), 1
, 2
,
3 . 0 3 ,
. ,
4 , .
8
. 12 (4 8)
,
AutoCAD
DIMAPOST
DIMASO
DIMASSOC
DIMASZ
DIMATFIT
713
DIMAPOST
( / ), ,
, .
DIMAPOST .
.
,
. ()
DIMASO . ( ). Off (0)
. ,
,
; On (1) ( ),
. (, ) .
,
STRETCH TEDIT.
,
.
,
. 0
, 1 , 2 , ( )
DIMASZ (DIMension Arrowhead SiZe)
-
DIMTSZ, 0. ,
, DIMBLK,
DIMASZ. , .
DIMASZ ; 0,18
DIMATFIT
.
. 0 , 1 , , 2 ,
, 3
( )
714
DIMAUNIT
DIMAZIN
DIMBLK
DIMBLK1
DIMBLK2
DIMCEN
DIMAUNIT
.
. 0 , 1 //,
2 (), 3 ,
4
DIMAZIN
. . 0 (
), 1 , 2
, 3
DIMBLK ,
-.
,
- . DIMBLK
(DIMension BLocK). . .
, . ()
DIMBLK1
.
DIMSAH (DIMension Separate Arrow).
, DIMBLK, . . ().
.
DIMBLK2
.
DIMSAH (DIMension Separate Arrow).
, DIMBLK, . . ().
.
DIMCEN (DIMension CENter)
DIMCENTER,
DIMDIAMETER DIMRADIUS. DIMCEN .
.
DIMCEN
. 0.0900.
0 , >0 ,
DIMCEN.
AutoCAD
DIMCLRD
DIMCLRE
DIMCLRT
DIMDEC
DIMDLE
715
, 0.250,
,
0,2500 , <0 ,
, DIMCEN.
. , DIMCEN,
0.2500,
0,25
,
0,25 .
DIMRADIUS DIMDIAMETER ,
DIMCLRD
, .
BYBLOCK (0)
BYLAYER (256). DIMCLRD
SETVAR
, .
. 0
DIMCLRE (DIMension CoLOr Extension)
. DIMCLRE,
DIMCLRD, BYBLOCK (0)
BYLAYER (256). . 0
DIMCLRT (DIMension CoLoR Text) .
DIMCLRT
BYBLOCK (0) BYLAYER (256).
. 0
DIMDEC (
) .
. 4
. ,
( 5
), DIMDLE (Dimension Line
Extension) .
,
DIMTSZ . (
DIMTSZ , ,
(, 45 )).
,
DIMDLE. . DIMDLE 0.0000
716
DIMDLI
DIMDSEP
DIMEXE
DIMEXO
DIMFIT
DIMFRAC
DIMGAP
DIMDLI
, DIMCONTINUE DIMBASELINE.
.
DIMDLI
. 0,38
DIMDSEP ,
.
.
DIMEXE (Dimension EXtension line
Extension)
.
.
0,18
DIMEXO (DIMension EXtension line Offset)
.
.
0,0625
, DIMATFIT
DIMTMOVE. AutoCAD 2004
AutoCAD
AutoLISP.
. 3
DIMFRAC
, DIMLUNIT 4 () 5 (). 0
( ), 1 , 2 (, 3/5).
DIMGAP ,
.
-,
LEADER, DIMGAP.
.
DIMGAP 0,0900
. , () , .
DIMGAP
.
AutoCAD
,
. AutoCAD
,
, , DIMGAP.
AutoCAD
DIMJUST
DIMLDRBLK
DIMLFAC
717
, , DIMGAP:
2*(DIMGAP+IMASZ)
DIMJUST .
.
0
( ), 1
,
2 , 3
,
4
DIMLDRBLK
-. , . ()
DIMLFAC (DIMension Length FACtor)
. , , ,
.
,
DIMLFAC. ,
. . , DIMLFAC , DIMTM, DIMTP
DIMRND. ,
,
, DIMLFAC
2. DIMLFAC
,
DIMLFAC.
,
, .
DIMLFAC , 1.0.
DIMLFAC , AutoCAD
.
.
DIMLFAC . ,
(, <1.0000>).
VPORTS ,
.
AutoCAD , ,
( ) DIMLFAC.
. 1.0000
718
DIMLIM
DIMLUNIT
DIMLUNIT
, .
. Off (0). 1 , 2 , 3 , 4 , 5 , 6
Windows
DIMLWD
DIMLWD
.
.
ByBlock ().
DIMLWE
DIMLWE
.
.
ByBlock ().
DIMPOST
DIMPOST
/ , ,
.
. ( ).
DIMPOST . ,
,
, DIMPOST cm. , 4 ,
4.0 cm.
,
, . ,
(<>),
DIMRND
AutoCAD
719
DIMSAH
DIMSCALE
DIMSD1
DIMSD2
DIMSE1
DIMSCALE
,
, , , , ,
- .., ,
, .
1.0000;
.
- (, 2:1),
,
. ,
DIMSCALE
1/2, .. 2/1 2. 0.0
. ,
1.0.
>0
, ,
720
DIMSE2
DIMSHO
DIMSOXD
, DIMTIX On. ,
DIMSOXD (DIMension Suppress Outside eXtension
Dimension lines) On.
DIMTIX , DIMSOXD , ,
.
, DIMTIX DIMSOXD
, . DIMSOXD , DIMTIX
. DIMSOXD . Off
()
DIMSTYLE
DIMSTYLE .
DDIM DIMSTYLE. DIMSTYLE
.
DIMTAD
AutoCAD
DIMTDEC
DIMTFAC
DIMTIH
DIMTIX
721
0 (
), 1
, . ,
,
,
, .
DIMTIH 1.
DIMGAP. 2 ,
, 3
(JIS Japanese Industrial Standard)
DIMTDEC . . 4
DIMTFAC (DIMension Tolerance scale
FACtor)
, ,
DIMTXT. , DIMTFAC 1.0 (,
).
.
0.50,
.
DIMTFAC . 1.0000. ,
, DIMTOL , DIMTM DIMTP ,
DIMLIM
DIMTIH (DIMension Text Inside
Horizontal)
, .
. On DIMTIH ( ), ,
, ; Off DIMTIH ,
DIMTIX . . On
DIMTIX ,
,
, Off ( ) DIMTIX , .
722
,
(
). ,
DIMTM
DIMTM
.
.
,
DIMTOL DIMLIM . DIMTM (DImension Tolerance Minus)
, DIMTP (DIMension Tolerance Plus)
. ,
. DIMTOL
, DIMTM DIMTP
, AutoCAD
. DIMTM DIMTP ,
. DIMTP
(+).
(DIMTM)
(
, ,
, ).
, .
DIMTM
. 0.0000
DIMTMOVE
DIMTMOVE .
. 0 ( ),
1 , 2
-
DIMTOFL
DIMTOFL ,
,
. DIMTOFL ,
,
-.
. Off ()
AutoCAD
723
DIMTOH
DIMTOL
DIMTOLJ
DIMTOLJ
.
. 0 ,
1 ( ), 2
DIMTP
724
DIMTSZ
DIMTVP
DIMTXSTY
DIMTXT
DIMTZIN
DIMTSZ
(), , (,
).
. 0.0000. 0 ,
>0 ().
DIMTSZ*DIMSCALE. ,
DIMSCALE ,
DIMTSZ.
DIMTVP (DIMension Text Vertical Position)
( ).
DIMTAD, . DIMTVP ,
DIMTAD . .
DIMTVP. DIMTVP 1.0, DIMTVP
DIMTAD. , DIMTVP , 0.70,
,
. . 0.0000
DIMTXTSTY
.
. STANDARD
DIMTXT ,
.
. 0.1800
DIMTZIN . DIMTZIN .
0
( ), 1
, 2
, 3
.
0 3
, . ,
4 , . 8
. 12
(4 8) ,
AutoCAD
725
DIMUNIT
DIMUNIT , .
1 , 2 , 3 , 4
( ), 5
( ), 6 , 7 , 8 Windows
DIMUPT
.
DIMUPT
. 0 (Off) ( ),
1 (On) ,
DIMZIN
DISPSILH
DISPSILH
.
. 0 ( ),
1
DISTANCE
DISTANCE , DIST.
DONUTID
DONUTID ,
.
0.5000
726
DONUTOD
DRAGMODE
DRAGP1
DRAGP2
DRAWORDERCTL
DRSTATE
DTEXTED
DWGCHECK
DWGCODEPAGE
DONUTOD ,
. , .
, DONUTID , DONUTOD, , , .
DONUTOD 1.0000
DRAGMODE
. 0
, 1 , 2 (
).
DRAGP1 .
. 10
DRAGP2
.
. 25
DRAWORDERCTL (
AutoCAD 2005). 0
, 1
, 2 , 3 1 2 ( )
DRSTATE Drawing Recovery (
AutoCAD 2006). 0
DTEXTED
DTEXT/TEXT
( AutoCAD 2006). 0 ( ),
1
DWGCHECK , ,
AutoCAD. . 0 ( ),
1
DWGCODEPAGE . , AutoCAD.
SYSCODEPAGE,
DWGCODEPAGE
.
DWGCODEPAGE
.
AutoCAD
DWGNAME
DWGPREFIX
DWGTITLED
DYNDIGRIP
DYNDIVIS
DYNMODE
DYNPICOORDS
DYNPIFORMAT
DYNPIVIS
727
DWGNAME , . ,
- ,
DWGNAME .
,
.
DWGPREFIX ,
.
DWGTITLED , . 0 ,
, 1
,
DYNDIGRIP (DYNDIVIS = 2)
( AutoCAD 2006). 0 ,
1 , 2
, 4 , 8 , 16
. 31 ( )
DYNDIVIS (
AutoCAD 2006). 0 ( ), 1 (
), 2 ( DYNDIGRIP). 1
DYNMODE
(
, DYN
) ( AutoCAD 2006). -3
, -2
( ), -1
, 0 , 1
, 2
, 3
DYNPICOORDS , (
AutoCAD 2006). 0 ( ), 1
DYNPIFORMAT , (
AutoCAD 2006). 0 ( ), 1
DYNPIVIS
( AutoCAD 2006). 0
, 1 ( ),
2
728
DYNPROMPT
DYNTOOLTIPS
EDGEMODE
ELEVATION
ENTERPRISEMENU
EXPERT
EXPLMODE
DYNPROMPT (
AutoCAD 2006). 0
DYNTOOLTIPS , (
AutoCAD 2006). 0 Dynamic
Input, 1 ( )
EDGEMODE
TRIM EXTEND. 0
, 1
( )
ELEVATION
( Z)
.
. 0.0000
.cui ( AutoCAD 2006).
EXPERT
. 0
( ), 1
About to regen, proceed? Really want to turn the
current layer off?, 2
, Block already de-fined.
Redefine it? ( BLOCK) A drawing with this
name already exists. Overwrite it? ( SAVE
WBLOCK), 3 , ,
LINETYPE ,
4 ,
, UCS Save
VPORTS Save ,
, 5 , ,
DIMSTYLE ( Save) DIMOVERRIDE
,
.
, Y. EXPERT
, ,
AutoLISP
EXPLMODE
, , EXPLODE.
. 0
, 1
( )
AutoCAD
EXTMAX
EXTMIN
EXTNAMES
FACETRATIO
FACETRES
FIELDDISPLAY
FIELDEVAL
729
EXTMAX
. , ZOOM All
ZOOM Extents. EXTMAX ,
EXTMIN
. , ZOOM All
ZOOM Extents. EXTMIN ,
EXTNAMES
( , ),
.
. 0
AutoCAD 14,
31 , 1 AutoCAD 2000,
255 (
)
FACETRATIO
, ACIS.
. 0 N1
ACIS ( ), 1
N ACIS
FACETRES ,
.
0.010 10.0 ( 0.5).
FACETRES
FIELDDISPLAY ( AutoCAD 2005). 0 , 1 ( )
FIELDEVAL ( AutoCAD 2005).
0 ,
1 OPEN,
2 SAVE,
4 PLOT,
8
ETRANSMITE,
16 .
31 ( )
730
FILEDIA
FILEDIA . . 0 .
, AutoCAD
(~)
. AutoLISP ADS. 1
, ,
AutoLISP/ADS
( )
FILLETRAD
FILLETRAD
.
. 0.5000
FILLMODE
FILLMODE
, , , (
) SOLID.
.
0 , 1
( )
FONTALT
FONTALT ,
, .
AutoCAD .
FONTALT . simplex.shx
FONTMAP
FONTMAP
, , .
,
(;). FONTMAP . Acad.fmp
FRONTZ
FRONTZ
( ).
, FRONTZ .
.
FULLOPEN
FULLOPEN .
.
FULLOPEN .
0 ,
1
AutoCAD
FULLPLOTPATH
GRIDMODE
GRIDUNIT
GRIPBLOCK
GRIPCOLOR
GRIPDYNCOLOR
GRIPHOT
GRIPS
GRIPSIZE
HALOGAP
HANDLES
731
FULLPLOTPATH , (
AutoCAD 2006). 0 ,
1
( )
GRIDMODE GRID ().
. 0
( ), 1
GRIDUNIT
X Y.
REDRAW
REGEN.
. 0.5000,0.5000
GRIPBLOCK
. . 0 ( ), 1 ,
GRIPCOLOR
1 255.
. 5
GRIPDYNCOLOR (
AutoCAD 2006). 140
GRIPHOT
1
255. . 1
GRIPS Stretch (), Move (), Rotate
(), Scale () Mirror ().
. 0 , 1 ( )
GRIPSIZE
1 255.
. 3
HIDE. 0
HANDLES (..
1), . . HANDLES
732
HIDEPRECISION
HIDEPRECISION
.
. 0
; ,
1 ;
HIDETEXT
HIDE. OFF
, ON
HIGHLIGHT
HIGHLIGHT
. , ,
HPANG
HPANG . 0
HPBOUND
HPBOUND , BOUNDARY.
.
0 , 1 ( )
HPDOUBLE
HPDOUBLE (-)
. 0
( ),
1
HPDRAWORDER
HPDRAWORDER (
AutoCAD 2005). 0 , 1
, 2 , 3 ( ), 4
HPGAPTOL
HPGAPTOL (
AutoCAD 2005).
0 ( ) 5 000
HPINHERIT
HPINHERIT ,
MATCHPROP ( AutoCAD 2006). 0
HPORIGIN ( ), 1
HPNAME
HPNAME , . 34 .
. , ( ). , (.).
ANSI31
AutoCAD
HPOBJWARNING
HPORIGIN
HPORIGMODE
HPSCALE
HPSEPARATE
HPSPACE
HYPERLINKBASE
IMAGEHLT
INDEXCTL
INETLOCATION
733
HPOBJWARNING ,
AutoCAD (
AutoCAD 2006).
1 107 374 823. 10 000
HPORIGIN
, (
AutoCAD 2006). 0,0
HPORIGMODE
, ( AutoCAD 2006). 0
HPORIGIN ( ), 1 , 2 , 3
, 4
, 5
HPSCALE
, . .
HPSCALE 1.0000
HPSEPARATE
,
( AutoCAD 2006). 0
( ), 1
HPSPACE
.
.
HPSCALE 1.0000
HYPERLINKBASE , .
. ( )
IMAGEHLT .
. 0 ( ), 1
. 0 ( ), 1 , 2
, 3
URL- Web-,
BROWSER. www.autodesk.com/acaduser
734
INPUTHISTORYMODE
INSBASE
INSNAME
INSUNITS
INSUNITSDEFSOURCE
INSUNITSDEFTARGET
INTELLIGENTUPDATE
ISAVEBAK
,
,
( AutoCAD 2006). 0 , 1
( ),
2
, 4 , 8 ,
. 15
, BASE.
.
.
0.0000,0.0000,0.0000
INSNAME
INSERT.
, (.).
INSUNITS , AutoCAD.
.
0 ( ), 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ( ), 10 ,
11 , 12 , 13 ,
14 , 15 , 16 ,
17 , 18 ,
19 , 20
INSUNITSDEFSOURCE , -.
0 20. 0.
INSUNITSDEFTARGET , .
0 20. 0.
INTELLIGENTUPDATE
, ; 0 () 100 / (
AutoCAD 2006). 20
,
Windows. 0
( .bak) , 1 ( )
AutoCAD
735
ISAVEPERCENT
, .
50
ISOLINES
ISOLINES () .
0 2047.
. 4
LASTANGLE
LASTANGLE , XY
()
.
LASTPOINT
LASTPOINT .
.
0.0000,0.0000,0.0000
LASTPROMPT
LASTPROMPT ,
.
LAYERFILTERALERT
LAYERFILTERALERT
, 99 ( AutoCAD 2006). 0 , 1 ( Layer Properties Manager
), 2
( Layer Properties
Manager ), 3
,
. 2
LAYOUTREGENCTL
. 2.
0
, 1
Model
, 3
LENSLENGTH
LENSLENGTH
( ) .
LIMCHECK
.
. 0
(
), 1
736
LIMMAX
LIMMIN
LISPINIT
LOCALE
LOCKUI
LOGFILEMODE
LOGFILENAME
LOGFILEPATH
LOGINNAME
LTSCALE
LIMMAX
().
.
12.0000,9.0000
LIMMIN
().
.
0.0000,0.0000
(LISP-)
( -
). LISPINIT . 0
AutoLISP, 1 AutoLISP
( )
LOCALE ISO AutoCAD.
(
)
LOCKUI ,
( AutoCAD 2006).
, <Ctrl>. 0
( ), 1
, , , 2 ,
, , 4 ,
8
( .log). 0
( ), 1
( ) . C:\Program Files\
AutoCAD 2004\acad.log
LOGFILEPATH
.
AutoCAD
LOGINNAME
,
AutoCAD,
LTSCALE
.
. 1.0000
AutoCAD
LUNITS
LUPREC
LWDEFAULT
LWDISPLAY
LWUNITS
MAXACTVP
MAXSORT
MBUTTONPAN
MEASUREINIT
737
LUNITS .
. 1 , 2 ( ),
3 , 4 , 5
LUPREC ( ).
. 4
LWDEFAULT , DEFAULT. , ,
( )
LWDISPLAY Model ()
Layout (). . 0 ( ), 1
LWUNITS ( ).
. 0 , 1 (
)
MAXACTVP
,
.
48
MAXSORT
,
.
, .
. 200
MBUTTONPAN - ().
. 0
, AutoCAD
(.mnu), 1 ,
- (
)
MEASUREINIT ( ),
, .
. 0 ( ) (AutoCAD
ANSI), 1
(AutoCAD
ISO)
738
MEASUREMENT
MENUCTL
MENUECHO
MENUNAME
MIRRTEXT
MODEMACRO
MSOLESTATE
MTEXTED
MEASUREMENT ( ),
, .
. 0 ( ) (AutoCAD
ANSI), 1
(AutoCAD
ISO)
MENUCTL
.
. 0
, 1 (
)
MENUECHO
- .
:
0 , 1 -
, 2 , 4 , 8 -
DIESEL
MENUNAME MENUGROUP.
, MENUGROUP,
AutoCAD,
.
.
MENUNAME
MIRRTEXT MIRROR.
. 0 , 1 ( )
MODEMACRO DIESEL
.
, / .
MSOLESTATE
OLE-,
( AutoCAD 2005).
-1 PLOTSCALE, 0 DIMSCALE, >0
. 1.0
MTEXTED ,
.
. Internal ()
AutoCAD
739
NOMUTT
NOMUTT
AutoLISP. . 0
( ), 1
OBSCUREDCOLOR
,
HIDE
SHADEMODE.
0 ( ). ,
-
OBSCUREDLTYPE
.
0.
:
1 , 2 , 3 ,
4 , 5
, 6 , 7 , 8 ,
9 ,
10 , 11
OFFSETDIST
OFFSETDIST .
,
.
, .
1.0000
OFFSETGAPTYPE
OFFSETGAPTYPE
OFFSET.
. 0
( ), 1 , ,
2
OLEFRAME
OLEFRAME
OLE- ( AutoCAD 2005).
0 , 1 , 2 , ( )
OLEHIDE
740
OLEQUALITY
OLEQUALITY , ,
OLE-. . 0
, ,
1 Word ( ), 2
,
3 , 4
OLESTARTUP
OLESTARTUP
OLE- . . 0 -
OLE- ( ),
1 OLE-
ORTHOMODE
ORTHOMODE ,
.
. 0
( ), 1
OSMODE
OSMODE
,
:
0 NONe ( ), 1
ENDpoint, 2 MIDpoint,
4 CENter, 8
NODe, 16 QUAdrant, 32
INTersection, 64 INSertion, 128
PERpendicular, 256
TANgent, 512 NEArest,
1024 QUIck,
2048 APPint.
, . ,
, OSMODE 12 (4+8).
OSNAPCOORD
, . 0
, , 1 , , , 2 , ,
,
( )
AutoCAD
OSNAPHATCH
OSNAPNODELEGACY
OSNAPZ
PAPERUPDATE
PDMODE
PDSIZE
PEDITACCEPT
PELLIPSE
741
OSNAPHATCH
(
AutoCAD 2005). 0
( ), 1
OSNAPNODELEGACY ( AutoCAD 2005).
1
OSNAPZ Z
( AutoCAD 2006). 0
Z ( ), 1
PAPERUPDATE
, ,
.
. 0 ,
, , ( ),
1
,
PDMODE ().
. 0
PDSIZE
.
. 0.0000.
0 5
, >0
, <0
742
PERIMETR
PFACEVMAX
PICKADD
PICKAUTO
PICKBOX
PICKDRAG
PICKFIRST
PICKSTYLE
PERIMETR
, AREA, DBLIST
LIST.
PFACEVMAX
, .
PICKADD
. . 0 PICKADD , 1
PICKADD ( ).
, .
,
<Shift>, ,
PICKAUTO
Select object
.
.
0 PICKAUTO , 1 PICKAUTO ( )
Select object
PICKBOX ( ).
.
3
PICKDRAG
: 0 ,
( ), 1
, , (-
) ,
.
PICKFIRST , ,
. 0 PICKFIRST , 1
PICKFIRST ( )
PICKSTYLE
. . 0 ,
1 (
), 2 , 3
AutoCAD
PLATFORM
PLINEGEN
PLINETYPE
PLINEWID
PLOTID
PLOTOFFSET
PLOTROTMODE
PLOTTER
743
PLATFORM ( ) AutoCAD.
.
: Microsoft Windows Sun/SPARCstation,
386 DOS Extender DECstation, Apple Macintosh
Silicon Graphics Iris Indigo
PLINEGEN
, .
.
0
( ), 1 , .
PLINEGEN
( ),
AutoCAD. 0 PLINE
, 1 PLINE
, 2
PLINE ,
AutoCAD
, .
. 0.0000
PLOTID
.
.
PLOTID .
PLOTOFFSET
( AutoCAD 2005).
0 ( ),
1
PLOTROTMODE . . 0
0 , 90 ,
180
270 ; 1
( )
PLOTTER , .
, 0
.
, 6 , 0, 1, 2, 3, 4 5.
744
PLQUIET
POLARADDANG
POLARANG
POLARDIST
POLARMODE
POLYSIDES
, ,
.
. 0
PLQUIET
. . 0
( ), 1
POLARADDANG
. 10
. 25 , (;).
. 0
POLARANG . 90
( ), 45, 30, 22.5, 18, 15, 10 5.
POLARANG
POLARDIST
,
SNAPSTYL 1 (
). POLARDIST . 0.0000
POLARMODE .
.
: 0 (
), 1
( );
: 0
, 2 ;
: 0 , 4 .
: 0
, 8
<Shift>.
POLARMODE . 1
POLYSIDES
, POLYGON.
3 1024.
4
AutoCAD
745
POPUPS
POPUPS
. ". 0 , , () ,
1 , ,
PREVIEWEFFECT
PREVIEWEFFECT
( AutoCAD 2006).
0 , 1 ,
2 ( )
PREVIEWFILTER
PREVIEWFILTER ,
( AutoCAD 2006). 0
, 1 ( ), 2 , 4
, 8 ,
16 , 32
PRODUCT
, AutoCAD
PROGRAM
, AutoCAD
PROJECTNAME
.
( )
PROJMODE
PROJMODE . 0 ( ),
1 XY
( ), 2
PROXYGRAPHICS
- .
0 , 1
( )
PROXYNOTICE
, ,
- .
0 - , 1 - ( )
PROXYSHOW
. 0 -
, 1
- ( ), 2
, -
746
PROXYWEBSEARCH
Object Enabler,
-. 0 Object
Enabler ( ,
AutoCAD 2004
Today), 1 Object Enabler Web- Autodesk Point A
( ),
AutoCAD 2004 Today ; 2
Web- Autodesk Point A
Object Enabler
PSLTSCALE
PSLTSCALE .
.
0 .
, ,
, 1
(
). , TILEMODE
0,
(
)
PSTYLEMODE
PSTYLEMODE ,
( )
.
. 0
( ), 1
.
PSTYLEPOLICY
PSTYLEPOLICY
. ,
,
. . 0
,
1 (
)
PSVPSCALE
PSVPSCALE
.
. 0, ,
.
.
PSVPSCALE . 0
PUCSBASE
PUCSBASE ,
( ).
.
AutoCAD
747
QCSTATE
QTEXTMODE
QTEXTMODE ()
.
. 0
( ), 1
.
RASTERDPI
RASTERDPI
;
100
32 767 ( AutoCAD 2006).
300
RASTERPREVIEW
RASTERPREVIEW .
. 0 , 1 ( )
RECOVERYMODE
RECOVERYMODE
(
AutoCAD 2006). 0 , 1
; Drawing Recovery , 2 ; Drawing
Recovery (
)
REFEDITNAME
REFEDITNAME
,
REFEDIT.
. .
REGENMODE
REGENMODE . . 0
REGENAUTO , 1 REGENAUTO
RE-INIT
RE-INIT
, -, , ,
acad.pgp. : 0
( ), 1
(), 2 , 4 , 8 , 16 PGP-.
,
748
REMEMBERFOLDERS
,
Select File ( ) Save
(). 0 , 1
RTDISPLAY
( ZOOM PAN). 0 , 1
(
)
SAVEFILE
SAVEFILE .
. auto.sv$
SAVEFILEPATH
SAVEFILEPATH ,
AutoCAD.
. C:\Temp\
SAVENAME
SAVENAME , ( ).
SAVETIME
SAVETIME ( ).
120. 0 ,
>0 . SAVETIME .
SAVE, SAVEAS QSAVE
.
AutoCAD auto.sv$
SCREENBOXES
SCREENBOXES
,
. , .
,
, AutoCAD,
SCREENBOXES
.
SCREENMODE
SCREENMODE ,
AutoCAD ( ).
. : 0 , 1
, 2
AutoCAD
749
SCREENSIZE
SCREENSIZE ( Y).
SDI
AutoCAD ( ). SDI
. 0 ( ), 1
, 2
( ),
3
( )
SELECTIONAREA
SELECTIONAREA (
AutoCAD 2006). 1
SELECTIONAREAOPACITY
0 () 100 ()
( AutoCAD 2006). 25
SELECTIONPREVIEW
SELECTIONPREVIEW
( AutoCAD 2006). 0 ,
1 , , 2 ,
( )
SHADEDGE
SHADEDGE
. . 0 ,
, 1 ,
, 2 ,
, 3
, (
)
SHADEDIF
SHADEIF
.
. 70
SHORTCUTMENU
750
SHOWLAYERUSAGE
SHPNAME
SKETCHINC
SKPOLY
SNAPANG
SNAPBASE
SNAPISOPAIR
SNAPMODE
SNAPSTYL
SNAPTYPE
SHOWLLAYERUSAGE
Layer Properties Manager ( AutoCAD 2006). 1
SHPNAME , .
.
, (.)
SKETCHINC ,
SKETCH.
.
0.1000
SKPOLY (
), SKETCH.
. 0 (
), 1
SNAPANG
( ) .
. 0.
SNAPBASE
( ).
. 0.0000,0.0000.
SNAPISOPAIR
.
. 0 ( ), 1 , 2
SNAPMODE (SNAP).
.
0 ( ), 1
SNAPSTYL
.
.
0 ( ), 1
SNAPTYPE
.
.
0 ( ), 1
AutoCAD
SNAPUNIT
SOLIDCHECK
SORTENTS
SPLFRAME
SPLINESEGS
SPLINETYPE
751
SNAPUNIT
( X Y) .
. 0.5000,0.5000.
AutoCAD. .
0 , 1 ( )
SORTENTS
: 0 , 1 ,
2 , 4 , 8
MSLIDE,
16 , 32
, 64
PostScript. , .
96.
PostScript
SPLFRAME ,
. . 0 ( )
. ,
.
,
1 ,
. ,
SPLINESEGS ,
. ,
.
. 8.
, .
,
.
SPLINETYPE , Spline
PEDIT. . 5 B- , 6 B- ( )
752
SSFOUND
SSLOCATE
SSMAUTOOPEN
SSMPOLLTIME
SSMSHEETSTATUS
SSMSTATE
SURFTAB1
SUTFTAB2
SSMFOUND
( AutoCAD 2005).
SSMLOCATE
, , (
AutoCAD 2005). 0 , 1
( )
SSMAUTOOPEN ,
Sheet Set Manager , (SSLOCATE = 1).
AutoCAD 2005. 1
SSMPOLLTIME
( AutoCAD 2006). 20 600
(SSMSHEETSTATUS = 2). 60
SSMSHEETSTATUS
( AutoCAD 2006). 0
, 1
, 2
,
,
SSMPOLLTIME ( )
SSMSTATE , Sheet Set Manager ( AutoCAD 2005).
.
0
SURFTAB1 ,
TABSURF RULESURF. REVSURF EDGESURF.
.
6. , ,
, , ,
,
SURFTAB1. , (
),
. ,
SURFTAB1
SURFTAB2
N REVSURF EDGESURF.
. 6
AutoCAD
SURFTYPE
SURFU
SURFV
SYSCODEPAGE
TABLEINDICATOR
TABMODE
TARGET
TBCUSTOMIZE
TDCREATE
TDINDWG
TDUCREATE
TDUPDATE
753
SURFTYPE ,
Smooth PEDIT.
. 5 B- , 6
B- ( ),
8
SURFU . .
6
SURFV N. .
6
SYSCODEPAGE , acad.xmx. .
TABLEINDICATOR
( AutoCAD 2006). 1
TABMODE
Tablet (). 0 Tablet ( ), 1 Tablet
TARGET
.
.
TBCUSTOMIZE
(
AutoCAD 2005). 1
TDCREATE () . .
TDINDWG . .
TDUCREATE () . .
TDUPDATE ()
.
.
754
TDUSRTIMER
TDUUPDATE
TEMPPREFIX
TEXTEVAL
TEXTFILL
TEXTQLTY
TEXTSIZE
TEXTSTYLE
THICKNESS
TDUSRTIMER . .
TDUUPDATE ()
.
.
TEMPPREFIX , .
.
TEXTEVAL . 0 , ,
(
), 1 ,
( !, AutoLISP.
TEXTEVAL TEXT.
TEXT
TEXTFILL
, True , , . . 0 ,
1 ( )
TEXTQLTY True Type, Bitstream Abode Type 1
, .
,
. ,
,
.
0 100.0.
50
TEXTSIZE ,
. ,
.
. 0.2000
TEXTSTYLE
. . STANDARD
THICKNESS . . 0.0000
AutoCAD
TILEMODE
TOOLTIPS
TOOLTIPMERGE
TRACEWID
TRACKPATH
TREEDEPTH
755
TILEMODE AutoCAD. . 0
.
MVIEW, 1 ( ) AutoCAD 10.
(Tiled Viewport) .
. MSPACE, PSPACE, VPLAYER
MVIEW
TOOLTIPS
. 0 , 1 ( )
TOOLTIPMERGE ( AutoCAD 2006).
0
TRACEWID ,
. .
0.0500
TRACKPATH .
. 0
( ), 1
, 2
, 3
TREEDEPTH
.
. 3020.
0 .
, ,
SORTENTS
, >0 TREEDEPTH . ,
.
,
. <0 , () .
.
756
TREEMAX
TREEMAX
.
,
.
10000000
TRIMMODE
TRIMMODE
CHAMFER FILLET.
0
, 1
( )
TSPACEFAC
TSPACEFAC
.
0.25 4.0. 1
TSPACETYPE
TSPACETYPE .
At Least ( )
. Exactly
()
, .
. 1 ( ) At Least ( ), 2 Exactly
()
TSTACKALIGN
. . 0 , 1 (
), 2
TSTACKSIZE
. 1 127.
. 70
UCSAXISANG
,
X, Y Z
UCS. ( : 5, 10, 15, 18, 22.5, 30,
45, 90, 180). . 90
UCSBASE
UCSBASE , .
.
. World
AutoCAD
757
UCSFOLLOW
UCSFOLLOW
. UCSFOLLOW
, UCSFOLLOW
. . 0
(
), 1
( )
UCSICON
UCSICON .
: 1
( ), 2 ( ). ,
, UCSICON. , UCSICON
.
UCSNAME
UCSNAME .
.
.
, ,
UCSORG
UCSORG
. .
UCSORTHO
UCSORTHO
.
.
0 , 1
( )
UCSVIEW
UCSVIEW .
. 0
, 1
( )
758
UCSVP
UCSXDIR
UCSYDIR
UNDOCTL
UNDOMARKS
UNITMODE
UPDATETHUMBNAIL
UCSVP
, .
( ). 0 ; , 1 ;
,
( )
UCSXDIR X
. .
UCSYDIR Y
. .
UNDOCTL
, UNDO.
.
: 0 UNDO , 1 UNDO , 2
, 4
, 8 ,
16
( AutoCAD 2006).
21
UNDOMARKS , Mark UNDO
. ,
, Mark Back .
UNITMODE .
.
0 , ,
( ), 1 ,
, ,
UPDATETHUMBNAIL
( AutoCAD 2005). 0 , 1 ,
2 , 4 , 8
, , 16
.
15 ( )
AutoCAD
759
USEACIS
USEACIS
ACIS ( AutoCAD 2006). 0
USERI1-5
, . 0
USERR1-5
, . 0.0000
USERS1-5
, .
VIEWCTR
VIEWCTR
.
.
VIEWDIR
VIEWDIR ,
.
.
.
VIEWMODE
VIEWMODE , .
: 0
, 1 , 2
, 4 , 8
, 16
.
,
FRONTZ. , , FRONTZ .
(
20 ), 16 .
.
VIEWSIZE
VIEWSIZE .
.
VIEWTWIST
VIEWTWIST
.
.
760
VISRETAIN
VPMAXIMIZEDSTATE
VSMAX
VSMIN
VTDURATION
VTENABLE
VTFPS
WHIPARC
VISRETAIN , , ,
, ,
. 0 , ( ),
, ,
, 1
, ,
,
VPMAX
( AutoCAD 2005). 0
VSMAX
,
.
.
VSMIN
,
.
.
VTDURATION
( AutoCAD 2006).
0 5 000 .
750
VTENABLE , ,
(
AutoCAD 2006). 0 , 1 , 2 ,
3 , ( ), 4
, 5
,
6 , 7 ,
VTFPS ; 1 30
( AutoCAD 2006). 7.0
WHIPARC .
.
0 , ( ),
1
AutoCAD
761
WHIPTHREAD
( ),
,
. 0 , 1
, 2 ,
3
WINDOWAREACOLOR
WINDOWAREACOLOR
,
( AutoCAD 2006). 5
WMFBKGND
WMFBKGND AutoCAD
Windows, WMFOUT,
Windows
AutoCAD Windows. . 0
AutoCAD
WMFFOREGND
WORLDUCS
WORLDUCS (
).
. 0 ,
1
WORLDVIEW
WORLDVIEW DVIEW
VPOINT.
. 0 ,
1 DVIEW VPOINT.
DVIEW VPOINT
WRITESTAT
, .
WRITESTAT
,
AutoLISP.
. 0 , 1 ( )
WSCURRENT
WSCURRENT
( AutoCAD 2006).
AutoCAD Default
XCLIPFRAME
. 0 ( ),
1
762
XEDIT
XEDIT ,
,
, . . 0
, 1
( )
XFADECTL
XFADECTL
.
.
50. 0
( ), 90 90- (
)
XLOADCTL
XLOADCTL .
0 ;
, 1 ;
( ), 2 ;
XLOADPATH
XLOADPATH .
XREFCTL
XREFCTL ,
AutoCAD
( .xlg).
.
0
( ), 1
XREFTYPE
XREFTYPE
( AutoCAD 2005).
0 ( ),
1
ZOOMFACTOR
ZOOMFACTOR .
3 100. ,
,
. . 10
A
ADS, 517
ASE, 634
D
DCL, 516
G
Geometry Calculator, 646
I
IDE, 587
O
ODBC, 622
OLE DB, 622
P
PDB, 518
V
Visual Basic, 586
, 254; 297
DCL
alignment, 523
aspect_ratio, 553
big_increment, 553
color, 553
edit_width, 548
fixed_width, 522
is_default, 522
key, 521
label, 521
max_value, 552
min_value, 552
mnemonic, 533
small_increment, 552
width, 548
, 620
, 626
, 622
, 624
, 629
Edit, 625
Readonly, 625
, 630
, 621
, 621
Labels, 630
, 124
, 190
, 236
, 303
, 303
, 355
AutoCAD, 501
Boundary Hatch and Fill, 128
Create New Drawing, 22
Customize, 194
DBCONNECT MANAGER, 622
Dimension Style Manager, 32; 46
Drafting Settings, 26
Drawing Units, 27
Hatch Pattern Palette, 129; 139
Label Template, 631
Layer Properties Manager, 34; 36
Linetype Manager, 101
Link Conversation, 642
Link Select, 641
Load/Unload Application, 417; 452
Load or Reload Linetypes, 34; 101
Menu Customization, 186
Options, 23
Page Setup, 36
Select Color, 36
Select Menu File, 168; 217; 270
Select Script File, 64
Select Shape or Font File, 122
Select Slide File, 79
Startup, 22
Startup Suit, 418
, 167; 216
, 180; 332
, 128
, 118
, 249
, 332
DCL, 524
, 28
, 180; 270; 331
764
SQL, 639
, 587
, 646
, 646
, 661
, 647
, 648
-, 659
ang, 652
ang(apex,p1,p2), 653
ang(apex,p1,p2,p), 654
ang(v), 652
ang(1,2), 653
cvunit, 660
dee, 657
ill(end,end,end,end), 655
ill(p1,p2,p3,p4), 654
nee, 656
pld, 650
plt, 650
rad, 649
, 169; 351
, 202
, 66
, 224
, 233
, 232
, 224
, 231
, 232
, 371
-LAYER, 34
-PLOT, 70
BHATCH, 129
CAL, 646
CHAMFER, 421
COMPILE, 122
DELAY, 65
EXPLODE, 139
HATCH, 129
LAYER, 34
LAYOUT, 36
LIMITS, 26; 31
LTSCALE, 32; 106
MENU, 158; 167; 216; 244
MENULOAD, 186
MSLIDE, 78
MVIEW , 36
OPTIONS, 132
PLINE, 38; 46
RECTANG, 31
REINIT, 154
RESUME, 66
ROTATE, 77
RSCRIPT, 64
SCRIPT, 57
SHELL, 86
TABLET, 244
TABLET
CFG, 247
TBCONFIG, 197
TEXTSIZE, 27; 31
UNITS, 27
VPOINT, 37
VPORTS, 40
VSLIDE, 79
ZOOM, 37
ZOOM
All, 26
ZOOM
Extents, 211
ZOOM
Window, 211; 228
HATCH, 129
LINETYPE
Create, 103
LINETYPE
Load, 105
STYLE, 395
, 519
, 519
, 519
, 175
, 247
- , 224
DIESEL, 571
Advanced Setup, 23
, 109
, 188
, 184
, 175; 354
, 208
, 210
, 218; 357
, 209
, 210
, 357
, 211
, 209
, 210
, 345
, 356
1, 332
2, 341
3, 341
4, 344
, 350
, 360
, 39
, 42
, 35
, 29
, 184
, 124
, 125
, 127
, 138
, 125
, 370
, 370
, 370
, 520
Object Snap, 26
, 196
, 191
, 201
, 200
, 208
, 242
, 245
, 253
, 244
, 332
, 250
, 243
, 296
, 178
, 179
, 180
, 179
, 201
, 506
, 199
765
AutoCAD, 635
Query Builder, 635
Quick Query, 635
Range Query, 635
SQL Query, 636
, 409
, 196
ANGBASE, 430
ANGDIR, 430
CELTSCALE, 110
LTSCALE, 108; 109
MACROTRACE, 576
MENUCTL, 254; 297
MENUECHO, 298
MODEMACRO, 569
OSMODE, 537
SCREENBOXES, 272
SCREENMODE, 305
, 78
, 88
, 78
, 82
, 79
, 78
, 84
, 115
, 120
, 115
, 159
, 330
, 330
, 331
, 527
, 375
005 006, 379
000, 376
001, 376
002, 376
003, 378
004, 379
007, 380
008, 381
009, 381
00D 13, 385
00 10, 381
00 11, 383
766
00 14, 386
00 12, 384
, 22
, 22
, 568
, 570
DIESEL, 577
, 620
, 54
, 66
, 67
, 57
, 64
, 65
, 389
, 389
, 391
, 390
, 112
, 98
, 100
, 99
, 529
, 189
AutoCAD
, 151
, 151
, 152
, 154
AutoLISP
, 410
, 411
, 405
, 406
, 410
, 410
, 409
, 409
, 405
, 406
abs, 407
action_tile , 529
angtos, 408
atan, 408
atof, 538
cadr, 424
car, 424
cdr, 424
Command, 413
cos, 407
defun, 411
dimx_tile, 556
dimy_tile, 556
done_dialog, 529
end_image, 557
fill_image, 557
get_tile, 538
getangle, 430
getcorner, 420
getdist, 420
getint, 432
getorient, 431
getpoint, 413
getreal, 433
getstring, 433
getvar, 433
graphscr, 425
if, 444
itoa, 437
list, 423
load_dialog, 528
logand, 537
logior, 537
new_dialog, 528
polar, 434
princ, 425
progn, 448
prompt, 438
repeat, 451
rtos, 437; 538
set_tile, 538
setq, 412
setvar, 421
sin, 407
sqrt, 434
start_dialog, 529
start_image, 557
strcase, 438
terpri, 426
textscr, 425
unload_dialog, 528
value, 558
vector_image, 556
while, 448
DIESEL
, 579
, 580
, 578
, 578
, 579
, 579
, 579
, 578
, 577
, 578
angtos, 580
edtime, 582
eq, 580
eval, 580
fix, 581
getvar, 581
if, 581
rtos, 581
strlen, 582
upper, 582
Visual LISP
assoc, 504
cons, 504
entget, 504
entlast, 508
entmod, 505
entnext, 508
entsel, 508
ssadd, 503
ssdel, 503
ssget, 498
ssget, 500
sslength, 502
ssname, 502
subst, 505
, 469
, 22
, 266
, 274
, 294
DIESEL, 304
AutoLISP, 303
, 272
, 279
, 272
, 299
, 273
ASCII, 299
boxed_column, 532
boxed_radio_column, 541
boxed_row, 532
column, 532
edit_tile, 548
image, 552
radio_button, 541
radio_column, 541
radio_row, 542
row, 532
slider, 552
toggle, 532
AutoLISP, 404
DIESEL, 568
SQL, 634
Visual LISP, 460
AutoLISP
-, 442
, 406
, 412
, 417
, 405
, 407
, 443
DCL
, 520
, 519
Visual Basic
, 591
Add, 592
AddArc, 594
AddCircle, 592
AddLine, 593
AddText, 594
AngleFromXAxis, 607
Get
GetAngle, 601
GetDistance, 601
GetOrientation, 602
GetPoint, 600
PolarPoint, 606
, 591
, 590
, 595
Visual LISP
- , 470
, 471
, 465
, 460
, 473
, 488
, 498
, 489
, 471
, 469
, 472
, 472
, 568
, 634
, 516
767
AutoCAD
..
..
..
.. ,
.. ,
.. ,
.. ,
..
101509, . , . , . 43, . 1
06.12.2005. 70100/16
Times.
. . . 61,92. .-. . 36,69.
2000 .
.
. . .
.
197110, -, ., 15.