Exchange Forum > AutoLISP and Visual LISP
Point inside a closed polyline, joining splines
Point inside a closed polyline, joining splines

#1

Jaiganesh
Join Date:
09-18-2009
Hi all,
Greetings from a newbie. I have three questions.
 
1. Is there any way to get a point inside a closed polyline / region, just by selecting the polyline / region? (When you offset the polyline by a value, it asks a point on the side to offset- Can this be automated? Centroids don't necessarily be inside - Eg: Boomerang-like sections) AutoCAD does this when you select a region for hatching.- It hatches the inside without you specifying an inside point. How does it do this?
 
2. Any way to get the bounding box of a very random selection of objects. (I thought of making regions out of everything I selected, get the Bounding Box co-ordinates from the massprop command and then exploding the original selection- but how to get the BB co-ordinates of these, let alone the BB of a block?
 
3. Any way of joining a spline with an open polyline? The spline should be divided into a no. of very small straight lines - which is within an user-specified tolerance (possibly by MEASURE command) and the resulting points should be joined to make a spline-like series of lines, which in turn would be joined to the original polyline.
 
Any ideas?
Thanks in advance.
Point inside a closed polyline, joining splines

#2

VVA
Join Date:
11-28-2007
Hi Jaiganesh,
 
1. You can use the method vla-offset and delete the polyline with a smaller (larger) area than the sample.
2. http://www.theswamp.org/index.php?topic=26664.0he LISP. ECO - External Contour of Objects