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; }
clever_anthony said:There was a guy used Microstation V8i VBA to extract points from DTM by using DTMFeatureScanCriteria
In the post you linked, Mark Stefanchuk is using Geopak. Presumably GeoPak VBA provides the DTM objects?
clever_anthony said:in MSCE .NET API the DTMFeatureScanCriteria is found missing
If it's a VBA class then it won't appear in .NET. I don't see either of the classes he mentions in MicroStation VBA.
It looks like OpenRoads Design CONNECT edition includes Geopak functonality.
Regards, Jon Summers LA Solutions
Hi Jon Summers,
FYI. Most of the (published/public) DTM methods for .NET are provided in: ..\Assemblies\Bentley.TerrainModelNET.dll. DTMFeaturScanCriteria unfortunately is not one currently published and awaiting development input on how to proceed.
Thank you,Bob