Is it possible to write the names of all the objects, like conveyors, single procs etc to a table file. In a model there quite a large number of conveyors and hence to validate that the speeds and quantity are rightly defined looking for this option.
Thanks in advance for the suggestions.
Frame.numNodes gives you the number of objects in a frame. You then have to program a for loop over all nodes:
local numberOfNodes := frame.numNodes;
for local i := 1 to numberOfNodes loop
local obj := fram,e.node(i);
-- here add your code
you can then check the internalClassName of obj to determine the type of the object. If the internalClassName="Line" the the object is a conveyor.
If you have a hierachical model with conveyors in sub-frames, you can check for internalClassName="Network" and call the Method recursively in this case:
(frame: object) is do for local i := 1 to frame.numNodes loop local obj := frame.node(i); inspect obj.internalClassName when "Line" then -- add your code here when "Network" then self.execute(obj) end; next; end;