CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   Load MDL file from command line (https://www.cfd-online.com/Forums/siemens/56742-load-mdl-file-command-line.html)

Martin_Dirndorfer July 29, 2008 12:53

Load MDL file from command line
 
Hello

We are trying to integrate StarCD into a PLM System. So the MDL files are stored in the database and are exported on the local filesystem for viewing in ProStar.

Is there any way to start Prostar from the command line with the mdl file as argument, so that you do not have to first start Prostar and then use file open ?

James July 30, 2008 09:00

Re: Load MDL file from command line
 
Prostar has some command line interfce switches such as - batch. Couldn't find a list easily - you could try support.

A second way would be to put an ifile statement in the PROINIT file so that it runs a local script file which could then load the model etc.

steve July 30, 2008 10:57

Re: Load MDL file from command line
 
Something like the following in a shell script works for me.

!/bin/sh

source /users/Install/v3260/etc/setstar

case="starcase"

prostar -batch < < EOD

x

$case

n

n

vc3d 0 1 10 0 1 10 0 1 10

cset all

cplo

quit save

EOD

Note the double less than characters should be adjacent to one another.



All times are GMT -4. The time now is 20:17.