Jump to content

Problem with palette on autocad 2006


aasclav

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...