SDK
Features

Fonctions

int SPI_FEAT_append_feature_pocket (const std::string &dirName, const std::string &fileName, int planeNb, double depth, double slopeAngle, double bottomRadius)
 Crée un feature poche à partir d'un fichier XML décrivant le profil du feature.
 
int SPI_FEAT_affect_feature_opelist (const std::string &oplDir, const std::string &oplName, int indfeat)
 Affectation d'une opelist à un feature.
 

Description détaillée

Fonctions features

Documentation des fonctions

◆ SPI_FEAT_affect_feature_opelist()

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

Affectation d'une opelist à un feature.

Version
6.10
Paramètres
[in]oplDirrépertoire du fichier OPL
[in]oplNamenom du fichier OPL
[in]indfeatindice du feature
Renvoie
SPI_YES / SPI_NO
Remarques
Si oplDir est un chemin relatif, il doit être relatif au répertoire Opelist de GO2cam. Par conséquent, si le fichier est dans ce dossier Opelist, oplDir peut être vide.
Voir également
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 )

Crée un feature poche à partir d'un fichier XML décrivant le profil du feature.

Version
6.10
Paramètres
[in]dirNamerépertoire du fichier XML
[in]fileNamenom du fichier XML
[in]planeNbnuméro de plan
[in]depthprofondeur du feature
[in]slopeAngleangle de dépouille (en degres)
[in]bottomRadiusrayon du fond du feature
Renvoie
Numéro du feature créé ( correct > 0, MAXELT => erreur )
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>