question

Sebastian Hemmann avatar image
1 Like"
Sebastian Hemmann asked Phil BoBo edited

Why conveyor.size.y returns the half of the y size of a conveyor?

I´ve tryed to figure out why the method .size.y returns the half of the Conveyors width but the full size of all other objects.

FlexSim 17.0.2
conveyortranslate item.size.y
· 1
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

Phil BoBo avatar image
3 Likes"
Phil BoBo answered Phil BoBo edited

.size.y returns the value of the spatialsy attribute of the conveyor. Conveyors set that value to half of their width. Their spatialy attribute is set to the center of the conveyor's starting point. This is how the conveyor's spatial values were purposefully designed.

In 17.1, we added a Conveyor class that has a width property where you can access the conveyor's width directly:

  1. Conveyor conveyor = model().find("Conveyor1");
  2. return conveyor.width;

5 |100000

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