SDK
Features

Functions

int SPI_FEAT_append_feature_pocket (const std::string &dirName, const std::string &fileName, int planeNb, double depth, double slopeAngle, double bottomRadius)
 Creates a pocket feature from a XML file describing the feature profile.
 
int SPI_FEAT_affect_feature_opelist (const std::string &oplDir, const std::string &oplName, int indfeat)
 Affect an opelist to a feature.
 

Detailed Description

Features functions

Function Documentation

◆ SPI_FEAT_affect_feature_opelist()

int SPI_FEAT_affect_feature_opelist ( const std::string & oplDir,
const std::string & oplName,
int indfeat )

Affect an opelist to a feature.

Version
6.10
Parameters
[in]oplDirfolder of the OPL file
[in]oplNamename of the OPL file
[in]indfeatfeature index
Returns
SPI_YES / SPI_NO
Remarks
If oplDir is a relative path, it should be relative to the Opelist folder of GO2cam. Consequently, if the file is inside this Opelist folder, oplDir can be null.
See also
SPI_FEAT_append_feature_pocket

◆ SPI_FEAT_append_feature_pocket()

int SPI_FEAT_append_feature_pocket ( const std::string & dirName,
const std::string & fileName,
int planeNb,
double depth,
double slopeAngle,
double bottomRadius )

Creates a pocket feature from a XML file describing the feature profile.

Version
6.10
Parameters
[in]dirNamefolder of the XML file
[in]fileNamename of the XML file
[in]planeNbplane number
[in]depthdepth of the feature
[in]slopeAngleside taper angle (in degrees)
[in]bottomRadiusbottom radius of the feature
Returns
Number of the feature created ( correct > 0, MAXELT => error )
EXAMPLE XML
<?xml version="1.0" encoding="UTF-8"?>
<GO2cam_DefineFormTool>
<Definition GO2cam="6.10.200" Unit="mm"/>
<Profile>
<Element Cut="YES" Type="LINE" xs="5" ys="0" xe="95" ye="0"/>
<Element Cut="YES" Type="ARC" xs="95" ys="0" xe="100" ye="5" xc="95" yc="5" Way="CCW"/>
<Element Cut="YES" Type="LINE" xs="100" ys="5" xe="100" ye="45"/>
<Element Cut="YES" Type="ARC" xs="100" ys="45" xe="95" ye="50" xc="95" yc="45" Way="CCW"/>
<Element Cut="YES" Type="LINE" xs="95" ys="50" xe="5" ye="50"/>
<Element Cut="YES" Type="ARC" xs="5" ys="50" xe="0" ye="45" xc="5" yc="45" Way="CCW"/>
<Element Cut="YES" Type="LINE" xs="0" ys="45" xe="0" ye="5"/>
<Element Cut="YES" Type="ARC" xs="0" ys="5" xe="5" ye="0" xc="5" yc="5" Way="CCW"/>
</Profile>
</GO2cam_DefineFormTool>