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.

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

Interesting. It could be that this is unintended or there may be a reason for it, I'll ask the developers if they are aware of this. I suppose for now, just take the half size into consideration for your model.

0 Likes 0 ·

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:

Conveyor conveyor = model().find("Conveyor1");
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.