Author Topic: .net paletteset versus CAdUiPaletteSet  (Read 6182 times)

0 Members and 1 Guest are viewing this topic.

jgr

  • Guest
Re: .net paletteset versus CAdUiPaletteSet
« Reply #15 on: September 24, 2010, 02:16:29 PM »
Solved

It seems that, in this case, the name of palleteset must be the same as the command that displays palette

Code: [Select]
Olde Code
_ps = New Autodesk.AutoCAD.Windows.PaletteSet("Navegador Web", New Guid(PSGGUID))

New Code
_ps = New Autodesk.AutoCAD.Windows.PaletteSet("WEBBWR", New Guid(PSGGUID))


<Autodesk.AutoCAD.Runtime.CommandMethod("HNGRWEBBWR", "WEBBWR", CommandFlags.Transparent)> _
Public Shared Sub ShowWebBrowserPalette()

    _ps.Visible = True

End Sub

Full source:

Glenn R

  • Guest
Re: .net paletteset versus CAdUiPaletteSet
« Reply #16 on: September 24, 2010, 06:39:00 PM »
Hmmm...from memory, as palettes are modeless, if they're executed from a command, that command should have CommandFlags.Session...