Custom Icon Editor

From LabVIEW Wiki
Jump to: navigation, search

The Icon Editor like many other elements in the LabVIEW IDE are programmed in G. However, the Icon Editor is distributed as a PPL and is not editable. NI has distributed the source code for the Icon Editor through the forums to allow users to modify and build their own PPL replacement.

Getting the Source

You can get the source from the Enhanced Icon Editor forum. It will also be included here for accessibility:

To Install

To install the code, do the following:

  1. Rename [LabVIEW 20xx]\resource\plugins\lv_icon.lvlibp, the shipping icon editor, to lv_icon.lvlibp.ship to "hide" it.
  2. Archive [LabVIEW 20xx]\vi.lib\LabVIEW Icon API to preserve the shipping copy. Use your archive program of choice (e.g. 7-Zip).
  3. Open the attached ZIP file and copy the two directories into your [LabVIEW 20xx] directory. This copies over the main VI [LabVIEW 20xx]\resource\plugins\lv_icon.vi and all associated support files.
  4. If you try to run from Source, you will probably get a memory error. Open the main VI ([LabVIEW 20xx]\resource\plugins\lv_icon.vi) and find the Disable Diagram Structure toward the start of the flow. Enable the disabled diagram, run it once, and then switch it back to disabled. Now the source will run both launched from the VI, Library, and Class edit Icon functions and by just running this VI for testing.
  5. You can use the build spec in the provided project to re-build it as a PPL However, this will delete the source to avoid conflicts as part of its post-build step. BACK UP YOUR SOURCE FIRST.