As it says in the subject line, I’m looking for a way to add a DEM file to a surface using dynamo. My attempts at using the api documentation to write python code in Dynamo has been…discouraging…and I was hoping a tool already exists or someone could give me some pointers with the code. Any help would be appreciated!
Hi @rpriceAZEG6,
Are you looking to create a grid surface or TIN surface from the DEM?
A TIN surface from the DEM
@zachri.jensen Any luck with this one?
It is recommended to add a data clip boundary first to the Surface before adding one or more DEM files.
Never tried to use it before
Thanks for this recommendation
@hosneyalaa You show a screenshot of the SurfaceDefinitionDEMFilesMembers page but I’m having a hard time locating that on the website. Could you post a link to that page?
I think there is something wrong with the filename. I guess \ must be / or \ in Python. So use:
C:\path to file\filename.tif
or
C:/path to file/filename.tif
Does that help?
I would just use a file path node and then have the path as an input to the Python node. Then you don’t have to worry about typos.
@zachri.jensen Wanted to leave a special callout to you and your recent episode with office hours. Before watching the class all I could accomplish with the API was crashing C3D. The code above was made using the principles y’all teach in the episode (linked below):
Glad to hear it! Nice work
Can someone post the python code for civil 3D 2023 version, this code did not work.