TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: doductiep on March 30, 2023, 10:32:55 PM

Title: Issue with the number of digits after the comma in AutoCAD 2024
Post by: doductiep on March 30, 2023, 10:32:55 PM
Hi every one.
I'm using Lisp to insert value from .txt file in to AttBlock Autocad. However the number after comma doesn't displayed as set (2 number after comma), but instead the number of digits after the comma is the same as in the original .txt file.
In autolisp I was set (setvar "LUPREC" 2), the values insert were convert to text (rtos VALUE 2 2)
This issue only occurs in CAD 2024, and not in CAD 2007 or 2022
Please help me. Thanks.
Title: Re: Issue with the number of digits after the comma in AutoCAD 2024
Post by: doductiep on March 30, 2023, 10:44:01 PM
I just fixed it by setvar "DIMZIN" 0.
End of the topic. (I can't delete this topic).
Title: Re: Issue with the number of digits after the comma in AutoCAD 2024
Post by: kdub_nz on March 31, 2023, 12:14:21 AM
We'll leave it as posted in case someone else has a similar problem.

Thanks for providing your resolution to the problem :)
Title: Re: Issue with the number of digits after the comma in AutoCAD 2024
Post by: Lee Mac on March 31, 2023, 10:28:00 AM
On the same topic, this may be of interest -

http://lee-mac.com/consistentrtos.html