418x
005369
2023-03-23

User-Defined Parameters for Methods of Python High Level Library

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


Answer:

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

http://localhost:8082/wsdl

This shows the definition of the entire API as XML (see also WSDL https://en.wikipedia.org/wiki/Web_Services_Description_Language).

A pragmatic way to determine the parameters is, for example, to first compile the desired material in RFEM, 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.


Author

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