Setting the Working Folder for Civil 3D Survey Projects using .NET API

By Partha Sarkar

Using AutoCAD Civil 3D UI tools we can conveniently set the working folder for Survey Projects.

Civil3D_Survey_SetWorkingFolder
 

 

If you want to do the same using Civil 3D .NET API, you need to use SurveyProjectCollection.WorkingFolder API. Using this API we can get or set the working folder for survey projects.

 

Here is a C# .NET code snippet on how to use this API : 

SurveyProjectCollection surveyProjColl = CivilApplication.SurveyProjects;
 
// print the current working folder name
 
ed.WriteMessage("nSurvey Projects Working Folder Before Change : " + surveyProjColl.WorkingFolder.ToString());
 
// now change the working folder location
surveyProjColl.WorkingFolder = "c:\Temp";
 
// print the current working folder name after change 
ed.WriteMessage("nSurvey Projects Working Folder After Change : " + surveyProjColl.WorkingFolder.ToString());

Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading