←  Technical Questions

nanoCAD forum

»

Open Custom Palette on startup

Eduardo's Photo Eduardo 18 Jul 2017

I made a .NET API for nanocad that has a bunch of commands, i wanted to access this commands through a palette instead of calling them in the command line so i made it, the problem is that i have to call this pallet with a command each time i start nanocad. Is there a way to automatically call a command of an external dll when you start nanocad or is to register this pallet so i dont need to call it.

Thanks in advance.
Quote

Hellen_V's Photo Hellen_V 19 Jul 2017

Hi Eduardo,
in the Load/Unload application dialog click the Content button and then select your dll:
Attached Image
Quote

ISL's Photo ISL 19 Jul 2017

Hi Eduardo,

Try to put your palette-showing code into IExtensionApplication.Initialize() method:

  public class MyCommandClass : IExtensionApplication
  {
	public void Initialize()
	{
	}

	public void Terminate()
	{
	}

	[CommandMethod("MyCommand")]
	public void MyCommand()
	{
	}
...
Quote