Jump to content

Recommended Posts

Posted

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

Posted (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 by pkenewell
Posted

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.

example.jpg

Posted

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

Posted

Ok I'll try LEEMAC through his website - thanks anyway.

Posted

Search for a post by StevenP about setting/changing dimstyles

Posted

Just add  (setvar "LUPREC" 0) to the ACADDOC.lsp it will set each drawing as you open it.
 

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