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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Venkyvenkat, was Aldo Martin del Campo 's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

1 Like 1 ·

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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

Also check if the z-position of the grid is set to 0.5. That would also cause all objects to be placed at that height initially.

capture1.png

2 Likes 2 ·
capture1.png (5.4 KiB)