11-02-2012 01:12 PM
OK, so I built this beautiful project template and hid the icon overlay (I want my icon banners to remain unchanged) Lo-and behold my banners do change because a blank banner is placed over the top of my icons. How do I stop this or how do I postcopy script remove the banner layers from my new project?
Solved! Go to Solution.
11-02-2012 05:54 PM
The application of a banner, even when hiding the Icon Overlay section in the Create Project window, is a bug that will be fixed in the next LabVIEW release.
For now, you can use the LabVIEW Icon API (found in vi.lib\LabVIEW Icon API) to remove the NI_Project icon layer in a PostCopyScripting VI. Let me know if you have any trouble getting this implemented.
11-03-2012 02:31 PM - edited 11-03-2012 02:33 PM
@Darren wrote:
The application of a banner, even when hiding the Icon Overlay section in the Create Project window, is a bug that will be fixed in the next LabVIEW release.
For now, you can use the LabVIEW Icon API (found in vi.lib\LabVIEW Icon API) to remove the NI_Project icon layer in a PostCopyScripting VI. Let me know if you have any trouble getting this implemented.
An example would be greatly appriciated. I really am new to both scripting and project templates. I think I can figure it out but...the layer icon class is a guess that I need to experiment with .An experts help is more than welcome (what is the CAR to track?)
11-03-2012 03:03 PM
@JÞB wrote:
An example would be greatly appriciated. I really am new to both scripting and project templates. I think I can figure it out but...the layer icon class is a guess that I need to experiment with .An experts help is more than welcome (what is the CAR to track?)
The CAR is 369668. For the scripting, I would specify a CustomVIMode of "AfterPage2NoUI", and here's a VI illustrating how I would do it. I tried this approach with some of the core templates/sample projects and it seemed to work correctly, i.e. the generated project did not have any additional icon overlay applied to its VIs.
08-02-2013 11:55 AM
CAR 369668 discussed in this thread has been fixed in LabVIEW 2013. You can download an evaluation copy of LabVIEW 2013 at http://www.ni.com/trylabview/ or if you have an earlier version of LabVIEW installed and an active SSP subscription, you will be able to download the latest version of LabVIEW through NI Update Service.
Jeff Peacock
Product Support Engineer | LabVIEW R&D | National Instruments