ASH71 Posted August 7, 2024 Posted August 7, 2024 I am having trouble getting the LUprec to work is a lisp file. Getting the - no function definition: VLA-GET-LUPREC - message. Can anyone tell me what I am doing wrong? ;; Change LUPREC to 0 (setvar "LUPREC" 0) (princ "\nLUPREC set to 0.") Precision on our drawings all set a 3 decimal places but I want to change to 0 Quote
pkenewell Posted August 7, 2024 Posted August 7, 2024 (edited) Explain more what you are doing and provide a sample drawing. At first glance, it sounds like you are trying to change the DIMENSION precision? If that is the case, use the system variable DIMDEC. For example (setvar "DIMDEC" 4). If you are trying to change existing dimensions, use the properties panel or DIMOVERRIDE command with the DIMDEC variable, e.g. (command "._dimoverride" "_dimdec" 4 "") Edited August 7, 2024 by pkenewell Quote
ASH71 Posted August 7, 2024 Author Posted August 7, 2024 Hi mate, thanks for the response. I am trying to write something simple that will work in conjunction with a lisp that LEEMAC done (SP CHAINAGE). I tried using the term UNITS which didn't work either. The drawing units are set at 4 decimal places and rather than typing units and changing the precision to 0 I was going to try to write a small lisp file and attach to a toolbar button. Image below shows text on the top in blue with 4 decimal places - dims o the bottom with no decimal places. Quote
pkenewell Posted August 7, 2024 Posted August 7, 2024 @ASH71 Without knowing how Lee's program works - I can't help you. Does it create plain text, dimensions or text with fields? Again - I requested a sample drawing that would give more information than an image. Do you need to both create and edit existing values? Have you contacted Lee Mac from his website? I imagine Lee would be able to alter his program to accommodate your needs. Quote
ASH71 Posted August 7, 2024 Author Posted August 7, 2024 Ok I'll try LEEMAC through his website - thanks anyway. Quote
mhupp Posted August 7, 2024 Posted August 7, 2024 Search for a post by StevenP about setting/changing dimstyles Quote
SLW210 Posted August 7, 2024 Posted August 7, 2024 Just add (setvar "LUPREC" 0) to the ACADDOC.lsp it will set each drawing as you open it. 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.