Clear TEXT COMMANDS box via API

Clear TEXT COMMANDS box via API

Fliegende-Rehe
Contributor Contributor
1,155 Views
4 Replies
Message 1 of 5

Clear TEXT COMMANDS box via API

Fliegende-Rehe
Contributor
Contributor

I dont realy like ui.messageBox so I log everything in TEXT COMMANDS box. Is there any way to clear box via Fusion API like Ctrl+x works? 

FliegendeRehe_1-1705928612546.png

 

0 Likes
Accepted solutions (2)
1,156 Views
4 Replies
Replies (4)
Message 2 of 5

kandennti
Mentor
Mentor
Accepted solution

Hi @Fliegende-Rehe -San.

 

Try this.

 

app.log(app.executeTextCommand(u'window.Clear'))

 

 

Message 3 of 5

Fliegende-Rehe
Contributor
Contributor

Thank it works for me. Also I want to ask, can hide or show ViewCube same way?

0 Likes
Message 4 of 5

BrianEkins
Mentor
Mentor
Accepted solution

There are commands that will hide or show the view cube and you can execute any command using the API.

 

cmdDef = ui.commandDefinitions.itemById('HideViewCubeCommand')
cmdDef.execute()

 

This command can be used to show the view cube: ShowViewCubeCommand

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 5 of 5

Fliegende-Rehe
Contributor
Contributor

Hi, thanks for the help, I found all the commands I needed, except for the hidden comments. Is there any way to hide it? This is the only commands I find in full list.

0 Likes