Jump to content

How to get vertices/corners coordinates info via lisp


Recommended Posts

Posted (edited)

Is there a way to get coordinate of the vertices or corners of a 3d solids using autolisp. I want to use this info in another lisp but cannot find a way to extract this. The closest i can get the vla-getbounding box but that doesnt give me what i want. I tried vla-get-vertices but it doesn't work on solids. I think because the corners of 3d solids are not technically vertices.

Edited by PrimeTimeAction
Posted

Try command XEDGES for extraction of curve entities and then use (vlax-curve-getstartpoint curve) and (vlax-curve-getendpoint curve) to get WCS 3D point coordinates...

Posted

Very few properties of the geometry of 3D Solids are exposed to the LISP API: the DXF data contains the raw binary information defining the geometry and cannot be used directly, and the only useful ActiveX properties pertain to the mass properties of the solid, yielding similar data to that output by the standard MASSPROP command.

 

As such, you'll need to extract the data you require using the properties exposed to the .NET API - gile has posted some useful functions in this regard here.

 

Hope this helps.

  • Like 1
Posted

This looks interesting but at the moment i feel that's above my league :) as I only have have some basic understanding of lisp.

I need to rethink my approach and instead of getting point coordinates of corners work with something else . I think i have a way forward using binding box and section. I will give it a shot.

Thanks for your inputs guys.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...