question

Venkyvenkat avatar image
0 Likes"
Venkyvenkat asked Jeanette F commented

Change default x,y,z location of object when drag and drop object from library

Hi all, when I'm trying to drag and drop object from the library it's default z position sets as 0.5 changing manually 0.5 to 0 is ok for one or two objects if I'm placing more objects I have to set z position to 0 which takes lot of time. Can any one tell me how to set default z position to 0. Thanks in advance

FlexSim 24.2.2
utilizationthroughputmaterial flow
· 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

Aldo Martin del Campo avatar image
0 Likes"
Aldo Martin del Campo answered Felix Möhlmann commented

First, you need to check that you are not overlapping with another object that is at Z = 0.5. Normally, the objects you add should be set at height 0. What you can do is place all the objects you want to set at Z = 0, let's say in Group1. Then, go to the script, write the following, and run it. Automatically, everything should be set to the height specified in the variable 'height'.

"Group Group1=Group("Group1");

double height=0;

for(int i=1; i<=Group1.lenght; i++)

{

Group1[i].location.z=height;

}

· 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.