CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6617

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 "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    8703×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
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.
Tip 12697:Opposite angle for angular dimensions in Inventor drawings (iLogic).


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 glossary   



Featuring:
Save your floating licenses (NLS) consumed by inactive users - free unused licenses with
LogOff 2006 More info


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