forceUseId

forceUseId: boolean | undefined

If true, instead of assigning a new, unique Id to the inserted element, the inserted element will use the Id specified by the supplied ElementProps. This is chiefly useful when applying a filtering transformation - i.e., copying some elements from a source iModel to a target iModel and adding no new elements. If this option is true then ElementProps.id must be a valid Id that is not already used by an element in the iModel.

Defined in

Last Updated: 18 January, 2025