question

Niket M avatar image
0 Likes"
Niket M asked Ryan Clark commented

How to mass update process condition for stations in model?

I want to make all the process conditions as blank on for all the stations I have in the model. I can write a for loop to change station's state but what is the variable to update the "process condition" of stations? My actual issue is that I am not able to change the station state from process flow if this "process condition" is marked as "always process". I have already created 63 stations like this so I cannot go back into each and change it individually.


1632498860624.png

FlexSim 21.2.2
process condition
1632498860624.png (112.1 KiB)
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

Ryan Clark avatar image
0 Likes"
Ryan Clark answered Ryan Clark commented

Hello @Niket M,

If you want to use a for loop to update the process condition of the stations, then the code shown below allows you to access that variable:

  1. Object station = Model.find("Station1");
  2. station.setProperty("ProcessCondition", 0);

You could use this within a for loop to update the Property for all of the stations.

Another solution is to go to the Group("Stations") that is automatically created for Conveyor objects and select all of the stations there, then click on one and change its Process Condition setting to blank. In your version of FlexSim, this should update all of the selected objects as well.

I hope this helps! Let us know if you have further questions!

· 4
5 |100000

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

Niket M avatar image Niket M commented ·

Thanks @Ryan Clark. I am not able to follow the second solution.


You said select all the objects inside the group like below, and go to one station from the group and make the 'process condition' blank. Should I go to the station in the model tree or the 3D space? I tried both and it didn't work. 1632503184372.png


1632503424321.png


I think I am missing something. Can you share more details?

0 Likes 0 ·
1632503184372.png (1.1 MiB)
1632503424321.png (1.8 MiB)
Ryan Clark avatar image Ryan Clark Niket M commented ·
Hi @Niket M,

The process you followed is mostly correct, but I neglected to mention one step. After you select all of the items in the group window, click the icon in the upper right corner of that window (the cube with the red outline). This will select all of the associated 3D objects in the model. Then, you can change the Process Condition on one of the Stations, and it should update all of them since they are now all selected in the model.

I hope this helps clarify things! Let us know if you have further questions!

0 Likes 0 ·
Niket M avatar image Niket M Ryan Clark commented ·
This is amazing! I didn't realize that I could select all the objects the group. Soo powerful! Thanks a ton @Ryan Clark
1 Like 1 ·
Show more comments