CrossSectionDataRemoveCrossSection Method |
Find and remove a cross section based on the location and topoID. If no cross section
is found (chainage within Constants.LOCATION_EQUAL_TOLERANCE), false is returned.
If the reach defined in the location has a global cross section, the global cross section
is removed. TODO: Consider doing nothing
Namespace:
DHI.Mike1D.CrossSectionModule
Assembly:
DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public bool RemoveCrossSection(
ILocation location,
string topoID
)
Public Function RemoveCrossSection (
location As ILocation,
topoID As String
) As Boolean
public:
bool RemoveCrossSection(
ILocation^ location,
String^ topoID
)
Parameters
- location
- Type: DHI.Mike1D.GenericILocation
Location at which to look for a cross section to remove - topoID
- Type: SystemString
Topo id to look for
Return Value
Type:
BooleanTrue if a cross section was removed, false otherwise
Remarks
If first tries to remove the crosssection with the exact chainage value. If not
found, it removes the first one with a chainage value within Constants.LOCATION_EQUAL_TOLERANCE
See Also