pycatia.knowledge_interfaces.check¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.knowledge_interfaces.check.Check(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectKnowledgeInterfaces.KnowledgeObjectKnowledgeInterfaces.KnowledgeActivateObjectKnowledgeInterfaces.RelationCheckRepresents the check relation.The following example shows how to create a check which checks if a given massis less than 10kg. The mass should be defined previously:Dim CATDocs As DocumentsSet CATDocs = CATIA.DocumentsDim part1 As DocumentSet part1 = CATDocs.Add(“CATPart”)Dim mass As RealParamSet mass = part1.Part.Parameters.CreateReal(“mass”, 5.)Dim maximummass As CheckSet maximummass = part1.Relations.CreateCheck(“maximummass”,“Ensures that mass is less than 10 kg”,“mass<10kg”)- property diagnosis: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Diagnosis() As boolean (Read Only)Returns the check diagnosis. True if the condition of the check isverified. False otherwise.
- Return type:
bool
- property severity: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Severity() As longReturns or sets the check severity. The severity is the way the check willmanifest itself:Silent (1)Information (2)Warning (3)
- Return type:
int