IModelCloneContext Class

The context for transforming a source Element to a target Element and remapping internal identifiers to the target iModel.

Extends

Methods

Name Description
findTargetAspectId(sourceAspectId: string): string Look up a target AspectId from the source AspectId.  
findTargetEntityId(sourceEntityId: | | | ): | | | Look up a target EntityReference from a source EntityReference  
initialize(): Promise<void> perform necessary initialization to use a clone context, namely caching the reference types in the source's schemas  
loadStateFromDb(db: SQLiteDb): void    
remapElementAspect(aspectSourceId: string, aspectTargetId: string): void Add a rule that remaps the specified source ElementAspect to the specified target ElementAspect.  
removeElementAspect(aspectSourceId: string): void Remove a rule that remaps the specified source ElementAspect  
saveStateToDb(db: SQLiteDb): void    

Defined in

Last Updated: 12 February, 2024