- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm taking a set of coordinates from a .csv and then trying to create a selection set of lines that end at those coordinates.
Assuming these are the coordinates-
(setq x "321535.509" y "5807325.787" z "0.000")
Creating a selection set like this-
(setq coord (list (atof x) (atof y) (atof z)))
(setq 10ss (ssget "x" (list '(0 . "LINE") '(-4 . "=,=,*") (cons 11 coord) )))
I believe the problem I'm having is that, as I've read elsewhere "that the real precision (accuracy) of real numbers in AutoLISP is 16 digits". Therefore the coordinates that I have are only to 3 decimal places whereas in cad the lines (if I turn up the precision I can see) go to that much more detailed precision therefore my selection set is coming up with nil.
Does anyone have any suggestions of how I might be able to create that selection set with my 3 decimal place coordinates?
Solved! Go to Solution.