insert MethodStatic
Insert a new instance of the Relationship.
insert<T extends ElementRefersToElements>(iModel: IModelDb, sourceId: Id64String, targetId: Id64String): Id64String
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 - The Id of the inserted Relationship.
Defined in
Last Updated: 08 January, 2020