pycatia.cat_plant_ship_interfaces.psp_attribute¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
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.cat_plant_ship_interfaces.psp_attribute.PSPAttribute(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectPspAttributeRepresents Attribute Interface to query Plant Ship objects’attributes.Role: To query and reset attributes.- get_multi_string_attribute_values(i_attribute_name: str) PSPListOfBSTRs ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetMultiStringAttributeValues(CATBSTR iAttributeName) AsPspListOfBSTRsRetrieves String values for the input attribute the typecatPspIDLMultiString.Parameters:iAttributeNameAttribute NameReturns:List of string valuesExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim objArg2 As PspListOfBSTRs…Set objArg2 = objThisIntf.GetMultiStringAttributeValues (strVar1)
- Parameters:
i_attribute_name (str) –
- Return type:
- get_parameter(i_attribute_name: str) Parameter ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetParameter(CATBSTR iAttributeName) As ParameterRetrieve parameter for the input attribute name.Parameters:iAttributeNameAttribute NameReturns:Parameter of the attributeExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim ObjVar2 As Parameter…Set objArg2 = objThisIntf.GetParameter (strVar1 )
- Parameters:
i_attribute_name (str) –
- Return type:
- get_type(i_attribute_name: str) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetType(CATBSTR iAttributeName) AsCatPspIDLAttrDataTypeRetrieves type of the input attribute. If the type of the attribute iscatPspIDLMultiString use GetMultiStringAttributeValues. for others, useGetParameter().Parameters:iAttributeNameAttribute NameReturns:Type of the attribute.Example:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim eType As CatPspIDLAttrDataType…eType = objThisIntf.GetType (strVar1)
- param str i_attribute_name:
- rtype:
enum cat_psp_idl_attr_data_type
- return:
int
- is_derived(i_attribute_name: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func IsDerived(CATBSTR iAttributeName) As booleanRetrieve Derived status for the input attribute.Parameters:iAttributeNameAttribute NameReturns:TRUE if the attribute is derivedExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim bIsDerived As boolean…bIsDerived = objThisIntf.IsDerived (strVar1)
- Parameters:
i_attribute_name (str) –
- Return type:
bool
- is_discrete(i_attribute_name: str, ob_status: bool) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func IsDiscrete(CATBSTR iAttributeName,boolean obStatus) As shortQuery whether the input attribute is discrete or not.Parameters:iAttributeNameAttribute NameobStatusTRUE if attribute is discrete else FALSEReturns:Discrete Type value 1-Standard 2-Encoded discreteExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim boolVar2 As BooleanDim shortVar3 As Short…shortVar3 = objThisIntf.IsDiscrete (strVar1,boolVar2)
- Parameters:
i_attribute_name (str) –
ob_status (bool) –
- Return type:
int
- list_attributes(i_domain_id: int) PSPListOfBSTRs ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ListAttributes(CatPspIDLDomainID iDomainID) AsPspListOfBSTRsRetrieves a list of Attributes of an object in the the input domainID.Parameters:iDomainIDDomain ID. If set to catPspIDLNone, then it will return attributesin all the domains.Returns:List of attributes ( A list of CATIAPspGroupables)Example:Dim objThisIntf As PspAttributeDim objArg1 As CatPspIDLDomainIDDim objArg2 As PspListOfBSTRs…Set objArg2 = objThisIntf.ListAttributes (objArg1)
- Parameters:
i_domain_id (int) – enum cat_psp_idl_domain_id
- Return type:
- list_double_discrete_values(i_attribute_name: str) PSPListOfDoubles ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ListDoubleDiscreteValues(CATBSTR iAttributeName) AsPspListOfDoublesRetrieves double discrete values for the input attribute.Parameters:iAttributeNameAttribute NameReturns:Discrete list of double valuesExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim objArg2 As PspListOfDoubles…Set objArg2 = objThisIntf.ListDoubleDiscreteValues (strVar1 )
- Parameters:
i_attribute_name (str) –
- Return type:
- list_encoded_decoded_discrete_values(i_attribute_name: str, o_l_discrete_encoded_values: PSPListOfBSTRs, o_l_discrete_decoded_value: PSPListOfBSTRs) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListEncodedDecodedDiscreteValues(CATBSTRiAttributeName,PspListOfBSTRs oLDiscreteEncodedValues,PspListOfBSTRs oLDiscreteDecodedValue)Retrieves Encoded-decoded discrete values for the inputattribute.Parameters:iAttributeNameAttribute NameoLDiscreteEncodedValuesDiscrete list of encoded string valuesoLDiscreteDecodedValueDiscrete list of decoded string valuesExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim objArg2 As PspListOfBSTRsDim objArg3 As PspListOfBSTRs…objThisIntf.ListEncodedDecodedDiscreteValues strVar1, objArg2,objArg3
- Parameters:
i_attribute_name (str) –
o_l_discrete_encoded_values (PSPListOfBSTRs) –
o_l_discrete_decoded_value (PSPListOfBSTRs) –
- Return type:
None
- list_integer_discrete_values(i_attribute_name: str) PSPListOfLongs ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ListIntegerDiscreteValues(CATBSTR iAttributeName) AsPspListOfLongsRetrieve integer (long) discrete values for the inputattribute.Parameters:iAttributeNameAttribute NameReturns:Discrete list of integer valuesExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim objArg2 As PspListOfLongs…Set objArg2 = objThisIntf.ListIntegerDiscreteValues (strVar1)
- Parameters:
i_attribute_name (str) –
- Return type:
- list_string_discrete_values(i_attribute_name: str) PSPListOfBSTRs ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ListStringDiscreteValues(CATBSTR iAttributeName) AsPspListOfBSTRsRetrievesString discrete values for the input attribute.Parameters:iAttributeNameAttribute NameReturns:Discrete list of string valuesExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTRDim objArg2 As PspListOfBSTRs…Set objArg2 = objThisIntf.ListStringDiscreteValues (strVar1)
- Parameters:
i_attribute_name (str) –
- Return type:
- reset_derived_attr(i_attribute_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ResetDerivedAttr(CATBSTR iAttributeName)Reset derived status of the attribute to not-derived.Parameters:iAttributeNameAttribute NameExample:Dim objThisIntf As PspAttributeDim strVar1 As CATBSTR…objThisIntf.ResetDerivedAttr strVar1
- Parameters:
i_attribute_name (str) –
- Return type:
None