private static string getExtensionPropertiesAsString(BIMElement paramBIMElement, bool paramBoolean) { System.Collections.IEnumerator iterator = paramBIMElement.ExtensionProperties.GetEnumerator(); StringBuilder stringBuffer = new StringBuilder(); stringBuffer.Append("\n"); while (iterator.MoveNext()) { BIMPropertySet bIMPropertySet = (BIMPropertySet)iterator.Current; string str = bIMPropertySet.Name; stringBuffer.Append("\n" + str + ":\n"); System.Collections.IEnumerator iterator1 = bIMPropertySet.Properties.GetEnumerator(); while (iterator1.MoveNext()) { BIMProperty bIMProperty = (BIMProperty)iterator1.Current; if (bIMProperty.Number) { continue; } stringBuffer.Append(bIMProperty.Name + ": " + bIMProperty.Value); //JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops: if (iterator1.hasNext()) { stringBuffer.Append(", "); } } } return(stringBuffer.ToString()); }
public BEBIMSlab(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Area = paramIfcEngineQuantitiesData.FootprintNetArea; AreaQT = BIMQuantityType.QTY_SQUARE_METER; GrossArea = paramIfcEngineQuantitiesData.FootprintGrossArea; GrossAreaQT = BIMQuantityType.QTY_SQUARE_METER; AreaOfOpenings = paramIfcEngineQuantitiesData.AreaOfOpenings; AreaOfOpeningsQT = BIMQuantityType.QTY_SQUARE_METER; Perimeter = paramIfcEngineQuantitiesData.Perimeter; PerimeterQT = BIMQuantityType.QTY_MILLI_METER; PerimeterOfOpenings = paramIfcEngineQuantitiesData.PerimeterOfOpenings; PerimeterOfOpeningsQT = BIMQuantityType.QTY_MILLI_METER; Thickness = paramIfcEngineQuantitiesData.Height; ThicknessQT = BIMQuantityType.QTY_MILLI_METER; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; Layer = paramIfcEnginePropertiesData.Layer; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcArea", AreaQT, Area)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcGrossArea", GrossAreaQT, GrossArea)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcAreaOfOpenings", AreaOfOpeningsQT, AreaOfOpenings)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcGrossVolume", VolumeQT, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.GROSS_VOLUME).doubleValue())); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPerimeter", PerimeterQT, Perimeter)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcThickness", ThicknessQT, Thickness)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPerimeterOfOpenings", PerimeterOfOpeningsQT, PerimeterOfOpenings)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFormworkVerticalArea", AreaQT, (Perimeter + PerimeterOfOpenings) / 1000.0D * Thickness / 1000.0D)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; Structural = true; Landscaping = true; }
public BEBIMSpace(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str = (string)paramArrayOfObject[3]; if (StringUtils.isNullOrBlank(str)) { Name = "Space"; } else { Name = str; } Label = Name; BimToolId = ""; TopElevation = 0.0D; TopElevationQT = 1; BottomElevation = 0.0D; BottomElevationQT = 1; LastUpdate = DateTime.Now; Height = 0.0D; HeightQT = 0; BimToolId = (string)paramArrayOfObject[4]; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; Perimeter = paramIfcEngineQuantitiesData.Perimeter; PerimeterQT = BIMQuantityType.QTY_MILLI_METER; AreaOfWindows = paramIfcEngineQuantitiesData.AreaOfWindows; AreaOfWindowsQT = BIMQuantityType.QTY_SQUARE_METER; AreaOfDoors = paramIfcEngineQuantitiesData.AreaOfDoors; AreaOfDoorsQT = BIMQuantityType.QTY_SQUARE_METER; Height = paramIfcEngineQuantitiesData.Height; HeightQT = BIMQuantityType.QTY_MILLI_METER; Area = paramIfcEngineQuantitiesData.FootprintGrossArea; AreaQT = BIMQuantityType.QTY_SQUARE_METER; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcArea", AreaQT, Area)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcHeight", HeightQT, Height)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPerimeter", PerimeterQT, Perimeter)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = paramIfcEnginePropertiesData.PropSetList; BuildingElements = new LinkedList(); Children = new LinkedList(); }
private void cacheElementQuantites(Session paramSession, int?paramInteger, int paramInt, bool paramBoolean) { if (!paramBoolean) { this.quantsDataMap = new Hashtable(); } System.Collections.IList list = paramSession.createSQLQuery(this.elemQuantitySQL).addScalar("elemId", LongType.INSTANCE).addScalar("propId", LongType.INSTANCE).addScalar("groupName", StringType.INSTANCE).addScalar("name", StringType.INSTANCE).addScalar("value", BigDecimalType.INSTANCE).addScalar("qtyType", IntegerType.INSTANCE).addScalar("nameId", IntegerType.INSTANCE).setInteger("typeId", paramInteger.Value).setLong("modelId", this.modelId.Value).list(); foreach (object[] arrayOfObject in list) { long? long1 = (long?)arrayOfObject[0]; long? long2 = (long?)arrayOfObject[1]; string str1 = (string)arrayOfObject[2]; string str2 = (string)arrayOfObject[3]; decimal bigDecimal = (decimal)arrayOfObject[4]; int? integer1 = (int?)arrayOfObject[5]; int? integer2 = (int?)arrayOfObject[6]; if (paramBoolean) { BIMProperty bIMProperty = new BIMProperty(); bIMProperty.DoubleValue = bigDecimal.doubleValue(); bIMProperty.Number = true; bIMProperty.Value = ""; bIMProperty.Name = str2; IfcEnginePropertiesData ifcEnginePropertiesData = (IfcEnginePropertiesData)this.propsDataMap[long1]; if (ifcEnginePropertiesData == null) { ifcEnginePropertiesData = new IfcEnginePropertiesData(); ifcEnginePropertiesData.PropSetList = new LinkedList(); this.propsDataMap[long1] = ifcEnginePropertiesData; } BIMPropertySet bIMPropertySet = ifcEnginePropertiesData.findProperySet(str1); if (bIMPropertySet == null) { bIMPropertySet = new BIMPropertySet(); bIMPropertySet.Name = str1; bIMPropertySet.Properties = new LinkedList(); ifcEnginePropertiesData.PropSetList.Add(bIMPropertySet); } bIMPropertySet.Properties.add(bIMProperty); } else { IfcEngineQuantitiesData ifcEngineQuantitiesData = (IfcEngineQuantitiesData)this.quantsDataMap[long1]; if (ifcEngineQuantitiesData == null) { ifcEngineQuantitiesData = new IfcEngineQuantitiesData(); this.quantsDataMap[long1] = ifcEngineQuantitiesData; } ifcEngineQuantitiesData.setQuantity(BIMQTOType.values()[integer2.Value], Convert.ToDouble(bigDecimal.doubleValue())); } this.progress.incrementProgress(1); } }
public BEBIMCovering(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Area = paramIfcEngineQuantitiesData.FootprintNetArea; AreaQT = BIMQuantityType.QTY_SQUARE_METER; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; double d1 = paramIfcEngineQuantitiesData.Width; double d2 = paramIfcEngineQuantitiesData.Length; if (d1 < d2) { Thickness = d1; } else { Thickness = d2; } ThicknessQT = BIMQuantityType.QTY_MILLI_METER; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcNetArea", AreaQT, Area)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcThickness", ThicknessQT, Thickness)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; }
public BEBIMRamp(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; LastUpdate = DateTime.Now; BottomArea = paramIfcEngineQuantitiesData.FootprintGrossArea; BottomAreaQT = BIMQuantityType.QTY_SQUARE_METER; Height = paramIfcEngineQuantitiesData.Height; HeightQT = BIMQuantityType.QTY_MILLI_METER; double d1 = paramIfcEngineQuantitiesData.Height; double d2 = paramIfcEngineQuantitiesData.Length; double d3 = paramIfcEngineQuantitiesData.Width; if ((int)d2 == (int)d1) { d2 = d3; } System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintArea", BottomAreaQT, BottomArea)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcHeight", HeightQT, Height)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcLength", BIMQuantityType.QTY_MILLI_METER, d2)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; Landscaping = true; }
public BEBIMBuildingElementPart(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; if (StringUtils.isNullOrBlank(str1)) { Name = "Space"; } else { Name = str1; } string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintArea", BIMQuantityType.QTY_SQUARE_METER, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.FOOTPRINT_NET_AREA).doubleValue())); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcHeight", BIMQuantityType.QTY_MILLI_METER, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.HEIGHT).doubleValue())); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcWidth", BIMQuantityType.QTY_MILLI_METER, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.WIDTH).doubleValue())); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcLength", BIMQuantityType.QTY_MILLI_METER, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.LENGTH).doubleValue())); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcNetArea", BIMQuantityType.QTY_SQUARE_METER, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.SIDE_NET_AREA).doubleValue())); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; Structural = true; Landscaping = true; }
public virtual void cacheElementProperties(Session paramSession, int?paramInteger, int paramInt, bool paramBoolean) { if (paramInt == -1) { this.propsDataMap = new Hashtable(); } else { this.propsDataMap = new Hashtable(paramInt); } System.Collections.IList list = paramSession.createSQLQuery(this.elemPropertySQL).addScalar("elemId", LongType.INSTANCE).addScalar("propId", LongType.INSTANCE).addScalar("groupName", StringType.INSTANCE).addScalar("name", StringType.INSTANCE).addScalar("isNumber", BooleanType.INSTANCE).addScalar("numberValue", BigDecimalType.INSTANCE).addScalar("textValue", StringType.INSTANCE).addScalar("qtyType", IntegerType.INSTANCE).setInteger("typeId", paramInteger.Value).setLong("modelId", this.modelId.Value).list(); foreach (object[] arrayOfObject in list) { long? long1 = (long?)arrayOfObject[0]; long? long2 = (long?)arrayOfObject[1]; string str1 = (string)arrayOfObject[2]; string str2 = (string)arrayOfObject[3]; bool? @bool = (bool?)arrayOfObject[4]; decimal bigDecimal = (decimal)arrayOfObject[5]; string str3 = (string)arrayOfObject[6]; int? integer = (int?)arrayOfObject[7]; BIMProperty bIMProperty = new BIMProperty(); bIMProperty.DoubleValue = bigDecimal.doubleValue(); bIMProperty.Number = @bool.Value; bIMProperty.Value = str3; bIMProperty.Name = str2; IfcEnginePropertiesData ifcEnginePropertiesData = (IfcEnginePropertiesData)this.propsDataMap[long1]; if (ifcEnginePropertiesData == null) { ifcEnginePropertiesData = new IfcEnginePropertiesData(); ifcEnginePropertiesData.PropSetList = new LinkedList(); this.propsDataMap[long1] = ifcEnginePropertiesData; } if (StringUtils.isNullOrBlank(str1)) { str1 = "Misc"; } BIMPropertySet bIMPropertySet = ifcEnginePropertiesData.findProperySet(str1); if (bIMPropertySet == null) { bIMPropertySet = new BIMPropertySet(); bIMPropertySet.Name = str1; bIMPropertySet.Properties = new LinkedList(); ifcEnginePropertiesData.PropSetList.Add(bIMPropertySet); } bIMPropertySet.Properties.add(bIMProperty); this.progress.incrementProgress(1); } cacheElementQuantites(paramSession, paramInteger, paramInt, paramBoolean); }
public BEBIMPile(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; BottomArea = paramIfcEngineQuantitiesData.FootprintNetArea; BottomAreaQT = BIMQuantityType.QTY_SQUARE_METER; ProfHeight = paramIfcEngineQuantitiesData.Height; ProfHeightQT = BIMQuantityType.QTY_MILLI_METER; ProfWidth = paramIfcEngineQuantitiesData.Width; ProfWidthQT = BIMQuantityType.QTY_MILLI_METER; Length = paramIfcEngineQuantitiesData.Length; LengthQT = BIMQuantityType.QTY_MILLI_METER; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintArea", BottomAreaQT, BottomArea)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcLength", LengthQT, Length)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionHeight", ProfHeightQT, ProfHeight)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionWidth", ProfHeightQT, ProfWidth)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Structural = true; }
public BEBIMDoor(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Height = paramIfcEngineQuantitiesData.Height; HeightQT = BIMQuantityType.QTY_MILLI_METER; Width = paramIfcEngineQuantitiesData.Length; WidthQT = BIMQuantityType.QTY_MILLI_METER; Area = Height / 1000.0D * Width / 1000.0D; AreaQT = BIMQuantityType.QTY_SQUARE_METER; Perimeter = (Height + Width) * 2.0D; PerimeterQT = HeightQT; Layer = paramIfcEnginePropertiesData.Layer; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcArea", AreaQT, Area)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcHeight", HeightQT, Height)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcWidth", WidthQT, Width)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPerimeter", PerimeterQT, Perimeter)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; }
public BEBIMWall(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; Thickness = paramIfcEngineQuantitiesData.Width; ThicknessQT = BIMQuantityType.QTY_MILLI_METER; AreaOfWindows = paramIfcEngineQuantitiesData.AreaOfWindows; AreaOfWindowsQT = BIMQuantityType.QTY_SQUARE_METER; AreaOfDoors = paramIfcEngineQuantitiesData.AreaOfDoors; AreaOfDoorsQT = BIMQuantityType.QTY_SQUARE_METER; AreaOfOpenings = paramIfcEngineQuantitiesData.AreaOfVoids; AreaOfOpeningsQT = BIMQuantityType.QTY_SQUARE_METER; BottomArea = paramIfcEngineQuantitiesData.FootprintNetArea; BottomAreaQT = BIMQuantityType.QTY_SQUARE_METER; Height = paramIfcEngineQuantitiesData.Height; HeightQT = BIMQuantityType.QTY_MILLI_METER; Length = paramIfcEngineQuantitiesData.Length; LengthQT = BIMQuantityType.QTY_MILLI_METER; Area = paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.SIDE_NET_AREA).doubleValue(); AreaQT = BIMQuantityType.QTY_SQUARE_METER; GrossArea = paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.SIDE_GROSS_AREA).doubleValue(); GrossAreaQT = BIMQuantityType.QTY_SQUARE_METER; External = paramIfcEnginePropertiesData.External; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcNetArea", AreaQT, Area)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcGrossArea", GrossAreaQT, GrossArea)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintArea", BottomAreaQT, BottomArea)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintGrossArea", BottomAreaQT, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.FOOTPRINT_GROSS_AREA).doubleValue())); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcAreaOfDoors", AreaOfDoorsQT, AreaOfDoors)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcAreaOfWindows", AreaOfWindowsQT, AreaOfWindows)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcAreaOfOpenings", AreaOfOpeningsQT, AreaOfOpenings)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcGrossVolume", VolumeQT, paramIfcEngineQuantitiesData.getQuantity(BIMQTOType.GROSS_VOLUME).doubleValue())); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcHeight", HeightQT, Height)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcLength", LengthQT, Length)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcThickness", ThicknessQT, Thickness)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; Structural = true; Landscaping = true; }
public BEBIMMember(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; double d1 = paramIfcEngineQuantitiesData.Length; double d2 = paramIfcEngineQuantitiesData.Height; double d3 = paramIfcEngineQuantitiesData.Width; double d4 = paramIfcEngineQuantitiesData.FootprintNetArea; if (d1 < d2) { double d = d1; d1 = d2; d2 = d; } if (d1 < d3) { double d = d1; d1 = d3; d3 = d; } Area = d4; AreaQT = BIMQuantityType.QTY_SQUARE_METER; Length = d1; LengthQT = BIMQuantityType.QTY_MILLI_METER; Area = paramIfcEngineQuantitiesData.FootprintNetArea; AreaQT = BIMQuantityType.QTY_SQUARE_METER; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintArea", AreaQT, Area)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", BIMQuantityType.QTY_CUBIC_METER, paramIfcEngineQuantitiesData.NetVolume)); if ((int)d3 == (int)d2) { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcDiameter", BIMQuantityType.QTY_MILLI_METER, d3)); } else { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcArea", BIMQuantityType.QTY_SQUARE_METER, d4)); if (d1 != d2) { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionWidth", BIMQuantityType.QTY_MILLI_METER, d2)); } if (d1 != d3) { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionHeight", BIMQuantityType.QTY_MILLI_METER, d3)); } } bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Structural = true; }
public BEBIMDistributionElement(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) : base(StringUtils.replaceAll((string)paramArrayOfObject[4], " ", "")) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; Layer = paramIfcEnginePropertiesData.Layer; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); double d1 = paramIfcEngineQuantitiesData.Length; double d2 = paramIfcEngineQuantitiesData.Height; double d3 = paramIfcEngineQuantitiesData.Width; if (d1 < d2) { double d = d1; d1 = d2; d2 = d1; } if (d1 < d2) { double d = d1; d1 = d2; d2 = d; } if (d1 < d3) { double d = d1; d1 = d3; d3 = d; } bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcLength", BIMQuantityType.QTY_MILLI_METER, d1)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bool @bool = false; if ((int)d3 == (int)d2) { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcDiameter", BIMQuantityType.QTY_MILLI_METER, d3)); } else { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcArea", BIMQuantityType.QTY_SQUARE_METER, paramIfcEngineQuantitiesData.FootprintNetArea)); if (d1 != d2) { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionWidth", BIMQuantityType.QTY_MILLI_METER, d2)); } if (d1 != d3) { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionHeight", BIMQuantityType.QTY_MILLI_METER, d3)); } } bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = false; Structural = false; Landscaping = false; Airconditioning = true; Heating = true; Ventilation = true; Electrical = true; Sprinkler = true; }
public BEBIMColumn(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; BottomArea = paramIfcEngineQuantitiesData.FootprintNetArea; BottomAreaQT = BIMQuantityType.QTY_SQUARE_METER; Height = paramIfcEngineQuantitiesData.Height; HeightQT = BIMQuantityType.QTY_MILLI_METER; double d1 = paramIfcEngineQuantitiesData.Length; double d2 = paramIfcEngineQuantitiesData.Width; double d3 = d1; if ((int)d1 >= (int)d2) { d3 = d2; } Diameter = d3; DiameterQT = BIMQuantityType.QTY_MILLI_METER; CrossSectionHeight = d1; CrossSectionHeightQT = BIMQuantityType.QTY_MILLI_METER; CrossSectionWidth = d2; CrossSectionWidthQT = BIMQuantityType.QTY_MILLI_METER; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintArea", BottomAreaQT, BottomArea)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcHeight", HeightQT, Height)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionHeight", CrossSectionHeightQT, CrossSectionHeight)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionWidth", CrossSectionWidthQT, CrossSectionWidth)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); bool @bool = false; if ((int)CrossSectionHeight == (int)CrossSectionWidth) { double d4 = CrossSectionHeight / 1000.0D * CrossSectionWidth / 1000.0D; double d5 = 0.9D * BottomArea; double d6 = 1.1D * BottomArea; if (d4 > d5 && d4 < d6) { @bool = true; } } else { @bool = true; } if (@bool) { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFormworkArea", BottomAreaQT, (2.0D * CrossSectionHeight / 1000.0D + CrossSectionWidth / 1000.0D) * Height / 1000.0D)); } else { bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFormworkArea", BottomAreaQT, Math.PI * Diameter / 1000.0D * Height / 1000.0D)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcDiameter", DiameterQT, Diameter)); } list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; Structural = true; Landscaping = true; }
public BEBIMBeam(object[] paramArrayOfObject, IfcEngineQuantitiesData paramIfcEngineQuantitiesData, IfcEnginePropertiesData paramIfcEnginePropertiesData) { Id = (long?)paramArrayOfObject[0]; GlobalId = (string)paramArrayOfObject[1]; string str1 = (string)paramArrayOfObject[3]; string str2 = (string)paramArrayOfObject[5]; string str3 = (string)paramArrayOfObject[9]; string str4 = (string)paramArrayOfObject[10]; string str5 = (string)paramArrayOfObject[11]; paramIfcEnginePropertiesData.Material = str3; paramIfcEnginePropertiesData.Type = str4; paramIfcEnginePropertiesData.Layer = str5; Material = paramIfcEnginePropertiesData.Material; Type = paramIfcEnginePropertiesData.Type; Layer = paramIfcEnginePropertiesData.Layer; Name = str1; Label = str1; BimToolId = str2; TopElevation = paramIfcEngineQuantitiesData.TopElevation; TopElevationQT = BIMQuantityType.QTY_MILLI_METER; BottomElevation = paramIfcEngineQuantitiesData.BottomElevation; BottomElevationQT = BIMQuantityType.QTY_MILLI_METER; LastUpdate = DateTime.Now; BottomArea = paramIfcEngineQuantitiesData.FootprintNetArea; BottomAreaQT = BIMQuantityType.QTY_SQUARE_METER; double d1 = paramIfcEngineQuantitiesData.Length; double d2 = paramIfcEngineQuantitiesData.Width; double d3 = paramIfcEngineQuantitiesData.Height; double d4 = Math.Abs(TopElevation - BottomElevation); if (d1 < d3) { double d = d1; d1 = d3; d3 = d; } if (d1 < d2) { double d = d1; d1 = d2; d2 = d; } if ((int)d4 == (int)d2) { double d = d3; d3 = d4; d2 = d; } Volume = paramIfcEngineQuantitiesData.NetVolume; VolumeQT = BIMQuantityType.QTY_CUBIC_METER; Length = d1; LengthQT = BIMQuantityType.QTY_MILLI_METER; CrossSectionHeight = d3; CrossSectionHeightQT = BIMQuantityType.QTY_MILLI_METER; CrossSectionWidth = d2; CrossSectionWidthQT = BIMQuantityType.QTY_MILLI_METER; System.Collections.IList list = paramIfcEnginePropertiesData.PropSetList; BIMPropertySet bIMPropertySet = BIMExtensionPropertiesUtil.createPropertySet("CalcQuantities"); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFootprintArea", BottomAreaQT, BottomArea)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcVolume", VolumeQT, Volume)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcLength", LengthQT, Length)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionWidth", CrossSectionWidthQT, CrossSectionWidth)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcCrossSectionHeight", CrossSectionHeightQT, CrossSectionHeight)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcFormworkArea", BottomAreaQT, (CrossSectionHeight / 1000.0D * 2.0D + CrossSectionWidth / 1000.0D) * Length / 1000.0D)); bIMPropertySet.Properties.add(BIMExtensionPropertiesUtil.createDoubleProperty("CalcPiece", 0, 1.0D)); list.Insert(0, bIMPropertySet); ExtensionProperties = list; Architecture = true; Structural = true; Landscaping = true; }