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 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?
Hi Raul,
Can you try: terrainmodel updatefromsource name=<TerrainName>
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
Answer Verified By: Raul C.C.
tested the keyin above and looks to work okay
Hi Mark.
Thank you very much Mark, indeed this is the Key-In!!
Although a C# command would be good, we can automate this using the Key-in.
Note for more information on how to use the command.
terrainmodel updatefromsource name=Abc
terrainmodel updatefromsource name=Abc Def