make-dtm-from-objects
This command has been maintained for legacy script support only.
For interactive DTM creation, consider dtm-create which includes the ability to define limits.
Script Example
// unload any existing data
oDmApp.ActiveProject.Data.UnloadAll();
// load our example points file - NB this example file is Extended Precision and should require an EP project to run it
// although it should still work if the error message is ignored.
oDmApp.ActiveProject.Data.LoadFile("C:\\Database\\Datamine Software\\example.dmx");
// fetch the Iew3DObject interface to this object
var oEwPoints = oDmApp.ActiveProject.Data.LastObjectAdded
// obtain the overlay interface from the 3D window
var oEwPointOverlay = oDmApp.ActiveProject.Design.GetActiveOverlay(oEwPoints);
// since the dtm command now works on selected objects, we need to ensure that the overlay is selected
// in the 3D window.
oEwPointOverlay.IsObjectSelected = true;
// now we can run the make dtm command and select a suitable colour for the DTM
oDmApp.ParseCommand("make-dtm-from-objects 'select-colour-9'"+
" @attribute='COLOUR',9.0 'continue'");
Related topics and activities