Click or drag to resize

CrossSectionExtensionsGetCrossSections 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.CrossSectionModuleCrossSectionData
Cross section data to find cross sections in
location
Type: DHI.Mike1D.GenericILocation
Location to find cross sections at
topoID
Type: SystemString
Topo id to use when finding cross sections
reverseDirection
Type: SystemBoolean
Boolean indicating if the structure direction is reversed
upstreamCrossSection
Type: DHI.Mike1D.CrossSectionModuleICrossSection
The upstream cross section
downstreamCrossSection
Type: DHI.Mike1D.CrossSectionModuleICrossSection
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