Exemplo n.º 1
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfField dxfField1 = this.Object as DxfField;

            if (dxfField1 == null)
            {
                return;
            }
            foreach (ulong handle in this.list_1)
            {
                DxfField dxfField2 = modelBuilder.method_4 <DxfField>(handle);
                if (dxfField2 != null)
                {
                    dxfField1.ChildFields.Add(dxfField2);
                }
            }
            foreach (ulong handle in this.list_2)
            {
                DxfHandledObject dxfHandledObject = modelBuilder.method_3(handle);
                if (dxfHandledObject != null)
                {
                    dxfField1.FieldObjects.Add(dxfHandledObject);
                }
            }
        }
Exemplo n.º 2
0
        public override void ResolveReferences(Class374 modelBuilder)
        {
            base.ResolveReferences(modelBuilder);
            DxfFieldList handledObject = (DxfFieldList)this.HandledObject;

            foreach (ulong handle in this.list_1)
            {
                DxfField dxfField = modelBuilder.method_4 <DxfField>(handle);
                if (dxfField != null)
                {
                    handledObject.Fields.Add(dxfField);
                }
            }
        }
Exemplo n.º 3
0
        public Class1030(DxfModel model)
        {
            DxfVersion acadVersion = model.Header.AcadVersion;

            if (acadVersion < DxfVersion.Dxf15)
            {
                this.short_4 = DxfHatch.smethod_2(model.Classes).ClassNumber;
                this.short_3 = DxfLwPolyline.smethod_2(model.Classes).ClassNumber;
                this.short_9 = DxfClass.smethod_19(model.Classes).ClassNumber;
            }
            if (acadVersion < DxfVersion.Dxf18)
            {
                this.short_8 = DxfClass.smethod_15(model.Classes).ClassNumber;
                this.short_7 = DxfClass.smethod_16(model.Classes).ClassNumber;
            }
            this.dxfClass_0  = DxfClass.smethod_0(model.Classes);
            this.dxfClass_1  = DxfDataTable.smethod_2(model.Classes);
            this.dxfClass_5  = DxfClass.smethod_1(model.Classes);
            this.short_0     = DxfClass.smethod_20(model.Classes).ClassNumber;
            this.short_1     = DxfClass.smethod_21(model.Classes).ClassNumber;
            this.dxfClass_6  = DxfClass.smethod_5(model.Classes);
            this.dxfClass_14 = DxfClass.smethod_2(model.Classes);
            this.dxfClass_10 = DxfClass.smethod_6(model.Classes);
            this.dxfClass_22 = DxfVisualStyle.smethod_2(model.Classes);
            this.dxfClass_23 = DxfWipeoutVariables.smethod_2(model.Classes);
            this.dxfClass_11 = DxfClass.smethod_7(model.Classes);
            this.short_6     = this.dxfClass_11.ClassNumber;
            this.short_2     = this.dxfClass_6.ClassNumber;
            this.dxfClass_7  = DxfMLeader.smethod_2(model.Classes);
            this.dxfClass_8  = DxfMLeaderStyle.smethod_3(model.Classes);
            this.dxfClass_9  = DxfMLeaderObjectContextData.smethod_16(model.Classes);
            this.short_5     = this.dxfClass_10.ClassNumber;
            this.dxfClass_12 = DxfClass.smethod_3(model.Classes);
            this.dxfClass_16 = DxfClass.smethod_10(model.Classes);
            this.dxfClass_17 = DxfClass.smethod_11(model.Classes);
            this.dxfClass_18 = DxfClass.smethod_14(model.Classes);
            this.dxfClass_15 = DxfClass.smethod_12(model.Classes);
            this.dxfClass_19 = DxfClass.smethod_17(model.Classes);
            this.dxfClass_20 = DxfClass.smethod_18(model.Classes);
            this.dxfClass_21 = DxfTableContent.smethod_2(model.Classes);
            this.dxfClass_2  = DxfField.smethod_2(model.Classes);
            this.dxfClass_3  = DxfFieldList.smethod_2(model.Classes);
            this.dxfClass_4  = DxfGeoData.smethod_2(model.Classes);
            this.dxfClass_13 = DxfPlotSettings.smethod_2(model.Classes);
            this.class1032_0 = new Class1030.Class1032(model);
            this.class1031_0 = new Class1030.Class1031(model);
        }
Exemplo n.º 4
0
 public void Visit(DxfField field)
 {
 }
Exemplo n.º 5
0
 public void Visit(DxfField field)
 {
     this.bool_0 = true;
 }
Exemplo n.º 6
0
 public Class283(DxfField field)
     : base((DxfObject)field)
 {
 }
Exemplo n.º 7
0
        private void CopyFrom(Class1026 from, CloneContext cloneContext)
        {
            this.enum47_0   = from.enum47_0;
            this.bool_0     = from.bool_0;
            this.int_0      = from.int_0;
            this.int_1      = from.int_1;
            this.double_0   = from.double_0;
            this.dxfValue_0 = from.dxfValue_0 != null?from.dxfValue_0.Clone(cloneContext) : (DxfValue)null;

            if (from.BlockOrField != null)
            {
                if (cloneContext.SourceModel == cloneContext.TargetModel)
                {
                    this.BlockOrField = from.BlockOrField;
                }
                else
                {
                    DxfBlock blockOrField = from.BlockOrField as DxfBlock;
                    if (blockOrField != null)
                    {
                        DxfBlock dxfBlock;
                        if (!cloneContext.TargetModel.Blocks.TryGetValue(blockOrField.Name, out dxfBlock))
                        {
                            if (cloneContext.ReferenceResolutionType == ReferenceResolutionType.CloneMissing)
                            {
                                dxfBlock = (DxfBlock)from.BlockOrField.Clone(cloneContext);
                                if (!cloneContext.CloneExact)
                                {
                                    cloneContext.TargetModel.Blocks.Add(dxfBlock);
                                }
                            }
                            else if (cloneContext.ReferenceResolutionType == ReferenceResolutionType.FailOnMissing)
                            {
                                throw new DxfException("Block with name " + blockOrField.Name + " not present in target model.");
                            }
                            this.BlockOrField = (DxfHandledObject)dxfBlock;
                        }
                    }
                    else
                    {
                        DxfField dxfField = (DxfField)from.BlockOrField.Clone(cloneContext);
                        if (!cloneContext.TargetModel.FieldList.Fields.Contains(dxfField))
                        {
                            cloneContext.TargetModel.FieldList.Fields.Add(dxfField);
                        }
                        this.BlockOrField = (DxfHandledObject)dxfField;
                    }
                }
            }
            this.double_1 = from.double_1;
            if (from.dxfTableAttributeCollection_0 != null)
            {
                foreach (DxfTableAttribute dxfTableAttribute in (List <DxfTableAttribute>)from.dxfTableAttributeCollection_0)
                {
                    this.Attributes.Add(dxfTableAttribute.Clone(cloneContext));
                }
            }
            if (from.TextStyle != null)
            {
                if (cloneContext.SourceModel == cloneContext.TargetModel)
                {
                    this.TextStyle = from.TextStyle;
                }
                else
                {
                    DxfTextStyle textStyle;
                    if (cloneContext.TargetModel.TextStyles.TryGetValue(from.TextStyle.Name, out textStyle))
                    {
                        this.TextStyle = textStyle;
                    }
                    else
                    {
                        if (cloneContext.ReferenceResolutionType != ReferenceResolutionType.CloneMissing)
                        {
                            throw new DxfException("Text style with name " + from.TextStyle.Name + " not present in target model.");
                        }
                        this.TextStyle = (DxfTextStyle)from.TextStyle.Clone(cloneContext);
                        if (!cloneContext.CloneExact)
                        {
                            cloneContext.TargetModel.TextStyles.Add(this.TextStyle);
                        }
                    }
                }
            }
            this.nullable_0 = from.nullable_0;
            this.nullable_1 = from.nullable_1;
            this.nullable_2 = from.nullable_2;
            this.nullable_3 = from.nullable_3;
            this.nullable_4 = from.nullable_4;
            this.dxfTableBorderOverrides_0.CopyFrom(from.dxfTableBorderOverrides_0, cloneContext);
            this.dxfTableBorderOverrides_1.CopyFrom(from.dxfTableBorderOverrides_1, cloneContext);
            this.dxfTableBorderOverrides_2.CopyFrom(from.dxfTableBorderOverrides_2, cloneContext);
            this.dxfTableBorderOverrides_3.CopyFrom(from.dxfTableBorderOverrides_3, cloneContext);
            this.int_2 = from.int_2;
        }