Simulation Mechanical Forums (Read-Only)
Welcome to Autodesk’s Simulation Mechanical Forums. Share your knowledge, ask questions, and explore popular Simulation Mechanical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bulk Archive

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
scudelari
563 Views, 4 Replies

Bulk Archive

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,

Tags (1)
4 REPLIES 4
Message 2 of 5
S.LI
in reply to: scudelari

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.

----------------------------------------------------------------------------------------------
If this response answers your concern, please mark it as "solved".
Message 3 of 5
PipePakPat
in reply to: scudelari

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"

 

Pat Tessaro, P.E.
Premium Support Specialist – Simulation

Autodesk, Inc.
6425 Living Place
Suite 100
Pittsburgh, PA 15206
Message 4 of 5
scudelari
in reply to: scudelari

Thanks a lot for that.

 

I'll try running on my models and I'll get back to you.

 

Thanks!

Message 5 of 5
scudelari
in reply to: scudelari

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report