Author Topic: .net paletteset versus CAdUiPaletteSet  (Read 3670 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

  • Water Moccasin
  • Posts: 1932
  • What idiot child of married cousins wrote this?!
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...
Me