Thanks in advance.
Saurabh Manohar
With the POLYLINE entity it is still the same procedure as it was in R13
and earlier. For LWPOLYLINE entities you need to walk through the
multiple DXF-group entities for the vertices (there is a (10 x y z)
entry for each vertex, ASSOC only gives you the first entry).
Tom Berger
--
ArchTools: Architektur-Werkzeuge für AutoCAD (TM)
ArchDIM - architekturgerechte Bemaßung und Höhenkoten
ArchAREA - Flächenermittlung und Raumbuch nach DIN 277
Info und Demo unter http://www.archtools.de
;get Poly/LWPoly point list
(defun plplst ( plnam / plist subent vertex plist subent )
(setq subent (entnext plnam)
plist (list (dxfn 10 subent)) ;THIS LINE REVISED 12/2/97 by TLD
subent (entnext subent)
);setq
(while (/= (dxfn 0 subent) "SEQEND")
(setq vertex (trans (dxfn 10 subent) 0 1)
plist (append plist (list vertex))
subent (entnext subent)
);setq
);while
plist
);defun - returns list of all vertex coords of plnam (must be Heavy Poly)
(defun lwplplst ( plnam / elst plist )
(setq elst (entget plnam))
(while elst
(if (= (caar elst) 10)
(setq plist (append plist (list (cdar elst)))
elst (cdr elst)
);then
(setq elst (cdr elst));else
);if
);while
plist
);defun - returns list of all vertex coords of plnam (must be LWPoly)
As for returning lisp values to VBA, there isn't a *good* way. You might
want to check out the autodesk.autocad.customization.vba NG. There are some
real wizards there that can certainly point you in the right direction.
"Saurabh Manohar" <saurabh...@vsnl.net> wrote in message
news:asljcg$hn4$1...@news.vsnl.net.in...