question

Tomi Kosunen avatar image
0 Likes"
Tomi Kosunen asked Jason Lightfoot edited

Wall segments not following the Pillars

The Wall segments are not following, while the Pillars are moved (only the Pillars are moved). I suppose, the locations/view must be updated somehow. What is the command?

treenode walls = Model.find("Walls").find(">visual/drawsurrogate");

for (int i = 1; i<=walls.subnodes.length; i++){

treenode theWall = walls.subnodes[i];

Object theWallObj = theWall.as(Object);

theWallObj.location.z = theWallObj.location.z - 10;

}

FlexSim 21.1.0
flexsim 21.1.0
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

We don't advise using function_s in models but this should work for now. Consider putting it in your own user command, so that if it changes in the future (as it may) you can update it in one place.

treenode walls = Model.find("Walls");
function_s(walls,"setWallsDirty");
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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