Find what sheet a text element is placed on (and then hide it in view)

Hello All,

I have a series of annotation mark up texts that I want to temporarily hide on sheets while we print them.

I have completed the first step, I have collected the Elements (and ID’s) of all the text elements I want to hide.

The next step would be to find what sheet is hosting these text elements and then I would want to be able to either hide or unhide these elements on that sheet. I am a bit stuck as to how to find the hosting sheet of this text using the API (im in python).

Thankyou

You should get the OwnerViewId which will tell you what View they live in, in this case sounds like a Sheet. Then you can Hide them as needed.

https://www.revitapidocs.com/2015/174c1adf-0be8-a4b0-41f3-9e3ea1d6b1f1.htm

1 Like