08-16-2012 06:12 PM
Is this post still relevant to the latest version of LabVIEW (2012):
http://forums.ni.com/t5/LabVIEW/change-default-icon-for-new-VI/m-p/448064
Or is there a better way/more preferred method? It would be nice to change up a bit.
Thanks.
08-17-2012 03:45 AM
What's wrong with Ton's suggestion - use the lv_new_vi.vi callback to override the New VI command and make a copy of your own template?
08-17-2012 04:06 AM
I guess the easiest solution is to save a preferrec icon as Glyph in the icon editor to get a good starting point. 🙂
/Y
08-20-2012 02:52 PM
Who is Ton and where is his suggestion? I don't see it in the link I provided. I asked because the thread was from 2006, and was wondering if there was a better solution available.
It looks like a good solution to use a template, but then again it would be nice if the default icon was changed when selecting parts of a block diagram and going to "Create SubVI from Selection".
08-20-2012 02:56 PM
@Nickerbocker wrote:
Who is Ton and where is his suggestion? I don't see it in the link I provided.
Ton is TCPlomp. His suggestion is here:http://forums.ni.com/t5/LabVIEW/change-default-icon-for-new-VI/m-p/448115#M218003
08-21-2012 12:20 AM
@Nickerbocker wrote:
it would be nice if the default icon was changed when selecting parts of a block diagram and going to "Create SubVI from Selection".
Since 2011, LV has a VI-based process for creating a subVI from a selection. You can put your own code into that process. Look at <LabVIEW>\resource\plugins\CreateSubVI\Additional Actions Template.vi
You can set the VI's icon to a new image using a method on the VI, but I believe 2011 doesn't allow you to build an icon from layers like the icon editor does. My understanding is that 2012 is supposed to have an API to the editor which might allow you to do that.