08-31-2011 07:51 AM
Hello all,
Is it possible to add new Class template in this list?
Thanks,
Olivier
08-31-2011 01:00 PM
Bon jour Olivier,
The templates are actually not extendible at the moment. It's not a big implementation issue in the G#IDE and it is prepared for that, and I will put it on my todo list. Since I just release a new version of the framework, I don't have another version scheduled yet.
If you want to use your own template, it is quite easy to just use "Clone class" to your template class and then set correct base class, using "Change Inheritance" (if needed). You could also modify one of the existing templates located in <LabVIEW>\vi.lib\addons\_AddQ\G#Templates, but these will be overwritten if you reinstall or update the toolkit.
The methods templates could be extended though, the ones that you see when you use the "Create Method". Add the methods you want to the:
<LabVIEW>\vi.lib\addons\_AddQ\G#Templates\G#MethodTemplates class and the update the XML file:
C:\Program Files\National Instruments\LabVIEW 2009\vi.lib\addons\_AddQ\G#Templates\G#MethodTemplates\methods\G#Methods.xml
these will also be overwritten if you reinstall or updates the toolkit.
/Mattias