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; }
Hi clever_anthony,
FYI. Development recommends to code using DTMFeatureEnumerator vs DTMFeatureScanCriteria.
HTH,Bob
Answer Verified By: clever_anthony