Print Page | Close Window

autolisp - how to display result in a dialog box /

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=2555
Printed Date: 24.May.2026 at 20:30


Topic: autolisp - how to display result in a dialog box /
Posted By: sadhu
Subject: autolisp - how to display result in a dialog box /
Date Posted: 18.Oct.2009 at 16:17
hello,

I'm using autolisp to make a simple calculation and I want the result displayed in a dialog box or a message box.

I am able to call a dialog box from my autolisp but cannot pass the the "result" to display in the dialog box.

I need help to pass the this variable "result" to the dialog box and display in a large font size.

thanks.


 




Replies:
Posted By: CarlB
Date Posted: 18.Oct.2009 at 22:59
(alert "result") will display "result" in a simple dialog box. No options on fonts, size, etc..


Posted By: Vladimir Michl
Date Posted: 19.Oct.2009 at 09:31
You can use the (set_tile) function to assign/display a value in a DCL dialog, alas with no font options.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: sadhu
Date Posted: 19.Oct.2009 at 10:11
Originally posted by Vladimir Michl Vladimir Michl wrote:

You can use the (set_tile) function to assign/display a value in a DCL dialog, alas with no font options.



Thanks a lot

(set_tile) was what i needed.Big%20smile



Print Page | Close Window