ArcObjects Library Reference (Geometry)  

IExtrude.ExtrudeAlongLine Method

Extrude a geometry along a specified line, using the Zs on the two ends of the line to set Zs on the top and bottom.

[Visual Basic .NET]
Public Function ExtrudeAlongLine ( _
    ByVal extrusionLine As ILine, _
    ByVal baseGeom As IGeometry _
) As IGeometry
[C#]
public IGeometry ExtrudeAlongLine (
    ILine extrusionLine,
    IGeometry baseGeom
);
[C++]
HRESULT ExtrudeAlongLine(
  ILine* extrusionLine,
  IGeometry* baseGeom,
  IGeometry** extrudedGeom
);
[C++]

Parameters

extrusionLine

  extrusionLine is a parameter of type ILine

baseGeom

  baseGeom is a parameter of type IGeometry

extrudedGeom [out, retval]

  extrudedGeom is a parameter of type IGeometry

Product Availability

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

Description

Creates a MultiPatch or Polyline from a base geometry by extruding the base geometry along an axis defined by the input Line.  The base Z value of the geometry is uniformly set to the Z value of the Along Line's FromPoint and top Z value is uniformly set to the Z value of the Along Line's ToPoint.  The top geometry is also shifted in the X and Y directions by an offset defined by the X and Y change of the Along Line between From and To Points.  The resulting extrusion is always parallel to the XY-plane on both the base and top.  The input line should be ZAware and ZSimple.

Remarks

All non-linear segments are treated as linear segments when extrusion is performed.  Only Polylines, Polygons, Envelopes, Points, and Multipoints are allowed as input geometries.  Polylines, Polygons, and Envelopes will output MultiPatches while Points and Multipoints will output Polylines.

IExtrude ExtrudeAlongLine Example

See Also

IExtrude Interface | IExtrude.ExtrudeFromTo Method | IExtrude.ExtrudeAbsolute Method | IConstructMultiPatch Interface | IConstructMultiPatch.ConstructExtrudeRelative Method | IConstructMultiPatch.ConstructExtrude Method | IConstructMultiPatch.ConstructExtrudeAbsolute Method | IConstructMultiPatch.ConstructExtrudeFromTo Method | IExtrude.Extrude Method | IExtrude Interface | IExtrude.ExtrudeBetween Method | IExtrude.ExtrudeAlongLine Method | IConstructMultiPatch.ConstructExtrudeAlongLine Method | IExtrude.ExtrudeRelative Method | IConstructMultiPatch.ConstructExtrudeBetween Method | IGlobeHeightProperties.ExtrusionExpressionString Property