LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
MarcoBuettner

Insert from project or class

Status: New

It would be useful to insert a VI directly from a project or from a class into a line.

 

9 Comments
crossrulz
Knight of NI

What do you mean by "into a line"?  Are you referring to a wire?  QuickDrop can already do this.  Crtl+Space to open QuickDrop, type in the name of the VI you want to put in, and then Ctrl+i to insert.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
MarcoBuettner
Member

You're right, I meant the wire. Quick drop in ist not an option, because you have to know the exact name.

I want to browse like the project explorer.

Manzolli
Active Participant

@MarcoBuettner escreveu:

It would be useful to insert a VI directly from a project or from a class into a line.

 


Do you mean any user VI in the project? That would be nice because "Insert -> All Palettes -> Select a VI..." is a long journey and can lead to wrong VIs. Could be a palette called "Project" close to "Select a VI" where that VI's would appear in alphabetical order. For that I will give kudos, but I guess could not be implemented in current LabVIEW due to the way that the palettes are built. Maybe in NXG...

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
crossrulz
Knight of NI

If you find it in the project, you know the name.  So I still don't see why QuickDrop is not an option.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Intaris
Proven Zealot

Of course it's an option, but may not be the desired method.  Names don't neccessarily have a good hierarchy for searching.

Manzolli
Active Participant

Let the user choose which one is better for him. I use both, sometimes it's easier and faster get it from the functions palette, sometimes the drop down is better.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
MarcoBuettner
Member

To Manzolli: Thats what i want. "Insert -> All Palettes-> ..." is too far away. I want to have "Insert -> From Project" and "Insert -> From Class". And the view schould be like in the project explorer.

 

To crossrulz: I dont want to change to the project explorer to get the name so i can use QuickDrop.

 

p.s.: It's the same with "Insert->Cluster, Cl..->Variant->To Variant". Or is there a better way to insert "To Variant" -> ok, Quick Drop. Smiley Frustrated

 

 

AristosQueue (NI)
NI Employee (retired)

I agree this could be useful. It just never gets enough priority with all the other things my team has to work on to get done.

 

This request could be implemented by a user writing a right-click plugin. There exists an old RCF plug-in that has most of the code needed:

https://forums.ni.com/t5/JKI-Right-Click-Framework-for/Class-Tool-Plugin/gpm-p/3504493

That tool adds the class methods. Making a similar insert for project tree items would be a straightforward extension.

 

To create a right-click plug-in for LV 2015 or later, run this VI:

labview\resource\plugins\PopupMenus\Create Shortcut Menu Plug-In From Template.vi

Detailed help can be found here:

http://zone.ni.com/reference/en-XX/help/371361M-01/lvhowto/shortcutmenuplugins_intro/

 

If you do this work, you could share the plug-in with the community at

http://ni.com/lvmenus

where all the other community plug-ins are archived (including some written by NI folks that are nice-to-have but not shipping with LabVIEW for various reasons). 

AristosQueue (NI)
NI Employee (retired)

This idea is mostly a duplicate of these:

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Insert-class-member-VI-with-right-click-on-wire/idi-p...

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Quick-Access-to-a-LVOOP-Class-Library-via-the-Right-C...

This idea includes insert from the project tree, not just from class methods, so the duplication isn't exact.