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)); }
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); }
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; } }