bagheerah Posted April 13, 2009 Share Posted April 13, 2009 I would like to know if there's a way of extracting from the dxf definition data of a lwpolyline a value of the x and y coordinates of one of the lwpolylines' vertex with at least 8 decimals. All I seem to get are 5 decimals with this: taining Entity Information ;obtaining one of the vertex X coordinate (setq ent (entlast)) (setq entl (entget ent)) (setq ptx (car(cdr (nth 18 entl)))) Presuming the 18th pair of the list (dxf definition of a lwpolyline) are the coordinates of a vertex. If anyone knows how to obtain longer chains of decimals out of the coordinates of a vertex in a polyline through the DXF definition please help. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
CarlB Posted April 13, 2009 Share Posted April 13, 2009 (setq ptx (rtos (cdr (assoc 10 entl)) 2 15)) Quote Link to comment Share on other sites More sharing options...
lpseifert Posted April 13, 2009 Share Posted April 13, 2009 The precision is there, it's just not displayed $ (cdr (assoc 10 (entget (car (entsel))))) (-1.30764 -5.14976) _$ (rtos (car (cdr (assoc 10 (entget (car (entsel)))))) 2 15) "-1.307643600178494" Quote Link to comment Share on other sites More sharing options...
bagheerah Posted April 13, 2009 Author Share Posted April 13, 2009 as in the title, thanks!!!!!! Quote Link to comment Share on other sites More sharing options...
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.