Command icon not found
I am writing a plugin for Creo which adds two user-created commands to Creo. I would like to add an icon to these and have run into a number of issues.
First, even though the API flat out says that PTC recommends you use .pngs, only .gifs are accepted. I've simply converted to .gif, but it certainly indicates a general problem with the ProCmdIconSet function.
The REAL problem I'm having is that when I try to add a .gif file as an icon which ISN'T in the Creo directory, the function returns a PRO_TK_GENERAL_ERROR. I simply give the file name, "plugin_icon.gif", as argument and rely on the function to find it. The API claims that it searches for the icon in "Application text dir/resource". In my protk.dat file I set the text dir with the "TEXT_DIR" command. In fact, I know that Creo accepts this, as it loads the text file which I pass to ProMessageDisplay just fine.
The thing is, if I set the text directory to the internal text directory (Common Files/F000/text, for instance), the images load just fine (unless they're a .png).
Does anyone have any experience in using icons external to the Creo directory structure?
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

