.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Gets the full path of the DEM file in Civil3D

1 REPLY 1
Reply
Message 1 of 2
Anonymous
208 Views, 1 Reply

How to Gets the full path of the DEM file in Civil3D

Hello developers,

 

I have an excisting TIN-surface made bij a dem-file in my drawing. Does anybody know how the get the string of the path of DEMFileName from the database..

 

More information .... -> http://docs.autodesk.com/CIV3D/2015/ENU/API_Reference_Guide/html/17e301bc-ec04-26c2-3062-403cef1f31e...

 

Screen Shot 10-07-18 at 05.11 PM.PNG

Tags (1)
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

I found the solution

 

                TinSurface tinSurface = acTrans.GetObject(SurfaceId, OpenMode.ForRead) as TinSurface;

                // Get the DEMFileName Property from drawing
                for (int b = 0; b < tinSurface.DEMFilesDefinition.Count; b++)
                {
                    SurfaceOperationAddDEMFile operation = tinSurface.DEMFilesDefinition[b];

                    string DEMfilenamePath = operation.DEMFileName.ToString();

                    // the RemoveAt will act at this level
                    ed.WriteMessage(DEMfilenamePath);
                }

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta