CrossSectionExtensionsGetCrossSections Method

Find upstream and downstream cross section from crossSectionData at location. If none exists, create an return a GetVeryLargeCrossSection

Definition

Namespace: DHI.Mike1D.CrossSectionModule
Assembly: DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static void GetCrossSections(
	this CrossSectionData crossSectionData,
	ILocation location,
	string topoID,
	bool reverseDirection,
	out ICrossSection upstreamCrossSection,
	out ICrossSection downstreamCrossSection
)

Parameters

crossSectionData  CrossSectionData
Cross section data to find cross sections in
location  ILocation
Location to find cross sections at
topoID  String
Topo id to use when finding cross sections
reverseDirection  Boolean
Boolean indicating if the structure direction is reversed
upstreamCrossSection  ICrossSection
The upstream cross section
downstreamCrossSection  ICrossSection
The downstream cross section

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CrossSectionData. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also