Cancel
Showing results for 
Search instead for 
Did you mean: 

Object attribute as parameter

Experimenter
Experimenter

Hi everybody, 

I am trying to set an object attribute as a variable i enter in my root frame. For example, i have a variable called BufferCapacity=10 in my root frame, and i have a materialFlow object called buffer. I want to set the buffer capacity to " BufferCapacity" , but plant simulation only allows me to enter numbers. 

 

Is there anyway to achieve this? 

 

thanks in advance. 

ps. sorry if this is a stupid question, i am new to plant simulation. 

1 REPLY

Re: Object attribute as parameter

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
your bufferCapacity variable must have the data type integer, then you can set the capacity of the buffer with:

buffer.capacity:=BufferCapacity
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net