Click or drag to resize

DrillTrajectoryGeometry Property

Returns the collection of the Geometry objects associated with the trajectory.///

Namespace: Woodwork.Automation
Assembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 2.1.25
Syntax
IList<Geometry> Geometry { get; }

Return Value

IListGeometry

JavaScript
 // How to iterate over a collection of geometry and cast them to particular one
 for (var index = 0; index < trajectory.Geometry.Count; index++) {
     var geometry = trajectory.Geometry[index];
     switch (operation.GeometryType) {
     case GeometryTypeEnum.Point:
         var point = host.asType(Point, geometry);
         // ...
         break;
     case GeometryTypeEnum.Segment:
         var line = host.asType(Segment, geometry);
         // ...
         break;
     case GeometryTypeEnum.Arc:
         var arc = host.asType(Arc, geometry);
         // ...
         break;
     }
}

See Also