[MSCE U17 C#] Get DTM Points from DTMFeatureType

It was found that there was a guy used Microstation V8i VBA to extract points from DTM by using DTMFeatureScanCriteria and DTMFeatureEnumerator.

Link to Mark Stefanchuk's post

However, in MSCE .NET API the DTMFeatureScanCriteria is found missing and the direct functions from DTM are very limited.

Should the code become like this?

DTM dtm = new DTM();
DTMFeatureEnumerator ee = new DTMFeatureEnumerator(dtm);
ee.IncludeFeature(DTMFeatureType.SlopeToe);
IEnumerator<DTMFeatureInfo> info = ee.GetEnumerator();
while (info.MoveNext())
{
    // Do something
    DPoint3d[] pt = info.Current.Points;
}

Parents Reply Children
No Data