Other available PyFlux commands
Introduction
There are additional commands available to the user that are not accessible by recopying a sequence of PyFlux.
Commands
The available commands are as follows:
- startMacroTransaction() / endMacroTransaction()
- getProjectName()
- [ALL]
- getHelp()
- getPyFluxCommande()
These commands are described in the next sections.
startMacroTransaction()/endMacroTransaction()
The description and applications of this command are explained in the table below.
Commands | startMacroTransaction() / endMacroTransaction() |
---|---|
Function | Permits the regrouping of a set of commands in a block. |
Use |
|
Example : Pyflux sequence |
Creation of a triangle :
|
Example : note | The commands are evaluated and the graphics refreshed at the end of the sequence, permitting the acceleration of the process. |
getProject Name()
The description and applications of this command are explained in the table below.
Commands | getProjectName() |
---|---|
Function | Permits the recovery of the name of the project open in Flux |
Use | Name= getProjectName() permits the storage of the project name in the ‘Name'variable |
Example : PyFlux sequence |
Display of the Flux project name in a file :
|
[ALL]
The description and applications of this command are explained in the table below.
Commands | [ALL] |
---|---|
Function | Creates a the list of all entities of the same type which facilitates the storage of this list in a ‘Flux variable' |
Use | Points = Point[ALL] creates a list of all entities of the point type and enables the storage of this list in the « Points » variables. |
Reminder / Comparison |
The command List_instance(typeId='Point')* results in the display of all entities of the point type displayed in the History zone. * syntax equivalent to the command List described under § § 5.3.2 Informations sur les entités : Afficher l'expression Pyflux, Lister, et Utiliser par.. |
Example : PyFlux sequence |
Display of a detailed list of entities belonging to the same entity type in a file:
|
Example : result |
Content of the created file:
|
getHelp()
The description and applications of this command are explained in the table below.
Commands | getHelp() |
---|---|
Function |
Permits to stor the help text dealing with an entity type in a « Flux variable ». |
Use | Point = Point.getHelp() retrieves the syntax describing the « Point » entity type in order to support storage in the « Point » variable. |
Reminder / Comparison | The command Point.help() permits the display of the support storage of the Point entity in the history zone. |
Example : PyFlux sequence |
Display of support related to an entity type in a file:
|
Example : result | File created comprising all of the supporting Pyflux command syntax associated with the « Point. » entity type. |
getPyFlux Command()
The description and applications of this command are explained in the table below.
Command | getPyFluxCommand() |
---|---|
Function | Permits the storage of ann entity in a « Flux variable ». |
Use | P1=Point[1]. getPyFluxCommand() permits the storage of the Point[1] entity in the « P1 » variable |
Reminder / Comparison | The command Point[1]. type() permits the display of the entity Point[1] in the history zone |
Example : PyFlux sequence |
Display of an entity in a file:
|
Example : result |
Content of created file:
|