question

Shawn D avatar image
0 Likes"
Shawn D asked Joerg Vogel answered

How to scale container?

I understand why this is happening. I don't know how to scale the container to get the bottom of container to match the floor of container, to get the pallet to portray they are sitting on the floor of container. I understand there is other similar question and answers like this but i can't find them at this point.

FlexSim 17.1.2
visual
flexsim.png (385.4 KiB)
· 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 ·

If you can get a reference to the floor of the container, all you need to do is call the setsize command.

Example (if you have a pallet object)

pallet.setSize(containerFloor.size.x, containerFloor.size.y, 2);

This would set the pallet object's x and y size lengths to the containerFloor object's lengths, and it's height to 2.

Is this what you're looking for?

Is something like this what you're looking for?

EDIT:

Sorry I misunderstood, I thought you meant to scale the pallet to the floor. But if you're talking positioning, I think it should work similarly as well.

Just use pallet.setLocation(x,y,z) instead.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

This looks like a mismatching position of the shape.

Object properties -> General tab -> Edit Button in the field Shape Factors. You see a matrix similar to the object location rotation and size. Important is that you fill the size values before you close the matrix by clicking somewhere else in the Properties window, otherwise the shape disappears at all. You can begin with entering 1 into each size parameter field (bottom row). Then you enter values concerning the location of the shape. The value is evaluated in the moment you place the cursor into another parameter field of the matrix.

The shape is visual element of an object. It is relative to the size of the object. If you change the object size the shape size increases / decreases relative to changed object size value.

The shape can be larger or smaller than the dimensions of the object.

5 |100000

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