question

Zach B3 avatar image
0 Likes"
Zach B3 asked Matthew Gillespie answered

Script to Trigger a Check Box in an Item's Property Menu

Hello, I have been trying to figure out how to trigger the spillage check box in a Fluid Conveyor's property menu using a line of script, but I cannot figure it out.

I have tried to use getvarnum(Model.find("FluidConveyor"), "allowspillage"); but I do not know how to set the check box to checked and unchecked using that line of script.

Thanks!

FlexSim 19.1.1
conveyorfluidfluid conveyorspillspillage
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
1 Like"
Matthew Gillespie answered
setvarnum(Model.find("FluidConveyor"), "allowspillage", 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.