Skip to content

RevitComparisonConfig.NumericTolerance overridden #1200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Revit_oM/Config/RevitComparisonConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public class RevitComparisonConfig : BaseComparisonConfig
[Description("(Defaults to `true`) If false, if an object has a RevitParameter with a null Value deleted from it, then the owner object is NOT considered 'Modified' and the Comparison will NOT return this difference.")]
public virtual bool RevitParams_ConsiderRemovedUnassigned { get; set; } = true;

[Description("Numeric tolerance for property values, applied to all numerical properties. Defaults to 1e-6." +
"\nApplies rounding for numbers smaller than this." +
"\nYou can override on a per-property basis by using `PropertyNumericTolerances`." +
"\nIf conflicting values/multiple matches are found among the Configurations on numerical precision, the largest approximation among all (least precise number) is registered.")]
public override double NumericTolerance { get; set; } = 1e-6;

/***************************************************/
}
}
Expand Down