LabVIEW Idea Exchange

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

Insert snippet from file via menu entry

Status: New

Inserting snippets to a diagram is easy. We just drag it from an explorer window. Nothing wrong with that. 🙂

 

However, there are scenarios where this is not the optimal way to do it. For example if the diagram is maximised to the screen or the entire screen is already filled with many windows.

 

I suggest a new menu entry for the block diagram:

 

"Edit...Import snippet from file"

 

When selected, it would simply open a file dialog with png files as pattern where we can select the desired snippet to be placed on the block diagram.

 

A possible alternative would be for the "Function palette...Select a VI" mechanism to also include "*.png" in the pattern so we can pick and place a snippet like a plain VI. What do you think? It would function similarly to a shell (merge) VI.

 

(Now, what should happen if it is just a plain PNG file or in the wrong version? It would simply import it as a picture, same as with any other image. This will allow us to easily recreate the code from the image if it is a snippet in the wrong version.)

 

Did I miss something obvious?

5 Comments
Darin.K
Trusted Enthusiast
>A possible alternative would be for the "Function palette...Select a VI" mechanism to also include "*.png" in the pattern so we can pick and place a snippet like a plain VI. What do you think? It would function similarly to a shell (merge) VI. Brilliant idea: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Select-a-VI-should-permit-Snippets/idi-p/1446954 May not have the most support, but I think pound-for-pound it is doing quite well, except for that Johnny come lately....
altenbach
Knight of NI

Hey, I even kudoed that, probably long ago! 😄 Certainly deserves more attention....

 

(Currently, only dragging works for snippets. for example I cannot go to explorer, select the snippet, ctrl-c, go to the diagram, ctrl-v. Bzzzt! All I get is text! Shouldn't that work too??? shrug.)

SteveChandler
Trusted Enthusiast

Excellent idea. Plus I get to kudo it twice! Smiley Very Happy

=====================
LabVIEW 2012


Darin.K
Trusted Enthusiast
I appreciate the recent spike in support, although I have to admit there was something satisfying about having an idea which had peaked with 8 Kudos with three of those belonging to Jeff K., AQ, and Darren.
Manzolli
Active Participant

Both ideas can be implemented. It's nice to have many ways to do something. Let the user choose the most convenient. Kudoed both! Smiley Happy

André Manzolli

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