Message 1 of 3
How to work with Default Paletteset in AutoCAD 2009?
Not applicable
03-09-2010
11:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I'm a new bie to AutoCAD and trying to work with existing (Default) Palette Set provided in AutoCAD 2009.
I'm working on an application which would display a particular Palette on demand (user may issue a command) and then it would be vanished on demand (user may issue another command for that). And I want to do that with the present Tool Palette set.
I'm assuming the Default Palette Set of AutoCAD is the Tool Palette Window, the one which is launched by ToolPalettes command or pressing Ctrl+3 or by going through menu "Tools--> Palettes--->Tool Palettes.
Here is a sample code which I tried to get the object of Default PaletteSet :
System.Guid gd = new Guid(("{6442ECC1-5F16-49C3-B89E-3999B89C34B7}"));
Autodesk.AutoCAD.Windows.PaletteSet ps = new Autodesk.AutoCAD.Windows.PaletteSet("Tool Palettes Window",gd);
The GUID value and Paletteset name comes from this file:
C:\Documents and Settings\cov.builds\Application Data\Autodesk\AutoCAD 2009\R17.2\enu\Support\ToolPalette\AcTpCatalog.atc
But ps.Count is showing 0, and I can't access any palette there.
Any help suggestion would be greatly appreciated.
Thanks a lot
Best regards
Farrukh Edited by: farrukhw on Mar 10, 2010 12:17 PM
I'm a new bie to AutoCAD and trying to work with existing (Default) Palette Set provided in AutoCAD 2009.
I'm working on an application which would display a particular Palette on demand (user may issue a command) and then it would be vanished on demand (user may issue another command for that). And I want to do that with the present Tool Palette set.
I'm assuming the Default Palette Set of AutoCAD is the Tool Palette Window, the one which is launched by ToolPalettes command or pressing Ctrl+3 or by going through menu "Tools--> Palettes--->Tool Palettes.
Here is a sample code which I tried to get the object of Default PaletteSet :
System.Guid gd = new Guid(("{6442ECC1-5F16-49C3-B89E-3999B89C34B7}"));
Autodesk.AutoCAD.Windows.PaletteSet ps = new Autodesk.AutoCAD.Windows.PaletteSet("Tool Palettes Window",gd);
The GUID value and Paletteset name comes from this file:
C:\Documents and Settings\cov.builds\Application Data\Autodesk\AutoCAD 2009\R17.2\enu\Support\ToolPalette\AcTpCatalog.atc
But ps.Count is showing 0, and I can't access any palette there.
Any help suggestion would be greatly appreciated.
Thanks a lot
Best regards
Farrukh Edited by: farrukhw on Mar 10, 2010 12:17 PM