예제 #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockFlipGrip dxfBlockFlipGrip = (DxfBlockFlipGrip)from;

            this.Orientation    = dxfBlockFlipGrip.Orientation;
            this.FlipExpression = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)dxfBlockFlipGrip.FlipExpression);
        }
예제 #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockFlipGrip dxfBlockFlipGrip = (DxfBlockFlipGrip)cloneContext.GetExistingClone((IGraphCloneable)this);

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