Beispiel #1
0
 public SummaryInfo(SummaryInfo from)
 {
     this.string_1      = from.string_1;
     this.string_2      = from.string_2;
     this.string_3      = from.string_3;
     this.string_4      = from.string_4;
     this.string_5      = from.string_5;
     this.string_6      = from.string_6;
     this.string_7      = from.string_7;
     this.dxfTimeSpan_0 = from.dxfTimeSpan_0;
     this.dateTime_0    = from.dateTime_0;
     this.dateTime_1    = from.dateTime_1;
     this.list_0        = new List <SummaryInfo.Property>(from.list_0.Count);
     foreach (SummaryInfo.Property property in from.list_0)
     {
         this.list_0.Add(new SummaryInfo.Property(property.Name, property.Value));
     }
 }
Beispiel #2
0
        internal void method_1(DxfModel model)
        {
            if (model.Header.AcadVersion >= DxfVersion.Dxf18)
            {
                return;
            }
            DxfXRecord xrecordDwgProps = model.XRecordDwgProps;

            if (xrecordDwgProps == null)
            {
                return;
            }
            List <DxfXRecordValue> .Enumerator enumerator = xrecordDwgProps.Values.GetEnumerator();
            if (!enumerator.MoveNext() || enumerator.Current.Code != (short)1 || !((string)enumerator.Current.Value == "DWGPROPS COOKIE"))
            {
                return;
            }
            while (enumerator.MoveNext())
            {
                DxfXRecordValue current = enumerator.Current;
                if (current.Code >= (short)300 && current.Code <= (short)309)
                {
                    string str1 = (string)current.Value;
                    if (!(str1 == "="))
                    {
                        int    length = str1.IndexOf('=');
                        string str2   = string.Empty;
                        string name;
                        if (length < 0)
                        {
                            name = str1;
                        }
                        else
                        {
                            name = str1.Substring(0, length);
                            str2 = str1.Substring(length + 1);
                        }
                        this.list_0.Add(new SummaryInfo.Property(name, str2));
                    }
                }
                else
                {
                    switch (current.Code)
                    {
                    case 1:
                        this.HyperLinkBase = (string)current.Value;
                        continue;

                    case 2:
                        this.Title = (string)current.Value;
                        continue;

                    case 3:
                        this.Subject = (string)current.Value;
                        continue;

                    case 4:
                        this.Author = (string)current.Value;
                        continue;

                    case 6:
                        this.Comments = (string)current.Value;
                        continue;

                    case 7:
                        this.Keywords = (string)current.Value;
                        continue;

                    case 8:
                        this.LastSavedBy = (string)current.Value;
                        continue;

                    case 9:
                        this.RevisionNumber = (string)current.Value;
                        continue;

                    case 40:
                        this.dxfTimeSpan_0 = Class644.smethod_7((double)current.Value);
                        continue;

                    case 41:
                        this.dateTime_0 = Class644.smethod_4((double)current.Value);
                        continue;

                    case 42:
                        this.dateTime_1 = Class644.smethod_4((double)current.Value);
                        continue;

                    default:
                        continue;
                    }
                }
            }
        }