I have a script that walk inside the design and list every component. How can i retrieve the name of the sheet for every component? (for flat and hierarchical design?)
if scomp is a design component (viewdraw component), you can use
to get the sheet number. Unless you are adding a sheet name property to the sheet block, then as far as I know there is not a separate sheet name, just a sheet number.