Message 1 of 8
Help figuring out what theis LISP code is doing

Not applicable
11-13-2002
12:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to convert the following LISP code to VBA and I'm a little
confused as to what is going on.
(command "circle" "cent" pt1 "mid" pt1)
(setq el1 (ssget "l"))
(setq a (ssname el1 0))
(setq b (entget a))
(setq ptp1 (cdr (assoc 10 b)))
(setq ptpr (cdr (assoc 40 b)))
(setq angmd (rtd (angle ptp1 pt1)))
Basically, I understand that a circle is being created and a reference is
then set to this circle, but the ptp1, and ptpr vars are really throwing me
for a loop. Any suggestions as to how to convert this to VBA would be
welcomed. I'm well versed in VB, just not with LISP or the AutoCAD object
model.
I'm trying to convert the following LISP code to VBA and I'm a little
confused as to what is going on.
(command "circle" "cent" pt1 "mid" pt1)
(setq el1 (ssget "l"))
(setq a (ssname el1 0))
(setq b (entget a))
(setq ptp1 (cdr (assoc 10 b)))
(setq ptpr (cdr (assoc 40 b)))
(setq angmd (rtd (angle ptp1 pt1)))
Basically, I understand that a circle is being created and a reference is
then set to this circle, but the ptp1, and ptpr vars are really throwing me
for a loop. Any suggestions as to how to convert this to VBA would be
welcomed. I'm well versed in VB, just not with LISP or the AutoCAD object
model.