Exemple #1
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);
        }
Exemple #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockScaleAction blockScaleAction = (DxfBlockScaleAction)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (blockScaleAction == null)
            {
                blockScaleAction = new DxfBlockScaleAction();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)blockScaleAction);
                blockScaleAction.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)blockScaleAction);
        }