Replies: 1 comment
-
Found the solution myself: from RFEM.enums import ObjectTypes
def _get_max_obj_nr(obj_type:ObjectTypes) -> int:
nrs = GetObjectNumbersByType(obj_type)
nrs_arr = np.array(nrs).flatten()
if not nrs_arr.size == 0:
return int(max(nrs_arr)) + 1
return 1
node_no_start = _get_max_obj_nr(ObjectTypes.E_OBJECT_TYPE_NODE) Sometimes the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to create several lines for my polygons via a for-loop. Is it possible to automatically find free node numbers for my “OFFSET” variable? For example, by checking all the node numbers already assigned in my model? Is there a more elegant way?
Reduced example code:
My own created polygon class can be found here.
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions