PrimeTimeAction Posted January 30, 2019 Posted January 30, 2019 (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 January 30, 2019 by PrimeTimeAction Quote
marko_ribar Posted January 30, 2019 Posted January 30, 2019 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... Quote
Lee Mac Posted January 30, 2019 Posted January 30, 2019 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. 1 Quote
PrimeTimeAction Posted January 31, 2019 Author Posted January 31, 2019 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. Quote
Recommended Posts
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.