Share

SurfaceAnalysisDirectionData Class

This class encapsulates all the properties of a single direction in a direction analysis for a surface.

Inheritance Hierarchy

SystemObject
  Autodesk.Civil.DatabaseServicesSurfaceAnalysisDirectionData


Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280

Syntax

C#

public sealed class SurfaceAnalysisDirectionData

VB

Public NotInheritable Class SurfaceAnalysisDirectionData

C++

public ref class SurfaceAnalysisDirectionData sealed

The SurfaceAnalysisDirectionData type exposes the following members.

Constructors

 NameDescription
Public methodSurfaceAnalysisDirectionDataInitializes a new instance of the SurfaceAnalysisDirectionData class
Public methodSurfaceAnalysisDirectionData(Double, Double, Color)Initializes a new instance of the SurfaceAnalysisDirectionData class

Properties

 NameDescription
Public propertyMaximumDirection Gets or sets the maximum direction value for the range, in radians.
Public propertyMinimumDirection Gets or sets the minimum direction value for the range, in radians.
Public propertyScheme Gets or sets the color object for the range.

Remarks

Direction ranges are specified in radians. The color is an AutoCAD Color object. A Surface direction analysis typically contains several directions. The Surface.Analysis.GetDirectionData() method returns an array of SurfaceAnalysisDirectionData objects, one for each direction.

Example

 1[CommandMethod("DirectionAnalysis")]
 2public void DirectionAnalysis()
 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 (SurfaceAnalysisDirectionData d in oTinSurface.Analysis.GetDirectionData())
10        {
11            editor.WriteMessage("Min dir: {0} Max dir: {1} scheme: {2} \n", d.MinimumDirection, d.MaximumDirection, d.Scheme.ColorName);
12        }
13    }
14}

See Also

Reference

Was this information helpful?