Hello,
I want to define a line hinge that is assigned to multiple lines of a surface. The respective surfaces and lines should be selectable with variables.
A "static" input works well with the following code:
Line hinge no. 1
Surface no. 10
Lines no. 33, 34
rfem_app.create_object(
rfem.types_for_lines.LineHinge(
no=1,
assigned_to="10/33, 34",
translational_release_u_x=inf,
translational_release_u_y=inf,
)
)
Depending on the input parameters, there are different lines on a surface that I want to assign a line hinge to. How can an input with variables be done?
The "assigned_to" requires a string input, but I can't manage to create a valid usable string.
I have tried, among other things, the following:
# Variable definition:
surface = 10
line = str([32, 33])[1:-1]
# Combined
surface_lines = f'\"{surface}/{line}\"'
Then used in the line hinge code:
assigned_to=surface_lines
A definition as a string also does not work.
assigned_to=str(surface_lines)
Is there a possibility?
I am working in RFEM 6.13.0001 and dlubal.api 2.13.1 on Windows
Thanks and best regards
Bert