In general I have several environment variables. See example Satellite_V02.
Only one environment variable is no suffisant
When reading the
NASTRAN file, it would be necessary to store in a dictionary the
absolute path of the INCLUDE in key and the environment variable in
value.
Then, when writing the file, we use the dictionary to recompose the path of the INCLUDE with the environment variable
Example Satellite_V02:
The satellite_V02_Variable_Env_SimX.bat file defines the variables
SET Satellite_V02_base=M:\ACA\Satellite_V02
SET Satellite_V02_INCLUDE=%Satellite_V02_base%/INCLUDE
The NASTRAN File satellite_V02_ACA_QS_SOL101_VarEnv.dat
INCLUDE 'Satellite_V02_INCLUDE:Satellite_V02_Panneau_Etoile.dat'
INCLUDE 'Satellite_V02_INCLUDE:Satellite_V02_Tube_Cone.dat'
dico_Path_VarEnv = {"M:\ACA\Satellite_V02\INCLUDE\Satellite_V02_Panneau_Etoile.dat" : Satellite_V02_INCLUDE ,
"M:\ACA\Satellite_V02\INCLUDE\Satellite_V02_Tube_Cone.dat" : Satellite_V02_INCLUDE ,
}
what do you think about that ?