cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Counter in objects group and time tables

Counter in objects group and time tables

I found out it would be helpful and faster to have a count of selected items, (similar to what we see in Excel as count of selected cells feature) for Timetables and Object Groups, as I've shown below. When there is so many members in groups or timetables and just want to do a quick check, having this count would make things faster and less likely to mistake the count. Not sure though if anyone else knows a quicker way to do the counting of members.

 

1711655900445.png

4 Comments

In a script console you can get the number of objects in a group with

Group("Group1").length

For the group you can use a script window to evaluate the expression:

Group("CleanASCMFG_Operators2").length

for the timetable its a little more complex:

node(">variables/members",Tools.get("TimeTable","ShiftAB_Combined_ALL")).subnodes.length

You may be able to better manage the members through the use of parameters (that change the number of members) or templates (that ensure instances are also added to the group/timetable) removing the need to do what seems to be a check of a manual member adding process.

maryamh11
Advocate

great, it's much faster - thanks!

I saw models using parameter table to create members, one problem I had with that was the placement of operators in the floor plan. can we designate the reset location of operators in the model if using parametrs table (in a room or zone)? and also keeping a pointer label on each operators uniquely so they walk to a specific spot in a room after gowning process - i didn't try how i can do that in process flow yet.

You could store the spawn and room positions (array of 3 values) in a array or table and use that to look up locations to position when created to add labels for later referral.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea