10-08-2013 03:23 PM
Hello
I am currently working on code completion for user commands in version 2012. I have an XML file in which I have the descriptions for all the hover text and associated help links. Everything is working correctly except for the help links. They seem to be always looking to go to the diadem.chm help file. I was wondering if there was any way to redirect where they point or am I missing something? Thanks.
Ben
10-09-2013 12:14 PM
Hey benb61794,
You'll need to register your external program in order to use it within DIAdem Script, please take a look to this article.
CarmenC
10-09-2013 02:53 PM
Hi Carmen
Actually I'm really not using an external program per se. I guess I need to clarify what I am doing better. Sorry about that.
Look at the help file for ScriptCmdRegister here for an example. A shorter version without an example is spelled out below if you wish.
I am creating a VBS user command script containing classes of objects that I add using scriptcmdadd. I am then registering the TLB file using scriptcmdregister resulting from compiling an ODL file. After compilation, the ODL file is no longer needed. I have a third/fourth file to go along with these which is an XML file that I got from a coworker. The XML file contains the descriptions, helplinks, and datatypes that appear when code completion comes up, just as there is in DIAdem when you type View.ActiveSheet.etc.
However, you notice in DIAdem that there is a help link, which is what I cannot get working because when I insert anything into the xml file where the help link would go, it throws an error because it is trying to point to the DIAdem.chm help file no matter what. This is what I wish to redirect so it can go to my own chm/html help file, if it is possible or supported that is. Thanks
Ben
10-10-2013 11:44 AM
Hi Ben,
I'm sorry, but there's no way to go that last mile. The approach that DIAdem uses for the linking is highly performance optimized and too complicated to adapt to custom UserCommands. It's not just linking to the *.chm file but rather rebuilding all the relevant information from *.chm file into special XML files that get cached for fast access. I'm afraid this is not likely to change in the future either.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-10-2013 01:06 PM
Ok.
Bummer, but thanks for the response!