dagarber
Mechanical
- Mar 24, 2006
- 16
Hi again guys,
I have created a trail file and am running it from the command line with the following input:
proe.exe -g:no_graphics mytrailfile.txt
(I use the full filepath to proe.exe and mytrailfile.txt, just abbreviating it here for clarity).
The purpose of the trail file is to open ProE, regenerate an assembly from a text file (Edit -> Regnerate -> From File), save the assembly and exit. To make the trail file, I opened ProE, set the working directory, opened an assembly, Edit -> Regenerate -> From File, specified the file, saved the assembly, and exited ProE. I then went and grabbed the trail file and renamed it to mytrailfile.txt.
So far, so good.
In my assembly, the only thing added to the Program file is this:
INPUT
CARGO_RADIUS NUMBER
CARGO_LENGTH NUMBER
HOLEPATTERN_NUMOFHOLES NUMBER
SPACEBTWNHOLES_INNER NUMBER
END INPUT
The quirky thing is this: I'm opening ProE using a Visual Basic command in an Excel file. Sometimes ProE opens with the default working directory as the location of this Excel file. When it does that, everything works fine; ProE runs and closes, and the model is updated just like I asked it to. But other times, ProE will open with a different directory as the default working directory. When it does this, even though it reads the trail file, it doesn't update the model.
My self-diagnosis is that either:
1) I just need to set ProE to open with the correct directory set as the default working directory. I bet I can do this with a config file? So I could save a config file that sets the default working directory, and then force ProE to open using this config file with a command line argument? or,
2) I need to edit my Pro/Program file to include an Execute section, ala thread554-100817
Of course, I'm just guessing on those things
thanks,
David
I have created a trail file and am running it from the command line with the following input:
proe.exe -g:no_graphics mytrailfile.txt
(I use the full filepath to proe.exe and mytrailfile.txt, just abbreviating it here for clarity).
The purpose of the trail file is to open ProE, regenerate an assembly from a text file (Edit -> Regnerate -> From File), save the assembly and exit. To make the trail file, I opened ProE, set the working directory, opened an assembly, Edit -> Regenerate -> From File, specified the file, saved the assembly, and exited ProE. I then went and grabbed the trail file and renamed it to mytrailfile.txt.
So far, so good.
In my assembly, the only thing added to the Program file is this:
INPUT
CARGO_RADIUS NUMBER
CARGO_LENGTH NUMBER
HOLEPATTERN_NUMOFHOLES NUMBER
SPACEBTWNHOLES_INNER NUMBER
END INPUT
The quirky thing is this: I'm opening ProE using a Visual Basic command in an Excel file. Sometimes ProE opens with the default working directory as the location of this Excel file. When it does that, everything works fine; ProE runs and closes, and the model is updated just like I asked it to. But other times, ProE will open with a different directory as the default working directory. When it does this, even though it reads the trail file, it doesn't update the model.
My self-diagnosis is that either:
1) I just need to set ProE to open with the correct directory set as the default working directory. I bet I can do this with a config file? So I could save a config file that sets the default working directory, and then force ProE to open using this config file with a command line argument? or,
2) I need to edit my Pro/Program file to include an Execute section, ala thread554-100817
Of course, I'm just guessing on those things
thanks,
David