Hello Everyone,
Following this thread, I would like to ask if there is a way to bulk archive several .fem files.
The fact is that I finished a project I'd like to archive that contains about 40 models. To do this manually would take quite a long time.
If it is not possible, I think this would be a nice suggestion for a new feature.
Sincerely,
Solved! Go to Solution.
Solved by scudelari. Go to Solution.
Solved by PipePakPat. Go to Solution.
I don't think ASIM could archive multiple models once.
A regular .ach file is nothing but a zip file.
You can zip all your files together with some powerful zip packages, if you don't mind to include all result files.
Personally, I suggest people to keep their results, if their disk spaces permit. After all, a future running could give different results, though the change might be less than 1%, even smaller.
One can create a Windows batch file using NOTEPAD, which is saved with the *.bat file extension (search Google on batch files to learn more). The command line arguments to extract and create archives are as follows:
**Archiving multiple models - Create with model only from command line**
[Create with model only from command line]
aurg1: -explicit 'will not prompt user unless necessary
aurg2: "AlgFrame" 'Interface executable name (can be any name)
aurg3: "197926" 'Windows handle id (can be any number)
aurg4: -create 'command to create archive
aurg5: "C:\IGES\Brack" 'archive name
aurg6: "C:\IGES\Brack" 'model name (no extension)
aurg7: -model '"Model Only" option
The complete argument on command line would appear as follows if the path the the Algor installation directory is "C:\Program Files\Autodesk\Algor Simulation 2012" and the model name and path is "C:\IGES\Brack.fem":
"C:\Program Files\Autodesk\Algor Simulation 2012\Alg_Arch.exe" -explicit "AlgFrame" 197926 -create "C:\IGES\Brack" "C:\IGES\Brack" -model
**Archiving multiple models - Create with model and results from command line**
[Create with model and results from command line]
aurg1: -explicit 'will not prompt user unless necessary
aurg2: "AlgFrame" 'Interface executable name (can be any name)
aurg3: "197926" 'Windows handle id (can be any number)
aurg4: -create 'command to create archive
aurg5: "C:\IGES\Brack" 'archive name
aurg6: "C:\IGES\Brack" 'model name (no extension)
aurg7: -both '"Model and Results" option
The complete argument on command line would appear as follows if the path the the Algor installation directory is "C:\Program Files\Autodesk\Algor Simulation 2012" and the model name and path is "C:\IGES\Brack.fem":
"C:\Program Files\Autodesk\Algor Simulation 2012\Alg_Arch.exe" -explicit "AlgFrame" 197926 -create "C:\IGES\Brack" "C:\IGES\Brack" -both
**Archiving multiple models -Extract Model from command line**
[Extract Model from command line]
aurg1: -explicit 'will not prompt user unless necessary
aurg2: "AlgFrame" 'Interface executable name (can be any name)
aurg3: "197926" 'Windows handle id (can be any number)
aurg4: -extract 'command to extract archive
aurg5: "C:\IGES\Brack.ach" 'archive name
aurg6: "C:\IGES" 'directory to extract model files
The complete argument on command line would appear as follows if the path the the Algor installation directory is "C:\Program Files\Autodesk\Algor Simulation 2012" and the archive name and path is "C:\IGES\Brack.ach" and the 'extract to' directory is "C:\IGES":
"C:\Program Files\Autodesk\Algor Simulation 2012\Alg_Arch.exe" -explicit "AlgFrame" 197926 -extract "C:\IGES\Brack.ach" "C:\IGES"
Hello,
I not only tried, but also created a basic .bat file that archives everything in the current folder.
for %%f in (*.fem) do (
echo %%~nf
"C:\Program Files\Autodesk\Algor Simulation 2012\Alg_Arch.exe" -explicit "AlgFrame" 197926 -create "%CD%\%%~nf" "%CD%\%%~nf" -model
)
Thanks for the help.