SteveK Posted January 7, 2010 Posted January 7, 2010 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 Quote
Lee Mac Posted January 7, 2010 Posted January 7, 2010 I thought they stored the double-precision point, not a "rounded" version. Quote
SteveK Posted January 7, 2010 Author Posted January 7, 2010 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. Quote
Lee Mac Posted January 7, 2010 Posted January 7, 2010 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. Quote
SteveK Posted January 7, 2010 Author Posted January 7, 2010 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. Quote
Lee Mac Posted January 7, 2010 Posted January 7, 2010 Nah: (mapcar (function rtos) pt) The precision is fine, it will just use the precision that the user has set. 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.