Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I am using Creo 2.0 and Creo Parametric Toolkit that comes with this version.
Hi,
This is my user intitialize from my code.
int user_initialize(int argc,char *argv[],char *version,char *build,wchar_t errbuf[80])
{
char *dateCode;
ProEngineerDisplaydatecodeGet(&dateCode);
printf("%s", dateCode);
return (0);
}
But this does not print anything on the command line. In Utilities -> Auxilliary applications my application is shown to have started.
Also please suggest to to pass command line arguments to my custom application. Please give a sample example of how to pass command line arguments corresponding to my code.
Lets say My application's .dll file is in C:\Application directory. The protk.dat file is also in that directory.
I am launching creo from command line with the following command.
cmd
-------
C:\Application><Creo_Install_path>\Parametric\bin\parametric.bat
Do I have to add anything after the parametric.bat statement or do what ? Please give a sample example of how to pass command line arguments corresponding to my code.
Hi
You need to use ProMessageDisplay() to print in message area.
There is lot of samples available in protoolkit directory in the Creo installion folder.