question

Kari Payton avatar image
0 Likes"
Kari Payton asked Matthew Gillespie edited

Does FlexSim calculate floor utilization?

Am I able to calculate the how much space objects are using on the model floor using FlexSim?

FlexSim 17.1.3
floor plansfloor utilization
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jacob Gillespie avatar image
8 Likes"
Jacob Gillespie answered Matthew Gillespie edited

This script would give you the aproximate area taken up by the objects in your model:

double area = 0;
var objects = model().subnodes;
for(int i = 3; i <= objects.length; i++) {
	area += objects[i].as(Object).size.x * objects[i].as(Object).size.y;
}
return area;
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Kari Payton avatar image Kari Payton commented ·

Thanks @Jacob Gillespie! Is there a way to make that specific to certain types of objects? For example only include objects that say "Mold1, Mold2, Mold3...etc". If not that's ok. I can save multiple copies of the models and then delete what I don't want to be included in the area.

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ Kari Payton commented ·

@Kari Payton Sure you could just add a name check.

double area = 0;
var objects = model().subnodes;
for(int i = 3; i <= objects.length; i++) {
	Object obj = objects[i];
	if(obj.name.includes("Mold"))
		area += obj.size.x * obj.size.y;
}
return area;
1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.