Example #1
0
		internal static IfcReinforcementBarProperties Parse(string strDef) { IfcReinforcementBarProperties p = new IfcReinforcementBarProperties(); int ipos = 0; parseFields(p, ParserSTEP.SplitLineFields(strDef), ref ipos); return p; }
Example #2
0
		internal static void parseFields(IfcReinforcementBarProperties p, List<string> arrFields, ref int ipos)
		{
			p.mTotalCrossSectionArea = ParserSTEP.ParseDouble(arrFields[ipos++]);
			p.mSteelGrade = arrFields[ipos++].Replace("'", "");
			string s = arrFields[ipos++];
			if (s.StartsWith("."))
				p.mBarSurface = (IfcReinforcingBarSurfaceEnum)Enum.Parse(typeof(IfcReinforcingBarSurfaceEnum), arrFields[ipos++].Replace(".", ""));
			p.mEffectiveDepth = ParserSTEP.ParseDouble(arrFields[ipos++]);
			p.mNominalBarDiameter = ParserSTEP.ParseDouble(arrFields[ipos++]);
			p.mBarCount = ParserSTEP.ParseInt(arrFields[ipos++]);
		}
Example #3
0
		internal IfcReinforcementBarProperties(IfcReinforcementBarProperties p) : base()
		{
			mTotalCrossSectionArea = p.mTotalCrossSectionArea;
			mSteelGrade = p.mSteelGrade;
			mBarSurface = p.mBarSurface;
			mEffectiveDepth = p.mEffectiveDepth;
			mNominalBarDiameter = p.mNominalBarDiameter;
			mBarCount = p.mBarCount;
		}