Interface IMachineTools
Gives access to machine tool.
Namespace: TopSolid.Cam.NC.Kernel.Automating
Assembly: TopSolid.Cam.NC.Kernel.Automating.dll
Syntax
public interface IMachineTools
  Methods
GetBodyRigidGroup(ElementId)
Get the body rigid group of the given machine.
Declaration
ElementId GetBodyRigidGroup(ElementId inMachineId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inMachineId | Identifier of the machine tool to analyze.  | 
      
Returns
| Type | Description | 
|---|---|
| ElementId | Id of the body rigid group.  | 
      
GetMagazines(ElementId)
Get the list of magazines of the given machine.
Declaration
List<ElementId> GetMagazines(ElementId inMachineId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inMachineId | Identifier of the machine tool to analyze.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<ElementId> | List of magazines.  | 
      
GetParameters(ElementId)
Gets the parameters of the given machine tool.
Declaration
List<ParameterId> GetParameters(ElementId inElementId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inElementId | Identifier of the machine to analyze.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<ParameterId> | Machine parameters found.  | 
      
GetPartHolders(ElementId)
Get the list of part holders of the given machine.
Declaration
List<ElementId> GetPartHolders(ElementId inMachineId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inMachineId | Identifier of the machine tool to analyze.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<ElementId> | List of all part holders.  | 
      
GetPockets(ElementId)
Get pockets of machine element (spindle, turret, magazine).
Declaration
List<ElementId> GetPockets(ElementId inMachineElementId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inMachineElementId | Machine element identifier.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<ElementId> | List of pockets.  | 
      
GetToolHolders(ElementId)
Get the list of tool holders of the given machine.
Declaration
List<ElementId> GetToolHolders(ElementId inMachineId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inMachineId | Identifier of the machine tool to analyze.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<ElementId> | List of all tool holders.  | 
      
IsMachineTool(ElementId)
Tells whether an element is a machine.
Declaration
bool IsMachineTool(ElementId inElementId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inElementId | Identifier of the element to analyze.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if the element is a machine tool.  | 
      
SetPartHolder(ElementId, ElementId)
Set the part to the part holder on the current machine.
Declaration
void SetPartHolder(ElementId inPartId, ElementId inPartHolderId)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ElementId | inPartId | Identifier of the part.  | 
      
| ElementId | inPartHolderId | Identifier of the part holder.  | 
      
Remarks
StartModification(String, Boolean) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.15.400.100.