This new release of CIVIL 3D has a brand new API to evaluate how green and sustainable is the new project which you are designing in Civil 3D. This Feature is available only through .NET API. How do we use this API to evaluate my current project ?
Here is a c# code snippet -
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
CivilDocument cDoc = CivilApplication.ActiveDocument;
Database db = Application.DocumentManager.MdiActiveDocument.Database;
using (Transaction trans = db.TransactionManager.StartTransaction())
{
try
{
GreenEvaluate checkGreenEvl = new GreenEvaluate();
// Call GreenEvaluatation to compute the Green factor and
// Sustainablility factor for the current CivilDocument
checkGreenEvl.GreenEvaluatation(cDoc);
// Check the Green factor and Sustainability factor
ed.WriteMessage("\nIs this Project Green ? :" + checkGreenEvl.GreenFactor.ToString());
ed.WriteMessage("\nIs this Project Sustainable :" + checkGreenEvl.SustainableFactor.ToString());
trans.Commit();
}
catch (System.Exception ex)
{
ed.WriteMessage("\nException: " + ex.Message);
}
}
If you have any questions on this particular API, let's come back on the same day 'next year' to discuss about this!
Have a nice day! :)