Ejemplo n.º 1
0
 internal static void smethod_3(
     DxfHandledObject o,
     bool annotative,
     bool annotationAlwaysVisible)
 {
     Class1064.Set(o, new Class1064()
     {
         Annotative = annotative,
         AnnotationAlwaysVisible = annotationAlwaysVisible
     });
 }
Ejemplo n.º 2
0
 private void method_3()
 {
     if ((this.document_0.VbaMacroNames != null) && (this.document_0.VbaMacroNames.Count != 0))
     {
         this.binaryWriter_0.Write((byte)1);
         this.binaryWriter_0.Write(this.document_0.VbaMacroNames.Count);
         foreach (string str in this.document_0.VbaMacroNames)
         {
             Class1064 class2 = new Class1064 {
                 int_0 = this.arrayList_0.Count
             };
             this.arrayList_0.Add(str.ToUpper());
             class2.int_1 = this.class932_0.method_0();
             this.class932_0.method_3(str);
             class2.method_0(this.binaryWriter_0);
         }
     }
 }
Ejemplo n.º 3
0
        internal override void vmethod_10(DxfModel model)
        {
            base.vmethod_10(model);
            DxfAnnotationScaleObjectContextData.smethod_8((DxfEntity)this);
            this.bool_2 = Class1064.smethod_0((DxfHandledObject)this.Block, model);
            if (!this.bool_2 || DxfAnnotationScaleObjectContextData.smethod_5((DxfHandledObject)this, true) != null)
            {
                return;
            }
            DxfScale  currentAnnotationScale = model.Header.CurrentAnnotationScale;
            DxfInsert dxfInsert = this;

            dxfInsert.scaleFactor = dxfInsert.scaleFactor / currentAnnotationScale.ScaleFactor;
            DxfDictionary dxfDictionary = DxfAnnotationScaleObjectContextData.smethod_6((DxfHandledObject)this);
            DxfAnnotationScaleObjectContextData contextData = this.CreateContextData(currentAnnotationScale);

            contextData.IsDefault = true;
            dxfDictionary.Entries.Add((IDictionaryEntry) new DxfDictionaryEntry("*A", (DxfObject)contextData));
        }
Ejemplo n.º 4
0
 internal override void vmethod_10(DxfModel model)
 {
     base.vmethod_10(model);
     DxfAnnotationScaleObjectContextData.smethod_8((DxfEntity)this);
     this.bool_4 = Class1064.smethod_0((DxfHandledObject)this, model);
 }
Ejemplo n.º 5
0
        internal override void vmethod_10(DxfModel model)
        {
            base.vmethod_10(model);
            DxfAnnotationScaleObjectContextData.smethod_8((DxfEntity)this);
            this.bool_2 = Class1064.smethod_0((DxfHandledObject)this, model);
            if (this.ExtensionDictionary == null)
            {
                return;
            }
            DxfXRecord valueByName = this.ExtensionDictionary.GetValueByName("ACAD_MTEXT_2008_RT") as DxfXRecord;

            if (valueByName == null)
            {
                return;
            }
            string empty    = string.Empty;
            double?nullable = new double?();

            foreach (DxfXRecordValue dxfXrecordValue in (List <DxfXRecordValue>)valueByName.Values)
            {
                switch (dxfXrecordValue.Code)
                {
                case 1:
                    empty += (string)dxfXrecordValue.Value;
                    continue;

                case 40:
                    nullable = new double?((double)dxfXrecordValue.Value);
                    continue;

                default:
                    continue;
                }
            }
            if (model.Header.AcadVersion < DxfVersion.Dxf21)
            {
                if (!nullable.HasValue)
                {
                    return;
                }
                if (MathUtil.AreApproxEqual(this.method_14(empty, model.Header.DrawingCodePage), nullable.Value, 1E-10))
                {
                    this.string_1 = empty;
                }
                else
                {
                    if (!MathUtil.AreApproxEqual(this.method_13(this.string_1), nullable.Value, 1E-10))
                    {
                        return;
                    }
                    this.string_1 = empty;
                }
            }
            else
            {
                if (!nullable.HasValue || !MathUtil.AreApproxEqual(this.method_13(this.string_1), nullable.Value, 1E-10))
                {
                    return;
                }
                this.string_1 = empty;
            }
        }