protected override void PopulateDbRow(Element element, DataRow row) { Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_ElementId"), APIObjectList.GetIdDbValue(element)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_ElementName"), APIObjectList.GetNameDbValue(element)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_PhaseCreatedId"), APIObjectList.GetIdDbValue(element.CreatedPhaseId)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_PhaseName"), APIObjectList.GetNameDbValue(element.Document.GetElement(element.CreatedPhaseId))); }
protected void SetDbRowIDAndHostId(Element element, Element host, DataRow dataRow) { Utility.Assign(dataRow, APIObjectList.ColumnRes("ColN_CST_Id"), APIObjectList.GetIdDbValue(element)); Utility.Assign(dataRow, APIObjectList.ColumnRes("ColN_CST_Name"), APIObjectList.GetNameDbValue(element)); Utility.Assign(dataRow, APIObjectList.ColumnRes("ColN_CST_HostId"), APIObjectList.GetIdDbValue(host)); Utility.Assign(dataRow, APIObjectList.ColumnRes("ColN_CST_HostName"), APIObjectList.GetNameDbValue(host)); }
protected override void PopulateDbRow(Element element, DataRow row) { Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_Id"), APIObjectList.GetIdDbValue(element)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_Name"), APIObjectList.GetNameDbValue(element)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_LevelId"), APIObjectList.GetIdDbValue(element.LevelId)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_HostId"), APIObjectList.GetIdDbValue((element as Opening).Host)); }
protected override void PopulateDbRow(Element element, DataRow row) { FamilyInstance familyInstance = element as FamilyInstance; Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_WindowId"), APIObjectList.GetIdDbValue(element)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_WindowName"), APIObjectList.GetNameDbValue(element)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_WallId"), APIObjectList.GetIdDbValue(familyInstance.Host)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_WallName"), APIObjectList.GetNameDbValue(familyInstance.Host)); }
protected override void PopulateDbRow(Element element, DataRow row) { RoomTag roomTag = element as RoomTag; Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_Id"), APIObjectList.GetIdDbValue(roomTag)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_RoomTagType"), APIObjectList.GetNameDbValue(APIObjectList.GetElementById(roomTag.GetTypeId()))); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_RoomId"), APIObjectList.GetIdDbValue(roomTag.Room)); Utility.Assign(row, APIObjectList.ColumnRes("ColN_CST_ViewId"), APIObjectList.GetIdDbValue(roomTag.View)); }