Am I able to calculate the how much space objects are using on the model floor using FlexSim?
Am I able to calculate the how much space objects are using on the model floor using FlexSim?
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;
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.
@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;
7 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved