Class to run the automatic features recognition and the machining of the features.
More...
Inherits QObject.
Class to run the automatic features recognition and the machining of the features.
var err = reco.
Launch('c:/my_folder/my_config.inifeat')
if (err == GO2SError.success)
GO2SEnum::GO2SError Launch(String settingsFile)
void SetPart(GO2SSolidGeometry solid)
Set the solid to analyze.
Number GetNbFeatures() noexcept
GO2SFeaturesRecognition()
Default constructor.
String GetResultsLog()
Definition GO2SFeaturesRecognition.hpp:58
Class for utilitary methods of geometric entities.
Definition GO2SGeometryUtil.hpp:16
static void SetUsedPlane(Number newPlane=-1)
Definition GO2SGeometryUtil.hpp:189
static Array< GO2SGeometry > GetByName(String p1)
- Warning
- this class needs the GMF (General Manufacturing Features) module activated on your licence
- Version
- 2027
◆ GetNbFeatures()
| Number GO2SFeaturesRecognition::GetNbFeatures |
( |
| ) |
|
|
noexcept |
- Returns
- the number of features recognized by the last Launch() call
◆ GetResultsLog()
| String GO2SFeaturesRecognition::GetResultsLog |
( |
| ) |
|
|
inline |
Get what happened during the last Launch() call: the number of recognized features, and the reason why the recognition or the machining could not be completed.
- Returns
- the report of the last Launch() call, one message per line
◆ Launch()
Recognize the features of the part and machine them.
The settings file drives the whole recognition: only the typologies listed in it are recognized, each with the opelist linked.
Such a file can be produced by the "Save configuration" button of the features auto recognition dialog box, and uses the .inifeat extension. Once the features are created and their opelists affected, the machining operations are executed.
- Returns
- GO2SError.success (0) if at least one machining process has been created, GO2SError.bad_parameters if the settings file is not found or incorrect, GO2SError.exec_failed if no feature or no machining could be computed
- Parameters
-
| [in] | settingsFile | absolute path of the settings file |
◆ SetPart()
Set the solid to analyze.
- Parameters
-
| [in] | solid | the solid to analyze |