Is it possible to create a new TerrainSurface object and draw it with the ORD SDK?

I asked a number of questions in the MicroStation Programming forum already, and they pointed me here; 

My company develops MDL applications for the Engineering / Design community in MicroStation. We can use either C++ or .NET APIs as necessary. I am currently using OpenRoads Designer Connect 10.07.00.56

In our application we have our own DTM model, we would like to render it as a Terrain Model object in ORD.  I can do essentially what I want through the UI using the Create Terrain Model from Elements tool.

I've looked at the managed code examples in the OpenRoadsDesigner SDK and I can't find any examples that show how to create a new Terrain Model.  

I presume TerrainSurface is the class i'm interested in. Is it possible to create a new TerrainSurface object  and draw it through the API?

Thanks,
Chris

Parents
  • Chris,

     

    There is not a TerrainSurface Create in the API at the moment, only a read  API.  One idea would be to use an already persisted "Seed" Terrain Surface in a DGN and build from that. 

     

    Another option may be to use the MicroStation Terrain Element and create the MS Terrain.  There is an API to create a MicroStation Terrain.  If you wanted that Terrain to be featurized in the ORD environment, you can use the command to set the feature definition of that element.  That will convert that MicroStation Terrain into a civil Terrain Model

     

    Another option may be to issue key in commands programmatically after you have placed your DTM elements into a selection set. This may require user interaction and I am not sure if that is acceptable for you.  If user interaction is required and you want to automate it, you could launch MVBA macros that were previously recorded to select the required options and data points.

     

    Hope this helps.

  • Thanks for the suggestions Chris. Creating the terrain surface from an MS terrain may be my best shot. I'll give it a try.  

    Cheers,
    Chris

Reply Children
No Data