This class encapsulates all the properties of a single direction in a direction analysis for a surface.
Inheritance Hierarchy
SystemObjectAutodesk.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
Name | Description | |
---|---|---|
![]() | SurfaceAnalysisDirectionData | Initializes a new instance of the SurfaceAnalysisDirectionData class |
![]() | SurfaceAnalysisDirectionData(Double, Double, Color) | Initializes a new instance of the SurfaceAnalysisDirectionData class |
Properties
Name | Description | |
---|---|---|
![]() | MaximumDirection | Gets or sets the maximum direction value for the range, in radians. |
![]() | MinimumDirection | Gets or sets the minimum direction value for the range, in radians. |
![]() | Scheme | 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}