bagheerah Posted April 13, 2009 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
lpseifert Posted April 13, 2009 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
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.