Hello,
We have a file where we created a Terrain Model Surface by importing an LandXml file. Now we would like to automatically update the Terrain Model if the LandXml file is modified. We know that there is a button for "Update Terrain Model from Source" (see image below). However, we would like to do this from code (key-in, VBA, C# or C++).
We have tried to:
May I ask if someone knows how to do this?
We know we can edit/create the Terrain Model programmatically, however if it is created from a file then we can't programmatically update nor find the source file.
Kind regards,
Raul
Edit:
Software release: OpenRoads Designer CE - 2022 Release 1 Update 11 Version 10.11.00.115
Hi Raul,
because your question is about OpenRoads Designer, I recommend to move your question to Civil Programming Forum. To move existing discussion to another forum, use More > Move tool, available under your original post.
Also, please follow the best practices, and specify (preferably using standard subject format) used product and its exact version.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thank you Jan, I will move it.
Hi Raul C.C. ,
Hopefully one of our Civil Developers can provide a C++ or .NET API recommendation to your question.
The key-in I see should be "terrainmodel updatefromsource". However, the same question in a previous post (at the time) did not provide any additional information or recommendation towards a resolution.
Bob
Hi Robert,
Thank you for your answer, however, the problem with the key-in is that I can't make it work. This are the steps I do.
With mouse click:
Using the key-in
terrainmodel updatefromsource
I also tried, without success, to add the LandXml file path as argument of the key-in as follows:
terrainmodel updatefromsource "C:\MyProject\MyLandXmlFile.xml"
Do you know if I am doing something wrong? Could it be possible that the key-in is disabled?
Can you try: terrainmodel updatefromsource name=<TerrainName>
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
Answer Verified By: Raul C.C.