🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to found out the Python expression of a Flux entity?

User: "Yann_Le_Floch"
Altair Employee
Updated by Yann_Le_Floch

Each entity (geometric, mesh, physics, electric, curves, parameters...) created in Flux has an associated python command. In order to found out the syntax of the python expressions, there are five possible methods presented in the table below:

1Recover the syntax in a command file (.py file). It could be the .py file that saves all Flux commands when the Flux program running or another command file (ex. python files of macros)
2Recover the syntax in the Echo zone. Once the command has been activated you can directly recover the syntax in the Echo zone
3

Activate the entity command Display Pyflux command. For that, right click on the entity in the data tree Example : Display the python command of the entity Point[1]

image

4Apply the Python type() method to the entity (Command zone) Example: Point[1].type().
5Apply the python help() method to the entity (Command zone) Example : Point.help()