All Frameworks Object Hierarchy This Framework Indexes
Check (Object)
Represents the check relation.
The following example shows how to create a check which checks if a given
mass is less than 10kg. The mass should be defined previously:
Dim CATDocs As Documents
Set CATDocs = CATIA.Documents
Dim part1 As Document
Set part1 = CATDocs.Add("CATPart")
Dim mass As RealParam
Set mass = part1.Part.Parameters.CreateReal("mass", 5.)
Dim maximummass As Check
Set maximummass = part1.Relations.CreateCheck
("maximummass",
"Ensures that mass is less than 10 kg",
"mass<10kg")
Property Index
-
Diagnosis
- Returns the check diagnosis.
-
Severity
- Returns or sets the check severity.
Properties
o Property Diagnosis( | ) As (Read Only) |
-
Returns the check diagnosis.
True if the condition of the check is verified. False
otherwise.
-
Returns or sets the check severity.
The severity is the way the check will manifest itself:
- Silent (1)
- Information (2)
- Warning (3)