611x
005369
2023-06-30

User-Defined Parameters for Methods of Python High Level Library

I need to use custom parameters for the Python High Level Library methods for RFEM 6 in my Python program. How can I determine the necessary parameters?


Answer:

There is an option to call up this URL while RFEM 6 is running:

Thus, the definition of the entire API is displayed as XML. See also:

A pragmatic way to determine the parameters is, for example, to first compile the desired material in RFEM 6, and then read out the properties. The following program shows the procedure:

from RFEM.initModel import *

Model(True, 'Material.rf6')
Model.clientModel.service.begin_modification()

m = Model.clientModel.service.get_material (1)
print(m)

Model.clientModel.service.finish_modification()
Model.clientModel.service.close_connection ()

This method can be used for all objects in RFEM 6.


Author

Mr. Faulstich is responsible for the quality assurance of the RFEM program and provides customer support.



;