CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3168 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 12075:

Question CAD 
 %  platform  category 
Q - question

How to display a temporary iLogic message, just for a couple of seconds?

A - answer The standard MsgBox function in an iLogic rule requires user interaction, pressing a button in the message dialog box. But if you need to show just a temporary message, just for a couple of seconds and without confirming, you may use the following iLogic macro code.

An example - show message for 3 seconds:

Imports System.Threading.Tasks

Dim timeout = 3 ' secs
Dim msg As New Form() With { .Enabled = False }
Task.Delay(TimeSpan.FromSeconds(timeout)).ContinueWith(
  Sub(t) 
    msg.Close() 
  End Sub ,
TaskScheduler.FromCurrentSynchronizationContext())
MessageBox.Show(msg, "My temporary message", "MyTitle")
Inventor
100% *  CAD 
5.12.2018    127×  
applies to: Inventor ·

See also:
Tip 11732:How to sort BOM or parts list by part number in Inventor? (iLogic)
Tip 10889:How to get user's full domain name, phone No., department, e-mail...
Tip 10114:iLogic tip: returning a value on the True and False conditions.
Tip 9952:iLogic rule - check whether iProperties are overridden.
Tip 9935:How to distinguish between an assembly and weldment in VBA or iLogic?


Back   All CAD Tips All CAD tips&tricks

Three methods of adding line lengths in AutoCAD. « | » Unicode and DXF files.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist