[Bug] Palettes don't work in the Drawing workspace.

[Bug] Palettes don't work in the Drawing workspace.

JeromeBriot
Mentor Mentor
554 Views
3 Replies
Message 1 of 4

[Bug] Palettes don't work in the Drawing workspace.

JeromeBriot
Mentor
Mentor

Hello,

 

A palette created in the Design workspace keeps working in the other workspaces except in the Drawing workspace.

 

The palette disappears and its id seems to be lost.

 

I attached a small example.

 

Thank you.

 

 

 

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

JeromeBriot
Mentor
Mentor

Hello,

 

Here is a simpler example. Run the add-in and a hourglass icon should appear on the quick access toolbar on the top right corner of the interface. You can click on this icon to switch the visibility of the palette.

 

It should work on all the workspaces except the Drawing one.

 

The error is: "AttributeError: 'NoneType' object has no attibute 'isVisible'"

 

 

0 Likes
Message 3 of 4

JeromeBriot
Mentor
Mentor

The title of this thread is not clear. Actually, palettes object work in the Drawing workspace.

 

The issue occurs with a palette created in a workspace when the workspace change (Design => Drawing, and vice versa)

 

0 Likes
Message 4 of 4

goyals
Autodesk
Autodesk
Accepted solution

This is as designed. We redraw the layouts while switching between workspace. May be you can listen for Workspace activate event and recreate the palette object in switched workspace. Thanks.



Shyam Goyal
Sr. Software Dev. Manager