Jump to content

DXF codes precision


bagheerah

Recommended Posts

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.

Link to comment
Share on other sites

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"

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...