Hi
Can we use for loop or foreach commands after "OR" command in tvf?
Example:
I want to implement below svrf command using tvf.
MYOBJ = OR M0_DRW M1_DRW M2_DRW M3_DRW
I have tried below tvf commands for the same. But it is not accepting.
tvf::SETLAYER MYOBJ = OR for {set i 0} {$i<=3} {incr i} { M{$i}_DRW }
tvf::SETLAYER MYOBJ = OR foreach {i} [list 0 1 2 3] { M{$i}_DRW }
Can we implement this scenario using the loops?
Thanks and regards
Pulakanti Sandeep
Hi Pulakanti-
I can't find any examples that embed Tcl in a TVF argument list, so not sure that will work, but the other thing I see is that the double quotes are missing. The SVRF manual shows this in "Runtime TVF Example":
Generally, the Tcl operations such as for or foreach are performed outside of the TVF. The TVF commands then use the variable which received the value from the loop. For yours, have you tried creating a string MYOBJ that equals "M0_DRW M1_DRW M2_DRW M3_DRW" and passing that? For example,
-Sam.