The Alias Batch File Translator using command-line

The Alias Batch File Translator using command-line

Anonymous
Not applicable
1,022 Views
5 Replies
Message 1 of 6

The Alias Batch File Translator using command-line

Anonymous
Not applicable

Hello Everyone ,

 

I am trying to understand how to use Alias batch file translator for converting alias files saved in a folder .

 

I did not completely understand the process explained in the help file on using command line options

 

link

 

can some body help me in understanding with an example for converting multiple alias files to  IGES  and Wref  unattended

 

I am using Alias 2017 standalone on my PC

 

Thank you 

0 Likes
1,023 Views
5 Replies
Replies (5)
Message 2 of 6

christoph_03
Autodesk
Autodesk

Hi,

 

if you do the following e.g. store the line in a batch.bat file and execute it:

 

for %%i in (c:\batch\*.wire) do "C:\Program Files\Autodesk\Alias2018\bin\AliasToIges.exe" -i %%i -o %%~ni.iges -productKey 966j1 -productVersion 2018.0.0.F -productLicenseType NW

 

this line takes every wire from the c.\batch directory and converts it to an iges file. The iges files are stored in c:\batch as well but you can of course change that.

 

I hope that helps.

 

Regards, Christoph

Message 3 of 6

c3systems
Advocate
Advocate

Hi Christoph,

 

Thanks for explaining the undocumented feature. But I think the user is on 2017 StandAlone.

 

So the command line should be 

 

AliasToIges -i inputwirefile.wire -o outputigesfile.igs -productKey 966i1 -productVersion 2017.0.0.F -productLicenseType SA

 

Please confirm.

 

Also, it would be a good idea to update the documentation on the various environment variables and standalone utilities, especially after the demise of DirectConnect.

 

Message 4 of 6

christoph_03
Autodesk
Autodesk

Hi Rajeev,

 

yes you are right, for the 2017 and for standalone your command line is right. I just tested it and it works.

 

Thanks, regards,

Christoph 

0 Likes
Message 5 of 6

Anonymous
Not applicable

Hello frandrc and Christoph ,

 

Thank you for your quick replies

 

As per you i should type in the command line

 

AliasToIges -i inputwirefile.wire -o outputigesfile.igs -productKey 966i1 -productVersion 2017.0.0.F -productLicenseType SA

 

Suppose i have a folder on my desktop contains wire files .... C:\Users\siddhardha\Desktop\for conversion

 

and another folder for saving the converted files .....C:\Users\siddhardha\Desktop\converted file

 

Then my command line should be as below

 

AliasToIges -i C:\Users\siddhardha\Desktop\for conversion -o C:\Users\siddhardha\Desktop\converted files -productKey 966i1 -productVersion 2017.0.0.F -productLicenseType SA

 

Please correct me if i am wrong .As i am not in office i can not test it now,but defintely i will come back soon after my vacation .

 

Thank you

 

 

 

 

 

 

 

 

0 Likes
Message 6 of 6

christoph_03
Autodesk
Autodesk

Hi Rajeev,

 

in your case it should be:

 

 

for %%i in ("C:\Users\siddhardha\Desktop\for conversion\*.wire") do "C:\Program Files\Autodesk\Alias2018\bin\AliasToIges.exe" -i %%i -o "C:\Users\siddhardha\Desktop\converted files\%%~ni.iges" -productKey 966i1 -productVersion 2017.0.0.F -productLicenseType SA

 

You need this for loop to convert every wire file to iges. So I embedded the command line into a for loop. For each wire in you "for conversion" directory an iges file is generated into your "converted files" directory.

 

I hope that helps, Regards,

Christoph

0 Likes