CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 12075:

Question

CAD 
 %  platform  category 
A
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 "delay" 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    13632×  
applies to: Inventor ·

See also:
Tip 14527:Search/Replace texts in Inventor drawings - iLogic.
Tip 13963:Sum of pipe element lengths in Inventor (iLogic).
Tip 13911:How to print all sheets at once from Inventor?
Tip 13536:iLogic: How to find if a document is a sheet metal part and if it contains holes?
Tip 13040:iLogic - display information about complexity of an Inventor part.


Back    All CAD Tips



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
  



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info


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