Check if data panel is opening

Check if data panel is opening

j.han97
Advocate Advocate
331 Views
1 Reply
Message 1 of 2

Check if data panel is opening

j.han97
Advocate
Advocate

Hi all,

 

This might be an easy question but I cannot find the right function to achieve my objective. In short, I want to know if the data panel on the side is active (opened/showed). If true, it will be closed.

 

I am able to close it using respective command definitions. The part I'm struggling with is the API to check the states of the data panel.

 

Thank you all!

0 Likes
332 Views
1 Reply
Reply (1)
Message 2 of 2

j.han97
Advocate
Advocate

Ok, I actually found the corresponding function right after I posted this. For others who are searching for this as well:

app = adsk.core.Application.get()
app.data.isDataPanelVisible # <-- Returns boolean that indicates the state of data panel