.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Export IGES via the .NET API

5 REPLIES 5
Reply
Message 1 of 6
schaudha
1378 Views, 5 Replies

Export IGES via the .NET API

Hello,

 

Can anyone tell me how do I export the current AutoCAD session to an IGES file from the .NET API?

 

The closest I came was running the IGESEXPORT command from the SendStringToExecute() function of the Document object. However, it still is not fully automated, since it always asks a file name to export to, something I cannot pass through the command itself.

 

SC

 

 

 

5 REPLIES 5
Message 2 of 6

IGES export is done by a separate executable, which is in the AutoCAD program files folder, with the name Aruba.exe.

 

You may be able to use it directly on drawing files that aren't open in AutoCAD, like so:

 

Aruba.exe -i <input.dwg> -o <output.igs>

 Within AutoCAD the IGESEXPORT command prompts for objects, and then simply WBLOCK's the selected objects to a DWG file in your temp folder, which it then hands off to Aruba.exe.

 

What I don't know, is whether the WBLOCK'ed file has been fiddled with in any way, or filtered to remove anything in the selection that is either non-exportable, or for some other reason, not included.

Message 3 of 6


@DiningPhilosopher wrote:

...You may be able to use it directly on drawing files that aren't open in AutoCAD, like so:

 

Aruba.exe -i <input.dwg> -o <output.igs>

Hi, Tony! It is look like impossible to start Aruba.exe (from directory of AutoCAD 2013) as a standalone application because of:

D:\Program Files\Autodesk\AutoCAD 2013>aruba.exe -i test.dwg -o test.igs
aruba.exe: failed to get valid license.

But if Aruba.exe from directory of AutoCAD 2012 work without license error.

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

Message 4 of 6

Hi Alex. I never tried it on 2013, but just did now and you're right. 

 

The OP can try creating a simple console application called aruba.exe, and temporarily replace the original aruba.exe in the AutoCAD folder with the console app, and see what command line it gets when IGESEXPORT starts it.  

 

It looks like Autodesk has decided to make it difficult-to-impossible to batch-export to IGES, which of course, is a real shocker.  I guess AutoCAD's price tag doesn't justify something like that.

Message 5 of 6
schaudha
in reply to: schaudha

Done as per DiningPhilosopher's suggestion:

 

The 2013 aruba.exe takes a number of parameters. I could run this from the command line and export an IGES. Please fill in the product key, license type and the applicable paths and/or the other arguments as appropriate in your case:

 

aruba.exe -productKey <product key> -productVersion 2013.0.0.F -productLicenseType <product license type> -productResourcePath "C:\Program Files\Autodesk\AutoCAD 2013\AdlmRes\en-US" -productLicenseLocale en_US -i C:\Drawings\sample.dwg -o C:\Drawings\sample.igs

Message 6 of 6

Well, good to see you got it working.

 

Batch exporting to other file formats always seems to be hindered by something or other.

 

Maybe it's just a big coincidence 😎

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost