GO2cam Javascript API  6.11
GO2SCycle Class Reference

Class to manage machining cycle. More...

Inheritance diagram for GO2SCycle:
GO2SCycleBase GO2SMachining

Public Member Functions

any GetParam (Number key, Number device=0) override
 
GO2STool GetTool ()
 
void ReplaceTool (GO2STool tool)
 
GO2SEnum::GO2SError SetParam (Number key, any value, Number device=0) override
 
- Public Member Functions inherited from GO2SCycleBase
GO2SEnum::GO2SError AddToFolder (String name)
 
void Delete ()
 Delete a cycle/techno function.
 
String GetName ()
 
Boolean IsBatch ()
 
Boolean IsError ()
 
Boolean IsHidden ()
 
Boolean IsSelect ()
 
void SetBatch (Boolean isBatch)
 
void SetName (String name)
 Set the name of the cycle/techno function.
 
void SetSelect (Boolean isSelected)
 
String toString () override
 
- Public Member Functions inherited from GO2SMachining
Array< String > GetEditableParams ()
 
any GetParam (Number key, Number noDevice=0)
 
Boolean IsParamEditable (Number key)
 
GO2SEnum::GO2SError SetParam (Number key, any value, Number noDevice=0)
 

Detailed Description

Class to manage machining cycle.

Member Function Documentation

◆ GetTool()

GO2STool GO2SCycle::GetTool ( )
inline

Get the tool of the cycle

Returns
a copy of the tool used by the cycle

◆ ReplaceTool()

void GO2SCycle::ReplaceTool ( GO2STool tool)

Update the tool cycle's

var tool = GO2SMachiningUtil.LoadTool(type, "F45AD D125-40");
tool.SetParam(REAL_TOOL_INSCRIBED_CIRCLE_DIAMETER, 25)
cycle.ReplaceTool(tool)
Class of machining utility methodes.
Definition GO2SMachiningUtil.hpp:19