Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calculator answer

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
215 Views, 6 Replies

Calculator answer

I´m customizing my tablet and i use a lot the calculator, so i wonder if
there is a variable that stores the answer for later use
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

Copy the value to the clipboard from the command line...assuming that's the
calculator you're referring to...
then paste it in when you need it...there are also user variables that can
be saved and recalled that you can
struggle with the help files to learn about. You could make a tablet pick
run a script and save a variable to a value.
John Payne
Message 3 of 7
Anonymous
in reply to: Anonymous

I´m talking about the Autocad calculator (Command CAL)...

What i want is to know if there is a Sysvar or something that stores the
answer, so i can just pick the tablet and get that number for the next
operation

Jorge

John Payne escribió en el mensaje de noticias
188ABFF30154E1CAB6448922310CB79B@in.WebX.SaUCah8kaAW...
> Copy the value to the clipboard from the command line...assuming that's
the
> calculator you're referring to...
> then paste it in when you need it...there are also user variables that can
> be saved and recalled that you can
> struggle with the help files to learn about. You could make a tablet pick
> run a script and save a variable to a value.
> John Payne
>
Message 4 of 7
Anonymous
in reply to: Anonymous

Be patient, someone'll come along with the answer. It's above my area of
expertise.
John Payne
Message 5 of 7
Anonymous
in reply to: Anonymous

Jorge Alvarez wrote in message ...
>I´m customizing my tablet and i use a lot the calculator, so i wonder if
>there is a variable that stores the answer for later use
>

Looks like you can store the result as a global variable for later use

(defun C:TEST ()
(if (not (member "geomcal.arx" (arx)))
(arxload "geomcal.arx" nil)
(setq *expression* (cal))
)
)

;;;Command: !*expression*

HTH
LE
Message 6 of 7
Anonymous
in reply to: Anonymous

Thanks Luis. You have saved me hours of typing. However, if you use the
variable inside the CAL command it must be between quotes
('*expression*'...), because it uses the *. You may also change the variable
name.

Jorge
Message 7 of 7
Anonymous
in reply to: Anonymous

Here is another example:

(setq a (cal)) = 2.0
(setq b (cal)) = 3.0

Command: Cal
>> Expression: a+b
5.0

Good Luck!
Luis

Jorge Álvarez González wrote in message
<114E7F9A7A6B52BF56C0D947265FC8C6@in.WebX.SaUCah8kaAW>...
>Thanks Luis. You have saved me hours of typing. However, if you use the
>variable inside the CAL command it must be between quotes
>('*expression*'...), because it uses the *. You may also change the
variable
>name.
>
>Jorge
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost