Exemplo n.º 1
0
        public IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfXRecordValue dxfXrecordValue = new DxfXRecordValue();

            dxfXrecordValue.short_0 = this.short_0;
            DxfHandledObject dxfHandledObject1 = this.Value as DxfHandledObject;

            if (dxfHandledObject1 == null)
            {
                dxfXrecordValue.Value = this.Value;
            }
            else
            {
                DxfHandledObject dxfHandledObject2 = (DxfHandledObject)dxfHandledObject1.Clone(cloneContext);
                dxfXrecordValue.object_0 = (object)dxfHandledObject2;
                switch (Class820.smethod_2((int)this.short_0))
                {
                case Enum5.const_5:
                case Enum5.const_7:
                case Enum5.const_8:
                case Enum5.const_15:
                    cloneContext.method_0(dxfHandledObject2);
                    break;
                }
            }
            return((IGraphCloneable)dxfXrecordValue);
        }
Exemplo n.º 2
0
            public override DxfDataCellValue Clone(CloneContext cloneContext)
            {
                DxfHandledObject dxfHandledObject = (DxfHandledObject)null;

                if (this.Value != null)
                {
                    dxfHandledObject = (DxfHandledObject)this.Value.Clone(cloneContext);
                    cloneContext.method_0(dxfHandledObject);
                }
                return((DxfDataCellValue) new DxfDataCellValue.SoftPointerId(dxfHandledObject));
            }
Exemplo n.º 3
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfLeader dxfLeader = (DxfLeader)from;

            if (dxfLeader.dxfDimensionStyleOverrides_0 != null)
            {
                this.dxfDimensionStyleOverrides_0 = dxfLeader.dxfDimensionStyleOverrides_0.Clone(cloneContext);
            }
            this.bool_2               = dxfLeader.bool_2;
            this.leaderPathType_0     = dxfLeader.leaderPathType_0;
            this.leaderCreationType_0 = dxfLeader.leaderCreationType_0;
            this.hookLineDirection_0  = dxfLeader.hookLineDirection_0;
            this.bool_3               = dxfLeader.bool_3;
            this.double_2             = dxfLeader.double_2;
            this.double_3             = dxfLeader.double_3;
            this.list_0.AddRange((IEnumerable <WW.Math.Point3D>)dxfLeader.list_0);
            this.color_0 = dxfLeader.color_0;
            if (dxfLeader.AssociatedAnnotation == null)
            {
                this.AssociatedAnnotation = (DxfEntity)null;
            }
            else if (cloneContext.SourceModel == cloneContext.TargetModel)
            {
                this.AssociatedAnnotation = dxfLeader.AssociatedAnnotation;
            }
            else
            {
                this.AssociatedAnnotation = (DxfEntity)dxfLeader.AssociatedAnnotation.Clone(cloneContext);
                cloneContext.method_0((DxfHandledObject)this.AssociatedAnnotation);
            }
            this.vector3D_0 = dxfLeader.vector3D_0;
            this.vector3D_1 = dxfLeader.vector3D_1;
            this.vector3D_2 = dxfLeader.vector3D_2;
            this.vector3D_3 = dxfLeader.vector3D_3;
        }