pycatia.manufacturing_interfaces.manufacturing_tool_assembly¶
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.manufacturing_interfaces.manufacturing_tool_assembly.ManufacturingToolAssembly(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectManufacturingToolAssemblyRepresents the tool assembly.- property assembly_type: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AssemblyType() As CATBSTR (Read Only)Returns the type of the tool assembly.Legal values: the type of the tool assembly can be eitherMfgMillAndDrillToolAssembly or MfgLatheToolAssembly.Example:The following example returns the assembly type Type of the assemblyCurrentAssembly:Set Type=CurrentAssembly.AssemblyType
- Return type:
str
- property comment: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Comment() As CATBSTR (Read Only)Returns the default comment of a tool assembly.Example:The following example returns the comment Comment of the toolassembly CurrentAssembly:Comment=CurrentAssembly.Comment
- Return type:
str
- get_attribute(i_attribute: str) Parameter ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetAttribute(CATBSTR iAttribute) As ParameterReturns an attribute of a tool assembly.The attribute is identified using its name, and is retrieved as a Parameterobject.Parameters:iAttributeThe attribute nameReturns:The retrieved attributeExample:The following example retrieves in Diameter the attributeMfgDiameter of the tool assembly CurrentAssembly:Set Diameter = CurrentAssembly.GetAttribute(MfgDiameter)
- Parameters:
i_attribute (str) –
- Return type:
- get_attribute_nls_name(i_attribute_name: str) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetAttributeNLSName(CATBSTR iAttributeName) AsCATBSTRReturns the NLS value of an attribute.Parameters:iAttributeNameThe attribute nameReturns:The attribute NLS valueExample:The following example gives in NLSresult the NLS value of the“MFG_COMMENT” attributesof the tool assembly CurrentAssembly:NLSresult = CurrentAssembly.GetAttributeNLSName(“MFG_COMMENT”)
- Parameters:
i_attribute_name (str) –
- Return type:
str
- get_list_of_attribute_units(io_list_of_attribute_units: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetListOfAttributeUnits(CATSafeArrayVariantioListOfAttributeUnits)Retrieves the list of attribute units of a tool assembly.The number of items in the output array is equal to the number ofattributes of the assembly. When an attribute has no unit definition, thecorresponding unit item in the output array is a blankstring.Parameters:ioListOfAttributeUnitsThe retrieved list of attributes unitsExample:The following example retrieves in TabAttributeUnits the list ofattribute unitsof the tool assembly CurrentAssembly:call CurrentAssembly.GetListOfAttributeUnits(TabAttributeUnits)
- Parameters:
io_list_of_attribute_units (tuple) –
- Return type:
None
- get_list_of_attributes(io_list_of_attributes: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetListOfAttributes(CATSafeArrayVariantioListOfAttributes)Retrieves the list of attributes of a tool assembly.Each attribute retrieved as a Parameter object.Parameters:ioListOfAttributesThe retrieved list of attributesExample:The following example retrieves in TabAttributes the list ofattributesof the tool assembly CurrentAssembly:callCurrentAssembly.GetListOfAttributes(TabAttributes)
- Parameters:
io_list_of_attributes (tuple) –
- Return type:
None
- property insert: ManufacturingInsert¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Insert() As ManufacturingInsert (Read Only)Returns the insert of an assembly.Example:The following example retrieves in Insert the insertof the assembly CurrentAssembly:Set Insert = CurrentAssembly.Insert
- Return type:
- property number_of_attributes: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NumberOfAttributes() As short (Read Only)Returns the number of attributes of a tool assembly.Example:The following example returns the Number of attributes of the toolassembly CurrentAssembly:Number = CurrentAssembly.NumberOfAttributes
- Return type:
int
- property tool: ManufacturingTool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Tool() As ManufacturingTool (Read Only)Returns the tool of an assembly.Example:The following example retrieves in Tool the manufacturing toolof the assembly CurrentAssembly:Set Tool = CurrentAssembly.Tool
- Return type:
- property tool_number: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ToolNumber() As long (Read Only)Returns the number linked to a tool assembly.Example:The following example returns the Number linked to the tool assemblyCurrentAssembly:Number = CurrentAssembly.ToolNumber
- Return type:
int