pycatia.knowledge_interfaces.relation¶
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.relation.Relation(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectKnowledgeInterfaces.KnowledgeObjectKnowledgeInterfaces.KnowledgeActivateObjectRelationRepresents the relation object.It is an abstract object which is not intended to be created as such, but fromwhich the check, design table, formula, rule, objects derive.See also:Check, DesignTable, Formula, Rule- property comment: str¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Comment() As CATBSTRReturns or sets the comment associated with the relation. The commentexplains the relation’s purpose. It is passed as the second input argument ofthe relation creation methods of the Relations collection.Example:This example retrieves the maximummass relation comment and displays itin a message box:relcomment = maximummass.CommentMsgBox “maximummass comment : “ & relcomment
- Return type:
str
- property context: AnyObject¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Context() As AnyObject (Read Only)Returns the context of the parameter.The context of a parameter can be a part, a product, a drafting, or aprocess document, depending where the parameter is.Returns:The contextSee also:Part, Product, CATIADrawing, CATIAProcess
- Return type:
- get_in_parameter(i_index: int) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetInParameter(long iIndex) As AnyObjectReturns an input parameter of the relation.This method can return an object that is not a parameter, that is, youcannot handle it as a Parameter object. For example, in a relationlikeArea.1 = area(PartBody/Pad.1/Sketch.1)the object PartBody/Pad.1/Sketch.1 is a sketch and not aparameter.To use such an object, call the Visual Basic TypeName function to retrieveits real type.Dim objectTypeobjectType = TypeName(oParameter)If objectType = “Parameter” Then…Parameters:iIndexThe searched input parameter index in therelation.Legal values: 1 ≤ iIndex ≤NbInParameters
- Parameters:
i_index (int) –
- Return type:
- get_out_parameter(i_index: int) Parameter ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetOutParameter(long iIndex) As ParameterReturns an output parameter of the relation. Use TypeName method on thereturned parameter to get the real type of the parameter.Parameters:iIndexThe searched input parameter index in therelation.Legal values: 1 ≤ iIndex ≤NbOutParameters
- Parameters:
i_index (int) –
- Return type:
- modify(i_value: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub Modify(CATBSTR iValue)Modifies the relation.Parameters:iValueThe new relation value
- Parameters:
i_value (str) –
- Return type:
None
- property nb_in_parameters: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property NbInParameters() As long (Read Only)Returns the number of input parameters of the relation.
- Return type:
int
- property nb_out_parameters: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property NbOutParameters() As long (Read Only)Returns the number of output parameters of the relation.The output parameters of the relation are those constrained by therelation.
- Return type:
int
- rename(i_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub Rename(CATBSTR iName)Renames the relation.Parameters:iNameThe new relation name
- Parameters:
i_name (str) –
- Return type:
None
- property value: str¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Value() As CATBSTR (Read Only)Returns the definition of the relation. It returns an empty string if therelation is not an expressional one (for example for a design table). Thedefinition is the body to be executed to compute one or several parameters. Itis passed as the last input argument of the relation creation methods of theRelations collection.Example:This example retrieves the maximummass relation definition and displaysit in a message box:reldef = maximummass.ValueMsgBox “maximummass relation is defined as “ & reldef
- Return type:
str