[BRCM V8i] Setting item browser tree manager options using vba.

Hi All,

I'm working with BRCM and using item browser to quickly extract some information about equipments in the model but in most of the cases it takes a long time due to the fact that default settings for tree manager make the item browser scan for items in all refernces and discover all item types.

So I'm wondering if there is any chance to set up this options using vba by the time the file is open so when I need to use the item browser it will load almost inmediately.

I have contacted support and they advice me to use macro recording to reproduce all the steps but the code produced is very simple and only opens the item browser but it doesn't change any options. By the way vba and basic macro recording produce almost the same code.

Here the code produced by macro recording (basic):

Sub main
    Dim startPoint As MbePoint
    Dim point As MbePoint, point2 As MbePoint

'   Start a command
    MbeSendCommand "MDL KEYIN Bentley.ECUISupport,ECUISupport EC BROWSE"
End Sub

To make it more clear, these are the options I need to change:

Thank you in advance.

Rodrigo

  • Could you point me somewhere to start?

    No,  I cannot. Item browser is a tool, not API, so there is no "place, where to start". If you have plenty of time and proper knowledge, you can try to hack the application, but I do not think you can be successful.

    Navigating the object browser for Bentley.ECSystem.2.0.dll and Bentley.ECObjects.2.0.dll

    If I remember right (but it's long time I wrote EC code for V8i) these assemblies are used when EC API is used in MicroStation addin. In MicroStation SDK, there is EC SDK documentation available, but before it, to learn EC XML data and EC concepts is recommended. EC API can be used to access data in DGN file in the same way as Item browser (it is written on top of EC API).

    The first time I get an error:

    I do not recall such error in MicroStation, so maybe BRCM adds something extra to DGN file, which causes this exception.

    As you mention it solves the problem

    Another option you can try (but you did not tell too much what data and how you need to query) is to create own search definition (EC Query), save it and to recall it. I am not sure if there is key-in to open the search directly, without interaction with the whole Item browser, but may be they are.

    With regards,

      Jan