Jump to content

Recommended Posts

Posted

Hi folks,

 

I am dealing with the output of dxf code 10 and it is something like

597455.0 7.64557e+006 345.57

Does anyone know if these units are set somewhere? I would like to change the units to 4 decimal places.

 

Appreciate your time,

 

steve

Posted

I thought they stored the double-precision point, not a "rounded" version.

Posted

Yeah they do, the problem (that I'm sure you've faced with your PtM) is when I'm directly taking those values (as they appear) and copying them to somewhere outside autocad.

Posted
Yeah they do, the problem (that I'm sure you've faced with your PtM) is when I'm directly taking those values (as they appear) and copying them to somewhere outside autocad.

 

Ahh, good point - I've used vl-princ-to-string, as for the small values I've tested it on, nothing seems out of place, but I think I shall have to change to rtos, which follows the users LUPREC LUNITS sysvars.

Posted
:D I just noticed that with your program too! You might have to add a precision option. But anyways, rtos does the trick for my purposes, will have to separate each co-ord component and reassemble again.
Posted

Nah:

 

(mapcar (function rtos) pt)

 

The precision is fine, it will just use the precision that the user has set. :)

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...