New

Microstation dialogs filterString

Add option for  mdlDialog_fileOpen,  mdlDialog_fileCreate and others to accept filterString with extension and custom explanation of file type. Similar to GetOpenFileNameA(comdlg32.dll). 

MS dialogs are preffered because it has file and directory history as well as configuration variables.

Example which is not yet possible:

  • FYI. From what I provided it appears that only a comma separated list of file extensions without descriptions is currently supported (MDL and VBA), like this:

    params.defaultFilterP = L"*.abc,*.xyz"

    I will check into this (idea - or functionality) further and see if we can find a way to make this work (with descriptions) like this had worked in the past.

    Thank you,
    Bob

  • Offline in reply to Oto

    It shows in dropdown but no files are actually filtered in file list.

  • I need it to use in VBA dialog.

  • Hi  ,

    If you can, see if the steps below help with what you are looking to do, otherwise let me know what still may be missing/needed.

    1. Modify the ECNative Example

    Folder: ..\examples\DgnEC\ECNativeExample
    File: ECNativeExample.cpp+132
    From: params.defaultFilterP = L"*.dgn";
    To: params.defaultFilterP = L"ABC Files [*.abc],XYZ Files [*.xyz]";
    Recompile: bmake +a

    2. Test

    Open MicroStation
    Load the MDL and Run the key-in: mdl load ECNativeExample.ma;ecexample ecschema show
    Click the File Open Button ("")
    Expand the File Filter options (should display like below)

    HTH,
    Bob