Surface |
The SurfaceAnalysisSlopeArrowData type exposes the following members.
Name | Description | |
---|---|---|
![]() | SurfaceAnalysisSlopeArrowData | Initializes a new instance of the SurfaceAnalysisSlopeArrowData class |
![]() | SurfaceAnalysisSlopeArrowData(Double, Double, Color) | Initializes a new instance of the SurfaceAnalysisSlopeArrowData class |
Name | Description | |
---|---|---|
![]() | MaximumSlope | Gets or sets the maximum slope value, as a % grade. |
![]() | MinimumSlope | Gets or sets the minimum slope value, as a % grade. |
![]() | Scheme | Gets or sets the slope arrow color value. This is an AutoCAD Color object. |
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}