It looks like you're new here. If you want to get involved, click one of these buttons!
Sorry to bother you again, I'm trying to extract text coordinate from a database, however encountered the transformation issue and have no idea how to solve it, could you please help to check where I made mistakes? thanks.
The partial codes:
(0..(layout.cells-1)).each do |ci| cell = layout.cell(ci) cell.shapes(l1).each do |shape| text = shape.text #position = text.trans.trans(text.trans.disp)*layout.dbu position = (text.trans.disp)*layout.dbu printf("%s (%.3f,%.3f)\n", text.string, position.x, position.y) end end
If I use the marked code, it would transfer the coordinate to a strange value.
If I use current code, it would show the coordinates of all texts with the same result.