Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
I am trying to follow the steps detailed here to learn how to create a add-in for Creo 12.0 using the Creo Toolkit C++:
https://support.ptc.com/help/creo_toolkit/protoolkit_plus/usascii/index.html#page/creo_toolkit/get_started/Using_the_Microsoft_Visual_Studio_Solution.html#
However, my computer will not let me unzip the file where it is located (it is within program files), and when I unzip it somewhere else, the protk_install_example can no longer access the files in protk_appls. I've verified that the C and C++ compilers are included in my version of Visual Studio 2022.
Any ideas on how to unzip this file and build it successfully?
Hi,
set appropriate access rights to program files\PTC directory.
I tried to unzip the zipper folder "protk_install_example.zip" in the directory "C:\Program Files\PTC\Creo 12.4.0.0\Common Files\protoolkit\x86e_win64\obj\" (where the zip file is located) while running File Explorer as an admin, but that did not fix the issue. Could you help me with more specific steps on how to do what you are suggesting? I have attached a screenshot of the issue I am having.
If I extract the file to another folder, I get different errors because it can't access other protoolkit folders (the makefile uses relative references).
@NM_14117652 wrote:
I tried to unzip the zipper folder "protk_install_example.zip" in the directory "C:\Program Files\PTC\Creo 12.4.0.0\Common Files\protoolkit\x86e_win64\obj\" (where the zip file is located) while running File Explorer as an admin, but that did not fix the issue. Could you help me with more specific steps on how to do what you are suggesting? I have attached a screenshot of the issue I am having.
If I extract the file to another folder, I get different errors because it can't access other protoolkit folders (the makefile uses relative references).
Hi,
if I were you, I would unzip the zip file somewhere else and see what came out.
Note: It seems to me that you are a Toolkit beginner and maybe you haven't even read the documentation.
Hi @NM_14117652,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
Anurag
Hello, your problem seems unrelated to Creo API or Visual Studio version conflicts. You need to be able to unzip, locate and write files in the Creo installation directory. It sounds like insufficient file system permissions, drive space or too long/invalid path names (or security software) is the problem here.
I don't use make files so I don't know a great deal about setting one up.
Give this a try:
I have my toolkit related files temporarily installed in the location below.
I had to go into the 'make_install' file that is included in the VS project and edit the 'PROTOOL_SRC' variable by adding my toolkit path. FYI: It appears that spaces are not allowed in the path (so I added underscores where needed).
