How to get no. of currently selected element ? #25
-
Is it possible to get no. of currently selected member / object at RFEM ? For example, as on screen. I would like to get int "2". |
Beta Was this translation helpful? Give feedback.
Answered by
Rebecca-Coding21
Jun 30, 2023
Replies: 1 comment
-
Hi @LakuszJ, object_location[] selected_objects = get_all_selected_objects();
List<int> object_numbers = new List<int>();
foreach (object_location object in selected_objects)
{
object_numbers.Add(object.no);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rebecca-Coding21
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @LakuszJ,
you can use the function "get_all_selected_objects". The function returns an array of all selected objects. With help of a foreach-loop you can access each object in the array and get the no. of the objects: