.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PaletteSet docking via C# not working in AutoCAD 2016

6 REPLIES 6
Reply
Message 1 of 7
pfk
Enthusiast
2023 Views, 6 Replies

PaletteSet docking via C# not working in AutoCAD 2016

Hi

 

I open a new window docked to the AutoCAD 2015 UI as follows (in C# .NET):

 

                m_SetupFormPalette = new PaletteSet("MyPalette");
                m_SetupFormPalette.Size = new Size(370, Math.Max(350, m_SetupFormPalette.Size.Height));
                m_SetupFormPalette.DockEnabled = (DockSides)((int)DockSides.Left + (int)DockSides.Right);
                m_SetupFormPalette.Dock = Autodesk.AutoCAD.Windows.DockSides.Left;

                m_SetupFormPalette.Add("MyForm", m_SetupForm);
                m_SetupFormPalette.KeepFocus = false;
                m_SetupFormPalette.Visible = true;

This code does NOT work for AutoCAD 2016.  The window always opens UNDOCKED.  Is this a bug in AutoCAD 2016, or I am setting up the docking settings incorrectly?

 

Thanks

 

Paul

6 REPLIES 6
Message 2 of 7
moogalm
in reply to: pfk

Thanks for reporting this behavior to us, I've contacted my Engineering team for analysis.

Message 3 of 7
Anonymous
in reply to: moogalm

Hi, 

 

I'm experiencing the same problem currently. Are there already known workarounds?

 

Best regards,

Matthias

Message 4 of 7
moogalm
in reply to: Anonymous

Sorry the behavior is recently reported to us, we don't have any workarounds at moment.
Message 5 of 7
Anonymous
in reply to: moogalm

Hi,

 

found out it works for me if I make the PaletteSet visible before im setting the Dock-Property. The question remains why this behaviour has changed between AC2015 and AC2016.

Message 6 of 7
pfk
Enthusiast
in reply to: Anonymous


@Anonymous wrote:

Hi,

 

found out it works for me if I make the PaletteSet visible before im setting the Dock-Property. The question remains why this behaviour has changed between AC2015 and AC2016.


Thank you - that provided a workaround for resolved my immediate issue. 

Paul

Message 7 of 7
Anonymous
in reply to: pfk

Hi folks!

Problem still exists for AutoCAD 2017 SP1. 

Luckily the workaround, too.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report