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")
Yes this is the dialog, looks like the name may be somewhat different in your version. I used the dmsg dialogbug on, lots of numbers but nothing seemed to uniquely identify this dialog. It appeared to be 79 but then I also see others that have that same numbers, this dialog seems to be one that changes according to selected tools so it may be difficult.
948 Dialog hook resize: Element Selection, "PSELECT" 'dBox'=-79949 Dialog hook update: Element Selection, "PSELECT" 'dBox'=-79
932 Dialog hook resize: Place SmartLine, "SMRTLINE" 'dBox'=-79933 Dialog hook update: Place SmartLine, "SMRTLINE" 'dBox'=-79
Mike LongstreetVermont Agency of TransportationCivil Engineering Technical SupportVTCAD Help
Hi Mike,
dialog IDs are an internal MicroStation thing. You can try to use key-in dmsg dialogdebug on | off | toggle and to catch the proper dialog id in debug list. But I am not sure if this approach is general, I think new NET dialog are not listed there (but have not tried it).
I am not sure what dialog are you interested in. Do you meanTool Settings windows that is opened when Element Selection tool is started (attached) or some other dialog?
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point