[ORD SDK 10.10.21.04] How to get Subsurface.Model.UtilityModel?

Hi  
our users are working with subsurface and utilites elements in OpenRoads/OpenRail. They need better annotation and editing tools and I am glad the SDK version 10.10.21.04 includes some functionality for drainage and subsurface utilitites but now I am bit lost while writing a code.
 
I am able to get subsurface model and attributes of nodes and links, but there are very few attributes only (name, FD,...) in this model.
More attributes (coordinates, elevations, points for links,......) are include in Entities in Utility Model, but that is still locked for me.
My question is: How to get active Bentley.Civil.Subsurface.Model.UtilityModel? Here are Entities with usable attributes.
Can anyone advise?

Regards

Josef


Here is my example workflow for Subsurface model


    Bentley.DgnPlatformNET.DgnModel actDGNModel = Bentley.MstnPlatformNET.Session.Instance.GetActiveDgnModel();
    ConsensusConnection con = new ConsensusConnection(actDGNModel);
    if (con == null)
        return null;
    {
        GeometricModel act_geomModel = con.GetActiveGeometricModel();
        Bentley.Civil.Subsurface.SDKNet.SubsurfaceModel act_sueModel = SubsurfaceModel.Create(act_geomModel);               
        IEnumerable<Node> sue_nodes = act_sueModel.GetNodes();
        ...
    }

Parents
  • Hi Jonathan,
    Thank for your answer. I have posted my additional information to the forum for this question, but no answer still yet.
    I would like to continue with my C# code, but I have no information from you.
     
    Regards
    Josef
     
     
    Od: Jonathan Smith <bounce-A8A70599-D8E4-4017-B4B5-B33564023B8D@communities.bentley.com>
    Odesláno: čtvrtek 25. srpna 2022 18:57
    Komu: CivilProgramming@communities.bentley.com
    Předmět: RE: [Civil Programming] [ORD SDK 10.10.21.04] How to get Subsurface.Model.UtilityModel?
     
    /cfs-file/__key/communityserver-discussions-components-files/343635/image001.png
    /cfs-file/__key/communityserver-discussions-components-files/343635/image002.png
     

    Hi Josef,

    I'm not sure what functionality we've exposed for Drainage and Utilities data in the SDK at the moment. A colleague is looking into this for you, but I don't think that we're providing what you need at the moment.

    So this isn't going to answer your question directly, but can you help me to understand what your users are wanting to do please? you say "They need better annotation and editing tools" - can you give me some more information on what this means please? 

    Regarding annotation, we are working to support populating Item Types with data from the databases. You can do this now, but we are adding more automation, with the intention that you'll be able to annotate the Item Types.

    Regarding editing, I'm curious about what functionality you need.

    Thanks.

    View online

     

    You received this notification because you subscribed to the forum.  To unsubscribe from only this thread, go here.

    Flag this post as spam/abuse.

    https://communities.bentley.com/notification/read?NotificationId=0ce06fe9-4fdf-4bb3-9b47-a178e0393fa0
     
  • Thanks for these details Josef.

    • I'm not going to respond in great depth here, but I do have a few points for you that should be useful. Whilst I can make no guarantees about content of future versions, what I'm thinking is as follows:
    • We are looking at improving the D&U SDK. I've just checked with a colleague, and we are hoping to provide a function where you can pass in the DGN and Model Name, and you'll then be able to retrieve the data on the nodes and conduits that you need. This will not be in the 2022 R1 release that is about to ship.
    • In 2022 R1, we are adding functionality so that conduits can snap to a connection point on a node, and trim to an intersected connection ring or region.
    • You may be able to use the existing Relabel functionality that's available in FlexTables to relabel conduits to provide a branch name prefix. You could first use the Branch Labeling tool to give each branch a number, then use Relabel to replace the number with a letter. Alternatively, you could create a UDX for the branch label. 
    • I am investigating some new functionality to "Regrade Pipes" at the moment - we idea being that you would be able to pick a start and stop node and a direction, then state if you want to regrade using cover, slope, cover and slope - that kind of thing.
    • We are investigating the MicroStation functionality for parametric cells, with a view to using it for nodes, so that the size of the cells could be driven by the length/width/diameter properties in the Drainage database.
    • Protection could be modelled as a trench. I have an enhancement logged to be able to link parametric constraints in a trench template to properties in the Drainage database, such as the pipe size for example, which could be useful here.
    • Regarding profiles, we do not currently show laterals/taps on the profile of a conduit, so I've logged an enhancement for that. 

    Regards,

    Jon

Reply
  • Thanks for these details Josef.

    • I'm not going to respond in great depth here, but I do have a few points for you that should be useful. Whilst I can make no guarantees about content of future versions, what I'm thinking is as follows:
    • We are looking at improving the D&U SDK. I've just checked with a colleague, and we are hoping to provide a function where you can pass in the DGN and Model Name, and you'll then be able to retrieve the data on the nodes and conduits that you need. This will not be in the 2022 R1 release that is about to ship.
    • In 2022 R1, we are adding functionality so that conduits can snap to a connection point on a node, and trim to an intersected connection ring or region.
    • You may be able to use the existing Relabel functionality that's available in FlexTables to relabel conduits to provide a branch name prefix. You could first use the Branch Labeling tool to give each branch a number, then use Relabel to replace the number with a letter. Alternatively, you could create a UDX for the branch label. 
    • I am investigating some new functionality to "Regrade Pipes" at the moment - we idea being that you would be able to pick a start and stop node and a direction, then state if you want to regrade using cover, slope, cover and slope - that kind of thing.
    • We are investigating the MicroStation functionality for parametric cells, with a view to using it for nodes, so that the size of the cells could be driven by the length/width/diameter properties in the Drainage database.
    • Protection could be modelled as a trench. I have an enhancement logged to be able to link parametric constraints in a trench template to properties in the Drainage database, such as the pipe size for example, which could be useful here.
    • Regarding profiles, we do not currently show laterals/taps on the profile of a conduit, so I've logged an enhancement for that. 

    Regards,

    Jon

Children
No Data