Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

MBF-CAD
en respuesta a: Anonymous

Replace this line of code   -->    (alert (strcat "Maximum Number is: " (rtos nmax)))

 

with the following 3 lines of code

 

(setq textpoint (getpoint "PICK LOCATION for ANSWER"))
(setq answer (strcat "Maximum Number is: " (rtos nmax)))
(command "text" textpoint "" "" answer) 

 

 

Do the same as above for this line   -->   (alert (strcat "Minimum Number is: " (rtos nmin)))

 

(setq textpoint (getpoint "PICK LOCATION for ANSWER"))
(setq answer (strcat "Minimum Number is: " (rtos nmin)))
(command "text" textpoint "" "" answer)

 

 

and finally  replace this line  -->  (alert (strcat "Average of " (rtos tents) " Numbers is: " (rtos ave)))

 

with the following lines

 

(setq textpoint (getpoint "PICK LOCATION for ANSWER"))
(setq answer (strcat "Average of " (rtos tents) " Numbers is: " (rtos ave)))
(command "text" textpoint "" "" answer)

 

 

Make sure you have a copy of the original before making changes.

 

 

And please thank Lee McDonnell for the original code.

 

 

Hope this helps