Read back in this newsgroup, as I just recently posted a reply that mentions
that the "name" argument to the PaletteSet's constructor is not the
PaletteSet's name, it is the name of the AutoCAD command you define to show
the PaletteSet.
Of course, AutoCAD commands cannot contain spaces, so revise your code to
pass the name of the command that you define to show your paletteset, as the
first argument to the PaletteSet's constructor, and set the PaletteSet's
Name property to the name you want to give to the PaletteSet.
You can thank Autodesk for that documentation screw-up.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6280140@discussion.autodesk.com...
I am having a few problems with my automatically loading my DLL's
I have in my registry
[HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R18.0\ACAD-8001:409\Applications\KBR
Models]
"DESCRIPTION"="KBR Models"
"LOADER"="C:\\Program Files\\AutoCAD 2010\\KBR_Models.dll"
"LOADCTRLS"=dword:00000002
"MANAGED"=dword:00000001
The dll is a tool palette that I have created with the palette set name of
"KBR G&I APAC - Models Manager"
The dll loading is not the problem, it is what happens after that is the
problem. AutoCAD tries to excecute commands of the text in my paletteset
name
--------------------------------------------------------------------------------------------------------------------
Command: KBR Unknown command "KBR". Press F1 for help.
Command: G&I Unknown command "G&I". Press F1 for help.
Command: APAC Unknown command "APAC". Press F1 for help.
Command: - Unknown command "-". Press F1 for help.
Command: COMMANDLINE
Command: Models Unknown command "MODELS". Press F1 for help.
Command: Manager
Unknown command "MANAGER". Press F1 for help.
--------------------------------------------------------------------------------------------------------------------
Now if I delete the reg entry and just do a netload, I don't get this issue.
Can anybody shed some light on this for me?
Cheers
Brent