Add menu item to Flat pattern modify panel?

Add menu item to Flat pattern modify panel?

thomasa88
Advocate Advocate
188 Views
2 Replies
Message 1 of 3

Add menu item to Flat pattern modify panel?

thomasa88
Advocate
Advocate

Is there any way to add a command to the flat pattern modify panel?

 

I have looked at UI interface dumps and I cannot seem to find the panel.

 

This seems to be a related problem: https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/add-in-not-shown-in-quot-flat-pattern-qu...

0 Likes
Accepted solutions (1)
189 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

Something is weird here, but I think I found a solution for your specific issue. I believe the following code will return the "FLAT PATTERN SOLID" tab, where you'll find the expected tabs and should be able to add your commands.

flatTab = ui.allToolbarTabs.itemById('FlatPatternSolidTab') 

 

The weird thing is that I can't figure out which workspace that tab belongs to. It doesn't really matter because we can access it directly instead of going through the workspace, but it's not working like I expected.

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

thomasa88
Advocate
Advocate

That works, thank you!

 

I ended up with these two lines:

 

ui.allToolbarTabs.itemById('FlatPatternSolidTab').toolbarPanels.itemById('SolidModifyPanel')

ui.allToolbarTabs.itemById('FlatPatternSurfaceTab').toolbarPanels.itemById('SurfaceModifyPanel')
0 Likes