Наследование: IfcBuildingElement
Пример #1
0
 internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary <int, BaseClassIfc> dictionary)
 {
     base.parse(str, ref pos, release, len, dictionary);
     Enum.TryParse <IfcDoorTypeEnum>(ParserSTEP.StripField(str, ref pos, len).Replace(".", ""), true, out mPredefinedType);
     mOperationType            = IfcDoor.ParseDoorTypeOperation(ParserSTEP.StripField(str, ref pos, len).Replace(".", ""));
     mParameterTakesPrecedence = ParserSTEP.StripBool(str, ref pos, len);
     mUserDefinedOperationType = ParserSTEP.StripString(str, ref pos, len);
 }
Пример #2
0
 protected override string BuildStringSTEP(ReleaseVersion release)
 {
     return(base.BuildStringSTEP(release) +
            (release < ReleaseVersion.IFC4 ? ",." : ",." + mPredefinedType.ToString() + ".,.") +
            IfcDoor.SerializeDoorTypeOperation(mOperationType, release) + (release < ReleaseVersion.IFC4 ? ".,.NOTDEFINED" : "") + ".," +
            ParserSTEP.BoolToString(mParameterTakesPrecedence) + (release < ReleaseVersion.IFC4 ? "," +
                                                                  ParserSTEP.BoolToString(false) : (mUserDefinedOperationType == "$" ? ",$" : ",'" + mUserDefinedOperationType + "'")));
 }
Пример #3
0
 public Qto_DoorBaseQuantities(IfcDoor instance) : base(instance)
 {
 }
Пример #4
0
 public Qto_DoorBaseQuantities(IfcDoor instance) : base(instance.mDatabase, "Qto_DoorBaseQuantities")
 {
     Description = instance.Name; DefinesOccurrence.Assign(instance);
 }
Пример #5
0
 public Qto_DoorBaseQuantities(IfcDoor instance)
     : base(instance.mDatabase, "Qto_DoorBaseQuantities")
 {
     Description = instance.Name; DefinesOccurrence.Assign(instance);
 }
Пример #6
0
		internal static void parseFields(IfcDoor d, List<string> arrFields, ref int ipos, Schema schema)
		{
			IfcBuildingElement.parseFields(d, arrFields, ref ipos);
			d.mOverallHeight = ParserSTEP.ParseDouble(arrFields[ipos++]);
			d.mOverallWidth = ParserSTEP.ParseDouble(arrFields[ipos++]);
			if (schema != Schema.IFC2x3)
			{
				string str = arrFields[ipos++];
				if (str[0] == '.')
					d.mPredefinedType = (IfcDoorTypeEnum)Enum.Parse(typeof(IfcDoorTypeEnum), str.Substring(1, str.Length - 2));
				str = arrFields[ipos++];
				if (str[0] == '.')
					d.mOperationType = (IfcDoorTypeOperationEnum)Enum.Parse(typeof(IfcDoorTypeOperationEnum), str.Substring(1, str.Length - 2));
				try
				{
					d.mUserDefinedOperationType = arrFields[ipos++].Replace("'", "");
				}
				catch (Exception) { }
			}
		}
Пример #7
0
		internal static IfcDoor Parse(string strDef, Schema schema) { IfcDoor d = new IfcDoor(); int ipos = 0; parseFields(d, ParserSTEP.SplitLineFields(strDef), ref ipos, schema); return d; }
Пример #8
0
		internal IfcDoor(IfcDoor d) : base(d) { mOverallHeight = d.mOverallHeight; mOverallWidth = d.mOverallWidth; mPredefinedType = d.mPredefinedType; mOperationType = d.mOperationType; mUserDefinedOperationType = d.mUserDefinedOperationType; }
Пример #9
0
		internal static IfcDoor Parse(string str, ReleaseVersion schema) { IfcDoor d = new IfcDoor(); int pos = 0; d.Parse(str, ref pos, str.Length, schema); return d; }