Lisp routine for Bounding Box?
Posted: Tue Feb 10, 2009 12:46 pm
Hi there,
Does anyone know if there is a Lisp routine available that I could use to create a bounding box for polylines?
There are plenty of routines out there but the ones that I have found all use VLA functions.
I need to know the max/min X and Y so that I can calculate the bounding area. I actually came up with something that worked by recording the X and Y coordinates of the various nodes but unfortunately, it won't work when an arc is part of the polyline due to the fact that the center arc vertice is not recorded; only the vertices at the beginning and end of the arc.
One note: I ran Atoms-family and there is a function called BOUNDINGBOX but I don't know whether it applies and I couldn't get it to run.
This is the last stumbling block of a program I am writing so any help would be greatly appreciated.
Thank you
---AJS
Does anyone know if there is a Lisp routine available that I could use to create a bounding box for polylines?
There are plenty of routines out there but the ones that I have found all use VLA functions.
I need to know the max/min X and Y so that I can calculate the bounding area. I actually came up with something that worked by recording the X and Y coordinates of the various nodes but unfortunately, it won't work when an arc is part of the polyline due to the fact that the center arc vertice is not recorded; only the vertices at the beginning and end of the arc.
One note: I ran Atoms-family and there is a function called BOUNDINGBOX but I don't know whether it applies and I couldn't get it to run.
This is the last stumbling block of a program I am writing so any help would be greatly appreciated.
Thank you
---AJS