question

ksugai avatar image
0 Likes"
ksugai asked Jason Lightfoot answered

Automatic reset of path labels not working

Automatically reset path label.fsm

In the model, automatical reset in path properties is checked and the RouteCost label is set to 1.

However, the label value does not return to 1 when I reset the model.

FlexSim 24.1.0
pathlabels automatically reset
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

Thanks for pointing this out - it looks like an oversight and we'll add a case for it.

In the meantime if you have to do this you could set the values in your own reset node here:

1720521307101.png

using this code:

Object current=c;
treenode labelreset=current.attrs["labelreset"];
treenode n;
forobjectlayerunder(labelreset){
    n=a;
    current.labels[n.name].value=n.value;
}
inheritcode();



1720521307101.png (5.0 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.