Hi all
I create a AutoCAD tool palette using C#
I have two questions
1- how to change tool palette Icon instead of AutoCAD default Icon
2- How too add Items to tool Palette such as (blocks or Macro buttons)..
That's what I got
[/code] public void CreateMyPalette()
{
if(ps == null)
{
ps = new Autodesk.AutoCAD.Windows.PaletteSet("Test");
ps.Style = Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowPropertiesMenu
| Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowAutoHideButton
| Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton;
ps.Opacity = 90;
ps.Size = new System.Drawing.Size(250,250);
ps.MinimumSize = new System.Drawing.Size(225, 200);
ps.Add("P1", new UserControl1());
ps.Add("P2", new UserControl2());
ps.Dock = Autodesk.AutoCAD.Windows.DockSides.Left;
ps.Visible = true;
}
else
{
ps.Visible = true;
}
}