Click or drag to resize

CrossSectionExtensions.GetCrossSections Method

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

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

Parameters

crossSectionData
Type: DHI.Mike1D.CrossSectionModule.CrossSectionData
Cross section data to find cross sections in
location
Type: DHI.Mike1D.Generic.ILocation
Location to find cross sections at
topoID
Type: System.String
Topo id to use when finding cross sections
reverseDirection
Type: System.Boolean
Boolean indicating if the structure direction is reversed
upstreamCrossSection
Type: DHI.Mike1D.CrossSectionModule.ICrossSection
The upstream cross section
downstreamCrossSection
Type: DHI.Mike1D.CrossSectionModule.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