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
Thanks for reporting this behavior to us, I've contacted my Engineering team for analysis.
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.
@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
Can't find what you're looking for? Ask the community or share your knowledge.