- Page 1 and 2: VISUAL LISP TUTORIAL00120-010000-50
- Page 3 and 4: ContentsIntroduction . . . . . . .
- Page 6 and 7: Handling Multiple Entity Types . .
- Page 8 and 9: The Garden Path Revisited: Working
- Page 10 and 11: Designing and Beginningthe ProgramI
- Page 12 and 13: To run the supplied example1 From t
- Page 14 and 15: As you enter text, VLISP also forma
- Page 16 and 17: expression in gp:getPointInput, it
- Page 20 and 21: NOTE If you have been working with
- Page 22 and 23: (defun gp:getPointInput ( / StartPt
- Page 24 and 25: ))))(list(cons 10 StartPt)(cons 11
- Page 26 and 27: Revising the Program CodeNow that y
- Page 28 and 29: ;;;********************************
- Page 30 and 31: While your program is suspended, yo
- Page 32 and 33: After you specify the points, VLISP
- Page 34 and 35: NOTE During this exercise, if you m
- Page 36 and 37: To exit gp:getPointInput and return
- Page 38 and 39: Drawing the Path BoundaryIn This Le
- Page 40 and 41: Next, add some comments describing
- Page 42 and 43: Drawing AutoCAD EntitiesMost AutoLI
- Page 44 and 45: (defun Degrees->Radians (numberOfDe
- Page 46 and 47: angp90 (plus 90 degrees)pathAnglean
- Page 48 and 49: Ensuring That ActiveX Is LoadedActi
- Page 50 and 51: The append function takes multiple
- Page 52 and 53: ;; extract the values from the list
- Page 54 and 55: Wrapping Up Lesson 3In this lesson,
- Page 56 and 57: Modularizing Your CodeAs a result o
- Page 58 and 59: 3 Press the [Un]Select All button o
- Page 60 and 61: The dialog box contains the followi
- Page 62 and 63: 7 Scroll to the beginning of the te
- Page 64 and 65: For the moment, don’t worry about
- Page 66 and 67: (action_tile"gp_actx""(setq objectC
- Page 68 and 69:
Determining What to Do NextIf the u
- Page 70 and 71:
(progn;; Now take the results of gp
- Page 72 and 73:
Running the ApplicationBefore runni
- Page 74 and 75:
Introducing More Visual LISP Editin
- Page 76 and 77:
Completing a Word by AproposIf you
- Page 78 and 79:
Here is the logic in pseudo-code:At
- Page 80 and 81:
A couple of sections from the code
- Page 82 and 83:
(Comment: Begin by drawing the circ
- Page 84 and 85:
The AutoLISP code logic follows the
- Page 86 and 87:
Acting with ReactorsIn This Lesson6
- Page 88 and 89:
Within the reactor categories, ther
- Page 90 and 91:
The reactor associated with an enti
- Page 92 and 93:
(if *commandReactor*(progn(setq *co
- Page 94 and 95:
;; The following code removes all r
- Page 96 and 97:
■■Move the polyline.Erase the p
- Page 98 and 99:
Putting It All TogetherIn This Less
- Page 100 and 101:
■■When you setq the *reactorsTo
- Page 102 and 103:
NOTE In addition to user-invoked Au
- Page 104 and 105:
plineStyle (strcase (cdr (assoc 4 B
- Page 106 and 107:
Adding Activity to the Object React
- Page 108 and 109:
You need to do some calculations to
- Page 110 and 111:
This new function will be used in t
- Page 112 and 113:
;; Send this new information to Red
- Page 114 and 115:
defined in gpdraw.lsp.) Here is the
- Page 116 and 117:
To find all calls to gp:Calculate-a
- Page 118 and 119:
The functions within the gppoly.lsp
- Page 120 and 121:
The mapcar function applies (maps)
- Page 122 and 123:
enough, due to the rounding up or d
- Page 124 and 125:
selection box so that “Visual LIS
- Page 126 and 127:
IndexSymbols(), matching, 70//, as
- Page 128 and 129:
Clear All Breakpoints command (Debu
- Page 130 and 131:
formatting, 8forward slashes (//),
- Page 133 and 134:
path. See garden pathPathAngle vari
- Page 135 and 136:
stubbed-out functionsdefining, 10-1