Example #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockFlipAction dxfBlockFlipAction = (DxfBlockFlipAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, dxfBlockFlipAction.ActionConnections);
        }
Example #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockPolarStretchAction polarStretchAction = (DxfBlockPolarStretchAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, polarStretchAction.ActionConnections);
            if (polarStretchAction.Frame == null)
            {
                this.Frame = (WW.Math.Point2D[])null;
            }
            else
            {
                this.Frame = new WW.Math.Point2D[polarStretchAction.Frame.Length];
                for (int index = 0; index < polarStretchAction.Frame.Length; ++index)
                {
                    this.Frame[index] = polarStretchAction.Frame[index];
                }
            }
            if (polarStretchAction.RotateSelection == null)
            {
                this.RotateSelection = (DxfHandledObjectCollection <DxfHandledObject>)null;
            }
            else
            {
                int count = polarStretchAction.RotateSelection.Count;
                this.RotateSelection = new DxfHandledObjectCollection <DxfHandledObject>(count);
                for (int index = 0; index < count; ++index)
                {
                    this.RotateSelection.Add(cloneContext.SourceModel == cloneContext.TargetModel ? polarStretchAction.RotateSelection[index] : polarStretchAction.RotateSelection[index].Clone(cloneContext) as DxfHandledObject);
                }
            }
            this.StretchEntities = DxfBlockPolarStretchAction.StretchEntity.Clone(polarStretchAction.StretchEntities, cloneContext);
            this.StretchNodes    = DxfBlockPolarStretchAction.StretchNode.Clone(cloneContext, polarStretchAction.StretchNodes);
        }
Example #3
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockScaleAction blockScaleAction = (DxfBlockScaleAction)from;

            this.ScaleType         = blockScaleAction.ScaleType;
            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, blockScaleAction.ActionConnections);
        }
Example #4
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockArrayAction blockArrayAction = (DxfBlockArrayAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, blockArrayAction.ActionConnections);
            this.ColumnOffset      = blockArrayAction.ColumnOffset;
            this.RowOffset         = blockArrayAction.RowOffset;
        }
Example #5
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockBasePointAction blockBasePointAction = (DxfBlockBasePointAction)from;

            this.BasePoint       = blockBasePointAction.BasePoint;
            this.Offset          = blockBasePointAction.Offset;
            this.IndependentFlag = blockBasePointAction.IndependentFlag;
            this.Connections     = DxfConnectionPoint.Clone(cloneContext, blockBasePointAction.Connections);
        }
Example #6
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockStretchAction blockStretchAction = (DxfBlockStretchAction)from;

            this.ActionConnections = DxfConnectionPoint.Clone(cloneContext, blockStretchAction.ActionConnections);
            this.Frame             = new WW.Math.Point2D[blockStretchAction.Frame.Length];
            for (int index = 0; index < blockStretchAction.Frame.Length; ++index)
            {
                this.Frame[index] = blockStretchAction.Frame[index];
            }
            this.StretchEntities = DxfBlockPolarStretchAction.StretchEntity.Clone(blockStretchAction.StretchEntities, cloneContext);
            this.StretchNodes    = DxfBlockPolarStretchAction.StretchNode.Clone(cloneContext, blockStretchAction.StretchNodes);
        }