If you want to alter anything on the schematic with a User Language Program you will need to output to a command line script file. The most common thing to do is write it to the same directory that the ULP is in. To do that you are going to need to know the path of the ULP. Below is a program that gives you the path of the ULP.
string ULP_Path;
char bkslash = '/';
int pos = strrchr(argv[0], bkslash);
if (pos >= 0)
{
ULP_Path = strsub(argv[0], 0, pos + 1);
}
dlgMessageBox(ULP_Path,"aroo","aree"); //opens a dialog box with the path in the notification area
exit(0);
0 Comments