It's not a bug, it's just a facet of some of the worst
documentation in the software industry.
When you use the overload that takes a Guid, the
"name" argument isn't the name of the PaletteSet,
it's the command that AutoCAD issues to show the
PaletteSet when AutoCAD starts, if the PaletteSet
was visible when AutoCAD was last closed. If you
don't use the overload that takes a Guid, then your
PaletteSet's state isn't persisted and AutoCAD will
not show it automatically at startup.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2011
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6367354@discussion.autodesk.com...
I'm trying to following an example that I found for creating a PalettSet with a
UserControl and I think I finally have everything working except one thing. I'm
using AutoCAD 2008 (AutoCAD Architecture 2008 SP1).
The following line creates a PaletteSet titled "Layer List" just as I expect it
to.
myPaletteSet = New Autodesk.AutoCAD.Windows.PaletteSet("Layer List")
.However when I use a GUID, the title "Layer List" magically becomes a command
which of course starts the LAYER Command followed by the LIST Command.
myPaletteSet = New Autodesk.AutoCAD.Windows.PaletteSet("Layer List",
New Guid("d7b78d6c-14b2-45b1-bc0b-95f365f60ec9"))
What the heck is going on here? Is this another AutoCAD bug that takes something
really cool and makes it completely useless, or am I just too dense and missing
something obvious?
By the way, I'm using this AU tutorial.
http://au.autodesk.com/?nd=class&session_id=910
Thanks,
Jim