#Create a script to put the location andorientation
set OUT [open placeInstance.tcl w]
#Create a script to select all the macros atthe same time for further use
set OUT1 [open selectInst.tcl w]
#Create a list of all the blocks' name.
set cellType [ dbGet [ dbGet -p2 top.insts.cell.baseClass block].name]
#Get the oriention and location of the macorsand write these information to the scripts ocreated before
foreach cell $cellType {
set cellName $cell
selectInst $cellName
set ori [lindex [dbGet selected.orient] ]
set pt_x [lindex [dbGet selected.pt_x] ]
set pt_y [lindex [dbGet selected.pt_y] ]
puts $OUT "placeInstance $cellName spt_x $pt_y $ori"
puts $OUT1 "selectInst $cellName"
deselectAll
close $OUT9
close $OUT1
通过上述脚本,将摆好的floorplan的位置生成一个placeInstance.tcl文件,然后可以将这个文件内容复制到flow中,这样最终的时候跑一个floor直接可以将这些位置摆出来了。