public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfBlockAngularConstraintParameter constraintParameter = (DxfBlockAngularConstraintParameter)from; this.BasePointAngular = constraintParameter.BasePointAngular; this.TextPosition = constraintParameter.TextPosition; this.ValueSet = (DxfBlockParametersValueSet)cloneContext.Clone((IGraphCloneable)constraintParameter.ValueSet); this.Value = constraintParameter.Value; this.Description = constraintParameter.Description; this.Unknown1 = constraintParameter.Unknown1; }
public override IGraphCloneable Clone(CloneContext cloneContext) { DxfBlockAngularConstraintParameter constraintParameter = (DxfBlockAngularConstraintParameter)cloneContext.GetExistingClone((IGraphCloneable)this); if (constraintParameter == null) { constraintParameter = new DxfBlockAngularConstraintParameter(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)constraintParameter); constraintParameter.CopyFrom((DxfHandledObject)this, cloneContext); } return((IGraphCloneable)constraintParameter); }