[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();
        ...
    }

  • 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.

  • Hi Jonathan

    Final drawings acording Czech and Sloval standards are differently than current tools offer now.
    There are lot of things, what we need to supply for our customers and there is not possible to summary in one thread here, but I will try it...
    The following descriptions and editing tools that are missing in the software are absolutely essential for our designers:
    ANNOTATION
        PLAN:
            - Annotation of branches along  branch (branch name, size and material and lengths of pipes in this branch). Lengths should be aggregated (summary od lenghts for the same pipe size and material) in annotation. See a picture
            - to show and annotate a protecting pipes
            - to annotate direction nodes along pressure branch, pressure pipes
            
        PROFILE    
            - to draw one profile for all (vertical) moved profiles along branch
            - annotation in box of profile
                - annotations of intersections of another linear features
                - annotations of intersections of another pipes
                - move annotation leader lines when texts are overlaping. Now we can move it in frame only (under bottom of profile)
                - annotation of pressure nodes
                - annotation more terrains (desing, more existing surfaces)
                - annotation of pipes and utlities along profile in schematic mode (station - station and horizontal line with specific linestyle and length annotation)
                - show and annotate of protection pipe
            - annotation under bottom of profile
                 - aggregated anotation of lenghts of pipes, to change it when slope or size or material is changing only. Now is annotated each pipe individually.
                - 4 rows of annotation (sizes, slopes, capacity a and velocity)            
                - intersection of another pipes annotation            
            - annotation above profile
                - annotation of areas of covering surface (grass, concrete, asphalt...)
                - annotation of general area (land use, cadastral territory,...)                    
                - annotation of direction of pipes in nodes (see a picture)
            
    EDITING
        - bulk editing of slopes between more nodes
        - to work with center of node for pipes. To place a pipes from node to node by center point of nodes, but to cut a pipes at edges of manhole. When I am rotating a manhole to keep a pipe inverts in node center. It means pipe is placed from node center point to node center point (pipe inverts are in nodes center points) but software shows the pipes from edge to edge of manhole)
        
    COMMON
        - We need to work with branches (by name, not only by number). To set it from node to node and to have a renaming possibility
        - Work with direction nodes (vertices of branch where XY direction changes). To set name of these nodes, to have a possibility to rename them
        - Manhole composition  
            - to compute this composition acording to manufacturer (bottom, more circles- rings between bottom and top and top)
            - to report it
            - to draw pieces of composition into drawing in 3D (now we have posibility to set top and bottom of manhole only)
        - protection pipe
             - possibility to create a protection pipes (from pipe station to pipe station)
             - possibility to set and change a size of protection pipes (Pipes that are protecting a drainage, gas,... pipes). To change its size according to size drainage pipe)
        - trench
            - pipes
                - to set and change a trench type according to covered surface (concrete, asphalt, grass,....)
                - to change trench when pipe size is changing
            - manholes
                - possibility to set a trench for node
                - to change a trench type
        - possibility to change a size of node (similar to pipe sizes). We have to change feature definition now.


    I can send you drawings with annotation and with more details. When it is not possible to have these tools in software, we need to have more tools in SDK. Our customers need and want to use a software, but they have to use old Storm and Sanitary + StormCZ (aditional tools for designers in Czech Republic - code in VBA, I could use database tools)

    Regards

    Josef

  • 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