aasclav Posted August 17, 2011 Share Posted August 17, 2011 Hello friends, I load the dll (netload). I put the command into the command line. The palette appears docked. When i drag the palette to undock it, it disapears and autocad hangs. Please help. PS: Leaving VBA back and start using .net all i face is PROBLEMS Quote Link to comment Share on other sites More sharing options...
Jack_O'neill Posted August 17, 2011 Share Posted August 17, 2011 So, don't undock it! Sorry, don't know what that could be. Quote Link to comment Share on other sites More sharing options...
aasclav Posted August 19, 2011 Author Share Posted August 19, 2011 I found a workaround using this code: Imports Autodesk.AutoCAD.Runtime Imports Autodesk.AutoCAD.Windows Public Class Class1 Public p As PaletteSet Public uc As UserControl1 <CommandMethod("run")> _ Sub run() If p = Nothing Then p = New PaletteSet("test") uc = New UserControl1 p.Add("palette1", uc) p = Nothing p = New PaletteSet("test") uc = New UserControl1 p.Add("palette1", uc) p.Visible = True p.Dock = DockSides.None End If p.Visible = True End Sub End Class But i don't know what is the problem. Anyone? Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.