public IList<DisplayUnitFormat> GetAvailableElevationUnitFormats()
Public Function GetAvailableElevationUnitFormats() As IList(Of DisplayUnitFormat)
public IList<DisplayUnitFormat> GetAvailableElevationUnitFormats()
Public Function GetAvailableElevationUnitFormats() As IList(Of DisplayUnitFormat)
{
//If the map is not a scene, the list of current
//Project distance units will be returned
var elev_units = await QueuedTask.Run(() => map.GetAvailableElevationUnitFormats());
}
{
//Trying to set the elevation unit on a map other than
//a scene will throw an InvalidOperationException
await QueuedTask.Run(() =>
{
if (map.IsScene)
{
//Get the list of available elevation unit formats
//for the current map
var loc_units = map.GetAvailableElevationUnitFormats();
//arbitrarily use the last unit in the list
map.SetElevationUnitFormat(loc_units.Last());
}
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)