GO2cam Pascal API
Geometry

Functions

void SPI_TOOL_draw_label_edm (int on, int full)
 Plots the labels of the erosion threading points.
 
void SPI_TOOL_draw_label_profile (int on)
 Plots the labels of the machining profiles.
 
int SPI_TOOL_free_list_elt ()
 Releases the list of elements.
 
int SPI_TOOL_geometry_3d (const std::string &toolDir, const std::string &subDir, const std::string &toolName, const std::string &dirName, const std::string &fileName, int toolType)
 Creates a 3D file of the tool geometry.
 
int SPI_TOOL_get_geometry_list_elt (int ind, double *elt, int *eltType)
 Reads a geometric element from the list.
 
int SPI_TOOL_import_GTC (const std::string &dirName, const std::string &fileName)
 import GTC package and convert it to GO2cam tools,symbols
 
int SPI_TOOL_init_list_elt (const std::string &toolFolder, const std::string &toolFileName, int toolType, int mode, int viewType)
 Reads the geometry of a tool.
 

Detailed Description

Tool Geometry

Function Documentation

◆ SPI_TOOL_draw_label_edm()

void SPI_TOOL_draw_label_edm ( int on,
int full )

Plots the labels of the erosion threading points.

Version
5.7
Parameters
[in]onenables or disables the plot
[in]fullfull information (profile name, diameter, X, Y)

◆ SPI_TOOL_draw_label_profile()

void SPI_TOOL_draw_label_profile ( int on)

Plots the labels of the machining profiles.

Version
6.02.202
Parameters
[in]onenables or disables the plot

◆ SPI_TOOL_free_list_elt()

int SPI_TOOL_free_list_elt ( )

Releases the list of elements.

Version
5.5
Returns
SPI_YES/SPI_NO
'VB example (cut and past)
'GO2cam must be started and a part with cycles and tools opened
dim Ierr as long
Ierr = GOE.SPI_TOOL_free_list_elt
{Pascal for GO2cam (cut and past)}
ierr := ICALL(SPI_TOOL_free_list_elt);
int SPI_TOOL_free_list_elt()
Releases the list of elements.
Definition sp_too02.c:282
See also
SPI_TOOL_init_list_elt,
SPI_TOOL_get_geometry_list_elt,

◆ SPI_TOOL_geometry_3d()

int SPI_TOOL_geometry_3d ( const std::string & toolDir,
const std::string & subDir,
const std::string & toolName,
const std::string & dirName,
const std::string & fileName,
int toolType )

Creates a 3D file of the tool geometry.

Parameters
[in]toolDirtool directory
[in]subDirtool sub directory
[in]toolNametool name
[in]dirNamedirectory of the 3D file to create
[in]fileNamename of the 3D file to create
[in]toolTypetool type
Returns
SPI_YES/SPI_NO
ier := ICALL(SPI_TOOL_geometry_3d,tooldir,toolname,"tmp","toto.u3d",100);
int SPI_TOOL_geometry_3d(const std::string &toolDir, const std::string &subDir, const std::string &toolName, const std::string &dirName, const std::string &fileName, int toolType)
Creates a 3D file of the tool geometry.
Definition sp_too02.c:241

◆ SPI_TOOL_get_geometry_list_elt()

int SPI_TOOL_get_geometry_list_elt ( int ind,
double * elt,
int * eltType )

Reads a geometric element from the list.

Version
5.5
Parameters
[in]indelement number
[out]eltTR9 canonical form of the element
[out]eltType2 = segment
3 = conter clockwise arc
-3 = clock wise arc
Returns
SPI_YES/SPI_NO
'VB exemple (cut and past)
'GO2cam must be started and a part with cycles and tools opened
dim Ierr as long
dim Idx as long
dim Coord(8) as Double 'array 0 to 8
dim type as Long
Ierr = GOE.SPI_TOOL_get_geometry_list_elt(Idx,Coord,type)
int SPI_TOOL_get_geometry_list_elt(int ind, double *elt, int *eltType)
Reads a geometric element from the list.
Definition sp_too02.c:180
{Pascal for GO2cam (cut and past)}
ierr := ICALL(SPI_TOOL_get_geometry_list_elt,Idx,Coord,type);
See also
SPI_TOOL_init_list_elt,
SPI_TOOL_free_list_elt

◆ SPI_TOOL_import_GTC()

int SPI_TOOL_import_GTC ( const std::string & dirName,
const std::string & fileName )

import GTC package and convert it to GO2cam tools,symbols

Version
6.09.200
Parameters
[in]dirNameFile directory
[in]fileNameFile name
Returns
SPI_YES/SPI_NO

◆ SPI_TOOL_init_list_elt()

int SPI_TOOL_init_list_elt ( const std::string & toolFolder,
const std::string & toolFileName,
int toolType,
int mode,
int viewType )

Reads the geometry of a tool.

Version
5.5
Parameters
[in]toolFoldertool folder
[in]toolFileNametool file name
[in]toolTypetool type
[in]modepart of the desired tool :
  • 0 = complete tool
  • 1 = cutting part only
  • 2 = holder
  • 3 = a holder
[in]viewType
  • 1 = front (milling)
  • 2 = side (milling)
  • 3 = top (lathe)
Returns
number of entities / 0 if nothing found
Remarks
Respect this order
INIT LIST
GET ELT
FREE LIST
'VB exemple (cut and past)
'GO2cam must be started and a part with cycles and tools opened
dim GOE as Object
dim Ierr as long
dim toolDir as String
dim toolName as String
dim toolType as Long
dim viewType as Long
set GO2 = CreateObject("GO2cam.applicationV6")
Ierr = GO2.SPI_TOOL_init_list_elt(toolDir,toolName,toolType,0,viewType)
int SPI_TOOL_init_list_elt(const std::string &toolFolder, const std::string &toolFileName, int toolType, int mode, int viewType)
Reads the geometry of a tool.
Definition sp_too02.c:62
{Pascal for GO2cam (copy and past)}
ierr := ICALL(SPI_TOOL_init_list_elt,toolDir,toolName,toolType,mode,viewType);
See also
SPI_TOOL_get_geometry_elt_list,
SPI_TOOL_free_list_list