05-08-2015 09:52 AM
Hello all,
I'm coming around with a near-weekend-problem.
I would like to create an object in a sub-assembly. This should be done by referencing the sub-assembly by its name. The names of sub-assemblies are stored in a table (in the first column).
I'm currently thinking of a loop likely to this one:
for i := 1 to table.ydim loop
.Materialflow.Singleproc.createObject(.Models.Network.%NAME FROM TABLE%, 20, 20)
next;
That sort of doesn't work. Is there a way to use strings as arguments in the createObject method?
Thanks already for reading
Tim
Solved! Go to Solution.
05-08-2015 09:55 AM
Hi Tim,
you can use the following syntax:
.Materialflow.Singleproc.createObject(.Models.Network.extendPath("Test"), 20, 20)
Regards,
Ralf
05-08-2015 10:02 AM
Wonderful, thanks a lot.