GeometryGym.Ifc.IfcWindow.Parse C# (CSharp) Method

Parse() protected method

protected Parse ( string str, int &pos, int len, ReleaseVersion schema ) : void
str string
pos int
len int
schema ReleaseVersion
return void
        protected void Parse(string str, ref int pos, int len, ReleaseVersion schema)
        {
            base.Parse(str, ref pos, len);
            mOverallHeight = ParserSTEP.StripDouble(str, ref pos, len);
            mOverallWidth = ParserSTEP.StripDouble(str, ref pos, len);
            if (schema != ReleaseVersion.IFC2x3)
            {
                string s = ParserSTEP.StripField(str, ref pos, len);
                if (s.StartsWith("."))
                    mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", ""));
                s = ParserSTEP.StripField(str, ref pos, len);
                if (s.StartsWith("."))
                    mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", ""));
                mUserDefinedPartitioningType = ParserSTEP.StripString(str, ref pos, len);
            }
        }

Same methods

IfcWindow::Parse ( string str, ReleaseVersion schema ) : IfcWindow

Usage Example

コード例 #1
0
ファイル: IFC W.cs プロジェクト: jddaigle/GeometryGymIFC
 internal static IfcWindow Parse(string str, ReleaseVersion schema)
 {
     IfcWindow w = new IfcWindow(); int pos = 0; w.Parse(str, ref pos, str.Length, schema); return(w);
 }
All Usage Examples Of GeometryGym.Ifc.IfcWindow::Parse