AFAIK, the only way to do that is through commands like "PROPERTIESCLOSE",
"TOOLPALETTESCLOSE", and so on.
You can query the state of the tools using the cooresponding "xxxxxSTATE"
system variables.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009
http://www.acadxtabs.com
Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
"Herman Mayfarth" wrote in message
news:6192584@discussion.autodesk.com...
When opening AutoCAD (2008) with an external program, the drawing editor is
closed, but undocked palettes are visible, which is not what I want.
I don't see any way to hide the palettes via COM, so I am guessing what
needs to happen is something like this:
1) NETLOAD an assembly into ACAD
2) find which palettes are visible
3) save this state somewhere
4) hide all palettes using .NET interface (I hope there is one)
5) restore the palette states before closing the ACAD process
Is this the correct approach?
If so, I would appreciate a pointer to the appropriate managed class(es).
I do have the 2010 arxmgd.chm for reference, but it is so far a bit
overwhelming for a novice.
Lots of Palette this and Palette that, but I haven't yet found a
Palette.visible property, or Palette.hide method, if such exist.
TIA