Hello world!
Im making a program to "shrinkwrap" a set of points selected by the user. It asks for 2 seed points and selects the next by a combination of distance and angle. I will post it when done in case anyone else would find it useful.
I have a couple little snags though as i'm new to autolisp coding.
How would I output the data as a polyline on the current layer? I have it stored now as a list eg.
Command: !pointsxyz
((-48.5079 -0.709823 0.0) (-46.3576 4.23851 0.0) (-43.3432 14.1435 0.0)
(-38.6845 11.4073 0.0) (-48.5079 -0.709823 0.0))
I could do entmake but then how do I specify to make it on current layer?
Also I got stuck with filtering the user's point selection window to only points.
(setq points (ssget _W))
And lastly is there a neat way to compare check if one point has the same coordinates as another? Directly comparing does not seem to work, I assume it only compares a reference to the coordinates.
Many thanks for reading, and happy coding!