Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check if data panel is opening

1 REPLY 1
Reply
Message 1 of 2
j.han97
110 Views, 1 Reply

Check if data panel is opening

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!

1 REPLY 1
Message 2 of 2
j.han97
in reply to: j.han97

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 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report