Good day,
For my API program, it would be particularly practical if I could code line loads that refer to the local coordinate system of the line. In the API manual, I found the following command:

So initially, I wanted to code the following in my main program:
RFEM.loads.LineLoad(
no=5,
load_case=LC_counter,
lines=[1826, 1825],
magnitude = Vz_lineforce,
load_type=rfem.loads.LineLoad.LOAD_TYPE_FORCE,
load_distribution=rfem.loads.LineLoad.LOAD_DISTRIBUTION_UNIFORM,
load_direction=rfem.loads.LineLoad.LOAD_DIRECTION_LOCAL_Z,
),

Unfortunately, the code breaks after creating an “incorrect line load that refers to the global coordinate system” with the following error message:

I then tried the whole thing again in a test file with less complex programming code; here is the code:
RFEM.loads.LineLoad(
no=1,
load_case=4,
lines=[1],
magnitude = 10,
load_type=rfem.loads.LineLoad.LOAD_TYPE_FORCE,
load_distribution=rfem.loads.LineLoad.LOAD_DISTRIBUTION_UNIFORM,
load_direction=rfem.loads.LineLoad.LOAD_DIRECTION_LOCAL_Z,
)

What is interesting here is that no warnings appear in the terminal, but the generated loads are also incorrect and refer to the global coordinate system instead of the desired local Z-direction.
I would be very pleased to receive feedback on how to deal with this issue.
Best regards,
Nick Böttcher




