Surface |
The SurfaceAnalysisDirectionData type exposes the following members.
| Name | Description | |
|---|---|---|
| SurfaceAnalysisDirectionData | Initializes a new instance of the SurfaceAnalysisDirectionData class | |
| SurfaceAnalysisDirectionData(Double, Double, Color) | Initializes a new instance of the SurfaceAnalysisDirectionData class |
| 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. |
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}