Jump to content


Open Custom Palette on startup


2 replies to this topic

#1 Eduardo

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 18 July 2017 - 06:52 PM

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.

#2 Hellen_V

    nanoCAD Team

  • Members
  • PipPipPip
  • 916 posts

Posted 19 July 2017 - 08:11 AM

Hi Eduardo,
in the Load/Unload application dialog click the Content button and then select your dll:
Attached Image: Contents.PNG
nanoCAD Support Team
support@nanocad.com

#3 ISL

    Advanced Member

  • Members
  • PipPipPip
  • 48 posts

Posted 19 July 2017 - 05:21 PM

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()
	{
	}
...

Build your own nanoCAD. Visit the nanoCAD API Blog. Join the nanoCAD Developers' Club.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users