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.
0
Open Custom Palette on startup
Started by Eduardo, Jul 18 2017 06:52 PM
2 replies to this topic
#1
Posted 18 July 2017 - 06:52 PM
#2
Posted 19 July 2017 - 08:11 AM
Hi Eduardo,
in the Load/Unload application dialog click the Content button and then select your dll:
in the Load/Unload application dialog click the Content button and then select your dll:
nanoCAD Support Team
support@nanocad.com
support@nanocad.com
#3
Posted 19 July 2017 - 05:21 PM
Hi Eduardo,
Try to put your palette-showing code into IExtensionApplication.Initialize() method:
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