예제 #1
0
 internal override void parseJObject(JObject obj)
 {
     base.parseJObject(obj);
     UAxes.AddRange(mDatabase.extractJArray <IfcGridAxis>(obj.GetValue("UAxes", StringComparison.InvariantCultureIgnoreCase) as JArray));
     VAxes.AddRange(mDatabase.extractJArray <IfcGridAxis>(obj.GetValue("VAxes", StringComparison.InvariantCultureIgnoreCase) as JArray));
     WAxes.AddRange(mDatabase.extractJArray <IfcGridAxis>(obj.GetValue("WAxes", StringComparison.InvariantCultureIgnoreCase) as JArray));
 }
예제 #2
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);
     UAxes.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcGridAxis));
     VAxes.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcGridAxis));
     WAxes.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcGridAxis));
     if (release != ReleaseVersion.IFC2x3)
     {
         string s = ParserSTEP.StripField(str, ref pos, len);
         if (s[0] == '.')
         {
             Enum.TryParse <IfcGridTypeEnum>(s.Replace(".", ""), true, out mPredefinedType);
         }
     }
 }