setUnitsProvider Method

Async method to set a units provider and reload caches.

setUnitsProvider(unitsProvider: UnitsProvider): Promise<void>

@note If the active primitive tool may be holding stale unit data, callers should follow this with IModelApp.toolAdmin.restartPrimitiveTool() to allow the tool to reinitialize itself.

Parameter Type Description
unitsProvider UnitsProvider  

Returns - Promise

Defined in

Last Updated: 04 April, 2026