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")
Properties
- Property Diagnosis() As (Read Only)
- Returns the check diagnosis. True if the condition of the check is verified. False otherwise.