What sheet is my component on in a schedule

Hi I have managed to get this to somewhat work by finding a similar script and somewhat butchering it

I can get the element to reference what drawing its on but I’m limited to a maximum number of elements its does this for, seems to be linked to the number of viewports in the sheets 13 viewports, 13 elements it works on. I think I’ve got as far as I can (this is my first attempt at dynamo) if someone can give me a nudge in the right direction it would be very helpful

1 Like