AutoCAD Architecture Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Extract Vertices from AecPolyGon ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I have lisp code to extract the vertices from a LWpolyline. Can someone point to me the way to do this with AecPolyGons? I know that a couple releases ago... autodesk pulled most all of the top level group code data out of Aec and Mep objects... so that you need to use .NET or lisp ActiveX functions... but I can't seem to discover the collection of vertices.
Re: Extract Vertices from AecPolyGon ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I believe I've found the solution:
(defun AecPolyVerts (Ent /)
(if (null lst2lists)(load "listfuns"))
(setq VlaPoly (vlax-ename->vla-object Ent))
(setq VLProfile (vlax-get-property VlaPoly "Profile"))
(setq VLCoorinates (vlax-get-property VLProfile "Coordinates"))
(setq Coords (vlax-safearray->list (vlax-variant-value VLCoorinates)))
(setq Coords (lst2lists Coords 2))
Coords
)
Re: Extract Vertices from AecPolyGon ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I spoke too soon. The vertices don't seem to update... they remain the same even when the object is moved. What am I missing?
Re: Extract Vertices from AecPolyGon ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
