public override IfcElementTable convertToIfcElementTable() { IfcElementTable ifcElementTable = base.convertToIfcElementTable(); bool @bool = (DecomposedElements != null && DecomposedElements.Count > 0); ifcElementTable.IsDecomposed = Convert.ToBoolean(@bool); if (ParentComposition != null) { ifcElementTable.ParentElementId = ParentComposition.GlobalId; } ifcElementTable.Material = Material; ifcElementTable.Type = Type; ifcElementTable.Layer = Layer; return(ifcElementTable); }
public virtual IfcElementTable convertToIfcElementTable() { IfcElementTable ifcElementTable = new IfcElementTable(); ifcElementTable.IsDecomposed = Convert.ToBoolean(false); if (string.ReferenceEquals(Title, null)) { ifcElementTable.Title = ""; } else { ifcElementTable.Title = StringUtils.makeShortTitle(Title, 255); } if (string.ReferenceEquals(Description, null)) { ifcElementTable.Description = ""; } else { ifcElementTable.Description = StringUtils.makeShortTitle(Description, 255); } ifcElementTable.Label = Label; ifcElementTable.Transparency = ifcElementTable.Transparency; ifcElementTable.GlobalId = GlobalId; ifcElementTable.ObjectType = GroupType; ifcElementTable.TopElevation = new BigDecimalFixed(TopElevation); ifcElementTable.BottomElevation = new BigDecimalFixed(BottomElevation); ifcElementTable.LastUpdate = LastUpdate; ifcElementTable.Qty1 = new BigDecimalFixed(Qty1); ifcElementTable.Qty2 = new BigDecimalFixed(Qty2); ifcElementTable.Qty3 = new BigDecimalFixed(Qty3); ifcElementTable.QtyName1 = QtyName1; ifcElementTable.QtyName2 = QtyName2; ifcElementTable.QtyName3 = QtyName3; ifcElementTable.Uom1 = Uom1; ifcElementTable.Uom2 = Uom2; ifcElementTable.Uom3 = Uom3; return(ifcElementTable); }