Is there a way to get the Entire Sheet Index to a list box using Visual Studio?

Is there a way to get the Entire Sheet Index to a list box using Visual Studio? I can see if it is read only

Parents Reply
  • Hi Bob,

    In Openroads Designer 10.08

    I assume you mean OpenRoads Designer CE - 2020 Release 2 Update 8, build 10.08.01.33? Please, be precise. I do not like the way how civil products are named, but the names are unique, as well as complete build number.

    This version of ORD is built on top of PowerPlatform CE U13, which is important when discussing API related to MicroStation.

    using VB.Net but a response for C++ is okay too

    It's a bit strange span of technologies ;-) VB.NET is not developed (on hold) weird language, on the other hand, C++ is "full power" tool, but seriously complex. But to write MicroStation apps code, both native and managed APIs (C# is much much better of course) are very useful.

    ListBox1.Items.Add(Bentley.Internal.MstnPlatformNET.SessionSymbols.IsSheetIndexReadOnly

    I am not sure what is expected this code will do (Jon wrote good explanation).

    Because you use ListBox, I assume you use WinForms. What I remember (but it's quite long time and in C#), for ListBox it's recommended to create a proper collection and to set it as ListBox DataSource.

    I tried DragDrop but all I get is the drawing name and a bunch of trash.

    Seriously? Even when XML data are not big help in the discussion, to say that EC data list is a bunch of trash is to throw out one from the most crucial technologies in Bentley world (and it's not about MicroStation only, but also iModelJS and iTwins). To be familiar (at least a bit) with EC data is "must to know" today.

    Is there a way to get the Entire Sheet Index

    The example mentioned by Bob provides I think a lot of useful information how to obtain the data in C++.

    I think quite the same approach (to load workset file at background) can be used in NET API also. The only (but important) difference is that there is no DgnLinkManager available. But the link data can be obtained as EC data using EC Query and interpreted using standard EC API (I did it not with sheet index, but URL links attached to elements, which are very similar). The only thing I am not sure about is whether it's possible to use EC Query with a file loaded at background (not active opened file).

    With regards,

      Jan

Children