Creating Tool Palette In AutoCAD with C#.

Creating Tool Palette In AutoCAD with C#.

prem_kumar8SXZJ
Enthusiast Enthusiast
2,660 Views
7 Replies
Message 1 of 8

Creating Tool Palette In AutoCAD with C#.

prem_kumar8SXZJ
Enthusiast
Enthusiast

I want to create a custom tool palette in AutoCAD using C#. To some degree I succeed also, It is creating a tool palette but I cannot add my buttons. Can anyone provide a basic template for creating my own tool palette using c# or Vb.net?

0 Likes
Accepted solutions (2)
2,661 Views
7 Replies
Replies (7)
Message 2 of 8

_gile
Consultant
Consultant
0 Likes
Message 3 of 8

prem_kumar8SXZJ
Enthusiast
Enthusiast

Hi, @_gile I have read that article but it does not create a new tool palette. Instead, it is setting an already created tool palette active in AutoCAD. I want to create a new palette just like the existing tool palettes in AutoCAD and I want to add some buttons in that tool palette and those buttons will do some tasks.

0 Likes
Message 5 of 8

prem_kumar8SXZJ
Enthusiast
Enthusiast

Thank You @cuongtk2 for this. Now I am able to successfully create tool palette in AutoCAD.

0 Likes
Message 6 of 8

_gile
Consultant
Consultant
Accepted solution

Sorry. What confused me was the use of "tool palett" which, in my mind refers to the AutoCAD  native tool palettes.

In the AutoCAD .NET environment, what you wer looking for is named a palette set (PaletteSet class).

You can find here a 'tutorial' which shows how to build a simple palette set (WinForms or WPF).



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 7 of 8

prem_kumar8SXZJ
Enthusiast
Enthusiast

Sorry for the confusion @_gile, Thanks for your reply, the link you shared just now is also creating the palette set in AutoCAD.

0 Likes
Message 8 of 8

jorgeXQ7HG
Explorer
Explorer

@_gile 

I am considering on trying to build my first palette and was wondering on which of the samples would be best for reading xdata from within the drawing and display it with a table view almost. Any suggestions would be great to start reading and gather information. Thanks.

0 Likes