Add a custom Workspace

Add a custom Workspace

StephenCim-001
Advocate Advocate
942 Views
3 Replies
Message 1 of 4

Add a custom Workspace

StephenCim-001
Advocate
Advocate

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

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

goyals
Autodesk
Autodesk
0 Likes
Message 3 of 4

StephenCim-001
Advocate
Advocate

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

0 Likes
Message 4 of 4

StephenCim-001
Advocate
Advocate
Accepted solution

Sorry , my bad.

 

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

 

😞

 

 

0 Likes