API Reference > imodeljs-backend > ElementAspects > ElementAspect > onInsert onInsert MethodProtectedStatic Beta Called before a new ElementAspect is inserted. onInsert(_props: ElementAspectProps, _iModel: IModelDb): void throws IModelError if there is a problem Parameter Type Description _props ElementAspectProps _iModel IModelDb Returns - void Defined in core/backend/src/ElementAspect.ts Line 40 Last Updated: 13 June, 2024