Named Expressions (IsMdlDialogOpen)

When using Named Expressions how can I find out a dialogs ID, example below.  Looking for the "Choose Element - Element Selection" dialog ID.

Session.IsMdlDialogOpen(-7, "REF")

Parents Reply
  • key-ins:

    • expression show toolboxes
    • expression show dotnetdialogs

    Will display the IDs you are looking for.

    The existing named Expression 'Session.ActiveCommandKeyin()' will return the key-in command of the currently active tool, e.g. CHOOSE ELEMENT

    Whether you can use these to show/hide when the selection tool is selected but without an active selection I'm not sure.

    I thought this one might work but it just returns True, there may be a way of building on it...

    Session.EvalCExprAsBool("Session.ActiveCommandKeyin()", "CHOOSE ELEMENT")=False

    If you are willing to have an active selection, then 'Selection.IsActive()' works without further ado.

    Marc

    Answer Verified By: Mike Longstreet 

Children