Author Topic: Lisp conversion to centimeter [RESOLVED]  (Read 1013 times)

0 Members and 1 Guest are viewing this topic.

nini007

  • Newt
  • Posts: 58
Lisp conversion to centimeter [RESOLVED]
« on: October 03, 2020, 02:26:16 PM »
Hello the forum,

I allow myself to write on this post, because I also made a small very basic lisp which converts all the variables in centimeter, I wanted to add the modification of the precisions "LUCPREC" and "AUPREC".
I have a problem with the variable "LUCPREC" which gives me an error and stops my lisp.

Someone to help me being a novice I can't see?

Code: [Select]
(defun C:CONVERTC ()
(setvar "LTSCALE" 1)
(setvar "INSUNITS" 5)
(setvar "LUNITS" 2)
(setvar "LUCPREC" 2)
(setvar "AUNITS" 0)
(setvar "AUPREC" 1)
(setvar "DIMSCALE" 1)
(setvar "DIMLFAC" 1)
(setvar "DIMLUNIT" 2)
(setvar "INSUNITSDEFSOURCE" 5)
(setvar "INSUNITSDEFTARGET" 5)
)


thank you in advance for your help
Best regards
« Last Edit: October 04, 2020, 07:16:17 AM by nini007 »

Rod

  • Newt
  • Posts: 185
Re: Lisp conversion to centimeter
« Reply #1 on: October 03, 2020, 06:08:50 PM »
Just a typo.
I'm pretty sure the variable is "LUPREC" without the C
It is short for linear units precision.

Cheers, Rod.
"All models are wrong, some models are useful" - George Box

nini007

  • Newt
  • Posts: 58
Re: Lisp conversion to centimeter
« Reply #2 on: October 04, 2020, 07:14:02 AM »
Thanks Rod  :wink:

A beast typo  :idiot2:
And yet I checked I don't know how many times  :no:

Thank you for your help.  :-)

Best regards