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: 

Add a custom Workspace

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
StephenCim-001
573 Views, 3 Replies

Add a custom Workspace

Hi All

 

I've been working through the training material at udemy.com , which is helping heaps,

They show how to add elements to an exisiting WorkSpace, but I would like to create a new Workspace.

 

Can some please show me an example on how to add a Workspace 🙂

 

Cheers, Stephen

3 REPLIES 3
Message 2 of 4
goyals
in reply to: StephenCim-001
Message 3 of 4
StephenCim-001
in reply to: goyals

I found that , but am lost at what to enter has the productType

returnValue = workspaces_var.add(productType, id, name, resourceFolder)

 

I thought I'll try this:

app = adsk.core.Application.get()

design = app.activeProduct
AQJProductType = design.productType
ui = app.userInterface
AQJWorkSpaces = ui.workspaces
# returnValue = workspaces_var.add(productType, id, name, resourceFolder)
AQJWorkSpace = AQJWorkSpaces.add('AQJProductType', 'AQJWS01', 'AQJ Tools', 'resources' )

 

But I get a productType does not exist error.

 

Cheers, Stephen

Message 4 of 4

Sorry , my bad.

 

I don't want to add another Workspace, I need to add another ToolBarPanel to the Design Workspace.

 

😞

 

 

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