예제 #1
0
        internal string xmlId()
        {
            string id = "";
            IfcClassificationReference classificationReference = this as IfcClassificationReference;

            if (classificationReference != null)
            {
                if (!string.IsNullOrEmpty(classificationReference.Identification))
                {
                    int    i   = 0;
                    string str = classificationReference.Identification;
                    if (str[0] == 'i' || str[0] == '_')
                    {
                        str = str.Substring(1);
                    }
                    if (!int.TryParse(str, out i))
                    {
                        id = classificationReference.Identification;
                    }
                }
            }
            if (string.IsNullOrEmpty(id))
            {
                return("i" + StepId);
            }
            if (char.IsDigit(id[0]))
            {
                return("_" + id);
            }
            return(id);
        }
예제 #2
0
파일: IFC C.cs 프로젝트: jenca-cloud/ggIFC
		internal static void parseFields(IfcClassificationReference r, List<string> arrFields, ref int ipos, Schema schema)
		{
			IfcExternalReference.parseFields(r, arrFields, ref ipos);
			r.mReferencedSource = ParserSTEP.ParseLink(arrFields[ipos++]);
			if (schema != Schema.IFC2x3)
			{
				r.mDescription = arrFields[ipos++].Replace("'", "");
				r.mSort = arrFields[ipos++].Replace("'", "");
			}
		}
예제 #3
0
파일: IFC C.cs 프로젝트: jenca-cloud/ggIFC
		internal static IfcClassificationReference Parse(string strDef, Schema schema) { IfcClassificationReference r = new IfcClassificationReference(); int ipos = 0; parseFields(r, ParserSTEP.SplitLineFields(strDef), ref ipos,schema); return r; }
예제 #4
0
파일: IFC C.cs 프로젝트: jenca-cloud/ggIFC
		internal IfcClassificationReference(IfcClassificationReference r) : base(r) { mReferencedSource = r.mReferencedSource; mDescription = r.mDescription; mSort = r.mSort; }