Speedster2 Posted January 11, 2020 Share Posted January 11, 2020 I m using FieldArithmetic lsp for a while. It's a amazing lisp, I thankful to LEE MAC. Result is always 4 decimal places. Can it be user define? I have tried it. But zero result. FieldArithmeticV1-2.lsp Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 11, 2020 Share Posted January 11, 2020 Have you tried following the instructions I provided here? Quote Link to comment Share on other sites More sharing options...
Speedster2 Posted January 12, 2020 Author Share Posted January 12, 2020 Thanks Lee I tried. That is very much helpful. But I am working with lots of decimal places. Please see sample drawing (circle places). But lisp Result is always same decimal places. Sample Drawing.dwg Quote Link to comment Share on other sites More sharing options...
BIGAL Posted January 12, 2020 Share Posted January 12, 2020 (edited) Have a look at say a mtext field it will display the field info it reads your units settings for number of decimals, so yours must be set at 4, two choices change your units or use the correct field description you can change precision in the field box so see what you want. fmt "%lu6%qf1" Lees "%lu2%pr3" is units 2, 3 decimals say metric. Edited January 12, 2020 by BIGAL Quote Link to comment Share on other sites More sharing options...
Speedster2 Posted January 12, 2020 Author Share Posted January 12, 2020 Thanks Bigal... Now I can change whenever I want... But decimal 1,2,3 can be optional by user define? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted January 12, 2020 Share Posted January 12, 2020 "%lu2%pr3" = (strcat "%lu2%pr" (rtos x 2 0)) just enter the vaule of x in your code. 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.