09-24-2013 12:18 PM
Guess it is time for a Ctrl-Space Ctrl-N QD shortcut then...
01-01-2014 04:54 PM - edited 01-01-2014 05:07 PM
whoops
07-01-2014 06:17 PM
@Darren wrote:
The "Default Application" property always returns the main application instance...so when you have a project open (or a VI from a project open), Ctrl-N with your plugin VI creates the new VI in the main application instance...not the appropriate application instance from within the project. I tried playing with the code, including calling some private methods, and I couldn't get the plugin VI to properly return a reference to the "active" application instance, i.e. where the VI would normally get created when pressing Ctrl-N. If y'all figure out a way, let me know.
Use Project.OwningProject to get App, works fine.
The template opens in the same application instance as the active VI/project.
07-01-2014 07:32 PM
Use Active project.