Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Unlocking a protk app

Bopkes

New member
Hello,

it`s me again!
After building and testing my app (see other topic) successfully on my "develop-system" i was going to test it on our other machines.
Sadly it doesn`t work so far, because my app isn`t unlocked.

So i tried unlocking it by calling the input request and the command:
C:\PTC\bin\protk_unlock.bat C:\PTC_Prog\Speicherdatum\Save_history.dll

But always i get the error message:
"x86e_win64_ptc_setvars" not found

When i open the protk_unlock.bat in my editor, i saw that x86_win64 is used for AMD64 machines.
But i`m using not a AMD machine and i only can find the i486_nt_ptc_setvars.exe in my "bin" File.

What is wrong here?
Any ideas??
 
Just open a command shell.


Then use "CD C:\PTC\bin" to change the working directory. Now push the same command you already wrote and it should work!


As an alternative, add the path C:\PTC\bin to the environment variable PATH.


Regards, DonChunior
 
Hi,


thx for your fast reply!


Sorry...but a did it your way at my first try. I think my description of the entered command was a little bit confusing.


So the error is still the same
smiley19.gif
 
Ok, i executed cmd>set and the indicated PROCESSOR_ARCHITECTURE is AMD64.

This doesn`t fit the ptc_setvars.exe which is named i486_nt_ptc_setvars.exe if i understand it right.

i think this exe should be named with x86_win64_ptc_setvars.exe.



What
 
Hi Bopkes,


now I understand, what your problem is:


You are working on a 64 bit operating system (PROCESSOR_ARCHITECTURE = AMD64).
But you've just installed the 32 bit version of Pro/ENGINEER (i486_nt).


To solve your problem, open the file C:\PTC\bin\protk_unlock.bat with a text editor and edit line number 7:


Change
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set MC=x86e_win64
to
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set MC=i486_nt


Then unlocking shouldn't be a problem any more!
smiley1.gif



Best regards, DonChunior


[EDIT]


Hab gerade bemerkt, dass ich es dir auch auf deutsch h
 
hi,


thx...i will test it latter and give you some feedback!


i tried something similar....it was:


"%PROCESSOR_ARCHITECTURE%" == "X86" set MC=i486_nt


to


"%PROCESSOR_ARCHITECTURE%" == "X86" set MC=x86e_win64


But now i know why it doesn`t work
smiley4.gif
.


It was the wrong architecture!!!


Hope it works with your advice!


Ach und hab schon gesehen das du aus
 
Hi Bopkes,


Here's some help I was sent when I was trying to figure this out a few months ago.
The other responses to your question are correct. You can compile a 64 bit dll on a 32 bit Windows machine however you can
 
protk_unlock.bat works now!
I just edited the command line as DonChunior said and the result was a working protk_unlock.bat.
It unlocked my dll at the first try successfully
smiley4.gif
!!
tomorrow i will test if it works on other systems!

@FishNut thx for this instruction...will be helpful!
 
Ok....now i can tell you, i can`t start my DLL on our 64bit system
smiley19.gif
.
unlocking on my development system was successful.
I think my problem now is...my development system is vista 64bit with 32bit ProE.
Our other system is 64bit 7 with 64bit ProE.
Is this right so far?
Is there any way to get this done or should i use the same system for development and for workin???
 
I created all of my 64bit dll's on a 32 bit machine. Like my ealrier post, the instruction I had was to copy the


Acquire the 64 bit protoolkit directory from a 64 bit installation and put it on your machine.


Set up your make file to point to this as your toolkit source.


<?:NAMESPACE PREFIX = O /><O:p># Pro/Toolkit Source & Machine Loadpoint (EXTERNAL USE - DEFAULT)
PROTOOL_SRC = d:/ptc/proeWildfire3.0/protoolkit64
PROTOOL_SYS = $(PROTOOL_SRC)/$(PRO_MACHINE_TYPE)
PRODEV_SRC = d:/ptc/proeWildfire3.0/prodevelop64
PRODEV_SYS = $(PRODEV_SRC)/$(PRO_MACHINE_TYPE)</O:p>
 
Ok thx fishnut!
But i think i will put up a 64bit ProE version instead of doing it your way!
I will give you a update if it works with or not
smiley2.gif
 
Hy,

now it took a bit of time since my last post on this thread!
There was no time to improve my protk skills because of some important projects.
But now we can go on....!!!

In my last post i thought it would be easier to use a x64 Version of ProE, instead of the way described by FishNut!
But after all this time i still got only a 32 bit ProE Version :-s !!!

So I will try the other way!

Therefor i extracted i the Protoolkit and Prodevelop files from a x 64 ProE Version.
This was what Fishnut said.

In his description he talked about MAKEFILES....But i dont use MAKEFILES for my project.
Until now i produced my dll s by setting up a WIN32 Project in my Visual C++ 2008 Express Edition.
So my question is, is it possible to point to the x64 toolkit files instead of the 32bit includes??
Will there be some trouble if i try to compile my project???

THANKS....
 

Sponsor

Articles From 3DCAD World

Back
Top