API Reference > imodeljs-backend > Relationships > ElementRefersToElements > create create MethodStatic Create an instance of the Relationship. create<T extends ElementRefersToElements>(iModel: IModelDb, sourceId: Id64String, targetId: Id64String): T extends ElementRefersToElements Parameter Type Description iModel IModelDb The iModel that will contain the relationship sourceId Id64String The sourceId of the relationship, that is, the driver element targetId Id64String The targetId of the relationship, that is, the driven element Returns - T extends ElementRefersToElements an instance of the specified class. Defined in core/backend/src/Relationship.ts Line 88 Last Updated: 13 June, 2024