Gets the slope arrow analysis data for a Surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public SurfaceAnalysisSlopeArrowData[] GetSlopeArrowData() |
Visual Basic |
---|
Public Function GetSlopeArrowData As SurfaceAnalysisSlopeArrowData() |
Visual C++ |
---|
public: array<SurfaceAnalysisSlopeArrowData^>^ GetSlopeArrowData() |
Return Value
An array of SurfaceAnalysisSlopeArrowData objects.
Remarks
This method returns slope arrow analysis data for a Surface. Data only exists if it has been generated in the
Surface Analysis tab. Slope arrows will appear in the GUI if the slope arrow component of the surface style
are set to visible, but the analysis data will be empty. Data is generated from the Analysis tab on the
Surface Properties dialog.
Use SetSlopeArrowData() to apply changes made to data returned by this method.
Examples

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}