This document is archived and information here might be outdated.  Recommended version.

ICurve3D.GetSubcurve3D Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IC > ICurve3D Interface > ICurve3D.GetSubcurve3D Method
ArcGIS Developer Help

ICurve3D.GetSubcurve3D Method

Extracts a portion of this curve into a new curve.

[Visual Basic .NET]
Public Sub GetSubcurve3D ( _
    ByVal fromDistance As Double, _
    ByVal toDistance As Double, _
    ByVal bAsRatio As Boolean, _
    ByRef ppOutSubCurve As ICurve3D _
public void GetSubcurve3D (
    double fromDistance,
    double toDistance,
    bool bAsRatio,
    ref ICurve3D ppOutSubCurve
HRESULT GetSubcurve3D(
  double fromDistance,
  double toDistance,
  ICurve3D** ppOutSubCurve

fromDistance is a parameter of type double toDistance
toDistance is a parameter of type double bAsRatio
bAsRatio is a parameter of type bool ppOutSubCurve [out]
ppOutSubCurve is a parameter of type ICurve3D**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Gets the subcurve between the specified points along the original curve and creates a new curve. The elements in the new subcurve are the same type and have the same properties as the elements of the original curve.



        public static void GetSubcurve3D()


               const double FromDistance = 0.27;

               const double ToDistance = 0.823;


               IGeometry polygonGeometry = GetPolygonGeometry();


               IPointCollection pointCollection = 
as IPointCollection;


               IPoint firstPoint = pointCollection.get_Point(0);


               ICurve3D curve3D = polygonGeometry as ICurve3D;


               ICurve3D subcurve3D;


                      FromDistance, ToDistance, true, out subcurve3D


See Also

ICurve3D Interface