ManufacturingToolAssembly (Object)

Represents the tool assembly.

Properties


Property AssemblyType() As (Read Only)
Returns the type of the tool assembly.
Legal values: the type of the tool assembly can be either MfgMillAndDrillToolAssembly or MfgLatheToolAssembly.
Example:
 The following example returns the assembly type Type of the assembly CurrentAssembly:
 
 Set Type=CurrentAssembly.AssemblyType
Property Comment() As (Read Only)
Returns the default comment of a tool assembly.
Example:
 The following example returns the comment Comment of the tool assembly CurrentAssembly:
 
 Comment=CurrentAssembly.Comment
Property Insert() As (Read Only)
Returns the insert of an assembly.
Example:
 The following example retrieves in Insert the insert 
 of the assembly CurrentAssembly:
 
 Set Insert = CurrentAssembly.Insert
 
Property NumberOfAttributes() As (Read Only)
Returns the number of attributes of a tool assembly.
Example:
 The following example returns the Number of attributes of the tool assembly CurrentAssembly:
 
 Number = CurrentAssembly.NumberOfAttributes
 
Property Tool() As (Read Only)
Returns the tool of an assembly.
Example:
 The following example retrieves in Tool the manufacturing tool 
 of the assembly CurrentAssembly:
 
 Set Tool = CurrentAssembly.Tool
 
Property ToolNumber() As (Read Only)
Returns the number linked to a tool assembly.
Example:
 The following example returns the Number linked to the tool assembly CurrentAssembly:
 
 Number = CurrentAssembly.ToolNumber

Methods


Func GetAttribute( iAttribute) As
Returns an attribute of a tool assembly.
The attribute is identified using its name, and is retrieved as a object.
Parameters:
iAttribute
The attribute name
Returns:
The retrieved attribute
Example:
 The following example retrieves in Diameter the attribute 
 MfgDiameter of the tool assembly CurrentAssembly:
 
 Set Diameter = CurrentAssembly.GetAttribute(MfgDiameter)
 
Func GetAttributeNLSName( iAttributeName) As
Returns the NLS value of an attribute.
Parameters:
iAttributeName
The attribute name
Returns:
The attribute NLS value
Example:
 The following example gives in NLSresult the NLS value of the "MFG_COMMENT" attributes 
 of the tool assembly CurrentAssembly:
 
 NLSresult = CurrentAssembly.GetAttributeNLSName("MFG_COMMENT")
 
Sub GetListOfAttributeUnits( ioListOfAttributeUnits)
Retrieves the list of attribute units of a tool assembly.
The number of items in the output array is equal to the number of attributes of the assembly. When an attribute has no unit definition, the corresponding unit item in the output array is a blank string.
Parameters:
ioListOfAttributeUnits
The retrieved list of attributes units
Example:
 The following example retrieves in TabAttributeUnits the list of attribute units 
 of the tool assembly CurrentAssembly:
 
 call CurrentAssembly.GetListOfAttributeUnits(TabAttributeUnits)
 
Sub GetListOfAttributes( ioListOfAttributes)
Retrieves the list of attributes of a tool assembly.
Each attribute retrieved as a object.
Parameters:
ioListOfAttributes
The retrieved list of attributes
Example:
 The following example retrieves in TabAttributes the list of attributes 
 of the tool assembly CurrentAssembly:
 
 call CurrentAssembly.GetListOfAttributes(TabAttributes)