All Frameworks  Object Hierarchy  This Framework  Indexes   

ManufacturingToolAssembly (Object)

Represents the tool assembly.

Property Index

AssemblyType
Returns the type of the tool assembly.
Comment
Returns the default comment of a tool assembly.
Insert
Returns the insert of an assembly.
NumberOfAttributes
Returns the number of attributes of a tool assembly.
ToolNumber
Returns the number linked to a tool assembly.
Tool
Returns the tool of an assembly.

Method Index

GetAttributeNLSName
Returns the NLS value of an attribute.
GetAttribute
Returns an attribute of a tool assembly.
GetListOfAttributeUnits
Retrieves the list of attribute units of a tool assembly.
GetListOfAttributes
Retrieves the list of attributes of a tool assembly.

Properties


o 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
o 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
o 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
 
o 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
 
o 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
o 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
 

Methods


o 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")
 
o Func GetAttribute( iAttribute) As
Returns an attribute of a tool assembly.
The attribute is identified using its name, and is retrieved as a
Parameter 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)
 
o 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)
 
o Sub GetListOfAttributes( ioListOfAttributes)
Retrieves the list of attributes of a tool assembly.
Each attribute retrieved as a
Parameter 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)

Copyright © 2003, Dassault Systèmes. All rights reserved.