.NET Changes
This section covers changes to the AutoCAD Civil 3D .NET API for the 2015 release.
Alignments
- A new AddUserDefinedCurve method in the SuperelevationCurveCollection class is exposed that enables you to use the API to create user-defined superelevation curves. For more information, see Creating a User-Defined Superelevation Curve.
Material and Quantity Analysis
- A new API named OpenPayItemFile(PayItemFileFormat fileFormat, System::String^ strPayItemFilePath, System::String^ strPayItemCategorizationFilePath) is exposed in the QTOUtility class. This API enables you to load a pay item file.
Parcels
- A new property named Centroid is exposed in the Parcel class. This property enables you to directly access a parcel’s centroid.
Pipe Networks
- A new API named ApplyRules() is exposed in the Part class. This API enables you to apply rules to a pipe or structure.
Points
- An enumerator has been added for Autodesk.Civil.DatabaseServices.PointFileFormatCollection.
- A new Name property is exposed in the PointFileFormat class. This property enables you to access a point file format’s name.
- A parameter named useNextPointNumSetting has been added to CogoPointCollection::Add(…). This parameter enables you to specify whether to use the Next Point Number setting when adding a new point to the point collection. If the useNextPointNumSetting parameter is set to True, the Next Point Number setting is used. Otherwise, the database is searched to find the next proper point number.
Note: The
Next Point Number setting can be found in the CreatePoints command settings under Point Identity.
Sections
- Two new properties named LeftSwathWidth and RightSwathWidth are exposed in the Section class. These properties enable you to get or set the left swath width and the right swath width for a sample line.
COM Changes
If you are using the COM API, you need to update the object version to 10.4 (from 10.3 used in AutoCAD Civil 3D 2014). The objects and interfaces exposed have remained the same, but you should reference the new libraries, which are installed by default to: C:\Program Files\Common Files\Autodesk Shared\Civil Engineering 104.