Class NwcClashRule
- Namespace
- NwcIO.Model.Clash
- Assembly
- NwcIO.dll
A rule that excludes specific pairs of elements from clash reporting.
public sealed class NwcClashRuleInheritance
Inherited Members
Constructors
NwcClashRule()
public NwcClashRule()NwcClashRule(string, NwcClashRuleType, bool)
public NwcClashRule(string name, NwcClashRuleType ruleType, bool enabled = true)Parameters
namestringruleTypeNwcClashRuleTypeenabledbool
Properties
CustomPredicate
public Func<NwcClashResult, bool>? CustomPredicate { get; set; }Property Value
Enabled
public bool Enabled { get; set; }Property Value
Name
public string Name { get; set; }Property Value
PropertyName
public string? PropertyName { get; set; }Property Value
PropertyValue
public string? PropertyValue { get; set; }Property Value
RuleType
public NwcClashRuleType RuleType { get; set; }Property Value
SetA
public string? SetA { get; set; }Property Value
SetB
public string? SetB { get; set; }Property Value
Threshold
public double Threshold { get; set; }Property Value
Methods
MinPenetration(double, bool)
Creates a rule that ignores clashes with penetration depth below a threshold.
public static NwcClashRule MinPenetration(double minPenetration, bool enabled = true)Parameters
Returns
SameFile(bool)
Creates a rule that ignores clashes between elements in the same file/model.
public static NwcClashRule SameFile(bool enabled = true)Parameters
enabledbool
Returns
SameGroup(bool)
Creates a rule that ignores clashes between elements in the same group or parent composite node.
public static NwcClashRule SameGroup(bool enabled = true)Parameters
enabledbool
Returns
SameLayer(bool)
Creates a rule that ignores clashes between elements on the same layer.
public static NwcClashRule SameLayer(bool enabled = true)Parameters
enabledbool
Returns
ShouldIgnore(NwcClashResult)
Evaluates whether a detected clash should be ignored according to this rule.
public bool ShouldIgnore(NwcClashResult clash)Parameters
clashNwcClashResult