Exemple #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfBlockPolarParameter blockPolarParameter = (DxfBlockPolarParameter)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (blockPolarParameter == null)
            {
                blockPolarParameter = new DxfBlockPolarParameter();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)blockPolarParameter);
                blockPolarParameter.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)blockPolarParameter);
        }
Exemple #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfBlockPolarParameter blockPolarParameter = (DxfBlockPolarParameter)from;

            this.LabelText        = blockPolarParameter.LabelText;
            this.Description      = blockPolarParameter.Description;
            this.AngleLabelText   = blockPolarParameter.AngleLabelText;
            this.AngleDescription = blockPolarParameter.AngleDescription;
            this.LabelOffset      = blockPolarParameter.LabelOffset;
            this.Distance         = (DxfBlockParametersValueSet)blockPolarParameter.Distance.Clone(cloneContext);
            this.Angle            = (DxfBlockParametersValueSet)blockPolarParameter.Angle.Clone(cloneContext);
        }