SurfaceAnalysisSlopeArrowData Class

This class encapsulates all the properties of the slope arrow surface analysis. Slope ranges are specified % grade, where 1.00 is 100%. The color is an AutoCAD Color object.

A Slope direction arrow analysis typically contains several slope arrow ranges. The Surface.Analysis.GetSlopeArrowData() method returns an array of SurfaceAnalysisSlopeArrowData objects, one for each slope arrow range.
Inheritance Hierarchy
SystemObject
  Autodesk.Civil.DatabaseServicesSurfaceAnalysisSlopeArrowData

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public sealed class SurfaceAnalysisSlopeArrowData

The SurfaceAnalysisSlopeArrowData type exposes the following members.

Constructors
 NameDescription
Public methodSurfaceAnalysisSlopeArrowDataInitializes a new instance of the SurfaceAnalysisSlopeArrowData class
Public methodSurfaceAnalysisSlopeArrowData(Double, Double, Color)Initializes a new instance of the SurfaceAnalysisSlopeArrowData class
Top
Properties
 NameDescription
Public propertyMaximumSlope Gets or sets the maximum slope value, as a % grade.
Public propertyMinimumSlope Gets or sets the minimum slope value, as a % grade.
Public propertyScheme Gets or sets the slope arrow color value. This is an AutoCAD Color object.
Top
Example
C#
 1[CommandMethod("SlopeAnalysis")]
 2public void SlopeAnalysis()
 3{
 4    using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction())
 5    {
 6        // Get the first surface in a document           
 7        ObjectId surfaceId = doc.GetSurfaceIds()[0];
 8        TinSurface oTinSurface = surfaceId.GetObject(OpenMode.ForRead) as TinSurface;
 9        foreach (SurfaceAnalysisSlopeArrowData d in oTinSurface.Analysis.GetSlopeArrowData())
10        {
11            editor.WriteMessage("Min : {0} Max : {1} scheme: {2} \n", d.MinimumSlope, d.MaximumSlope, d.Scheme.ColorName);
12        }
13    }
14}
See Also