I don't think there is a really easy way of doing this. The only way that comes to mind (maybe) is using the editor from the command line. There is a similar conversation happening on this FORUM, but I don't believe we have any LabWindows/CVI examples.
I believe the LabWindows Color Pattern Matching (C:\Users\Public\Documents\National Instruments\CVI\samples\Vision\2. Functions\Color Pattern Matching) is still pretty manual to create a template.

---
Aaron F.
National Instruments