question

David Seo avatar image
0 Likes"
David Seo asked David Seo commented

About assert() command like Object.labels.assert("aName").value = aValue;

I want to make a Label and set the value in the object using script.

I remembered the assert() command to make it, but it did not make the label and set.

What command can I do it as?

Choose One
FlexSim 17.0.4
assert commandhow to make the label using script
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered David Seo commented

That should be working. Are you getting any errors?

The assert method also takes a second parameter where you can specify the default value for the asserted node. So if the node doesn't exist it will add it and set the value to the specified default value.

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

David Seo avatar image David Seo commented ·

Any errors do not happen.

I found when click reset the created label also disappear.

I have known the created label using script exists after once after creation.

I checked it to disappear when resetting.

Thank you.

0 Likes 0 ·