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

How to save a DWG file into different format?

2 REPLIES 2
Reply
Message 1 of 3
alanchen123
506 Views, 2 Replies

How to save a DWG file into different format?

I am using RealDWG and try to output the DWG drawing into different format, including DWG and DXF format. However, in the library, it seems there are only the following 6 functions:

 

    acdbSaveAsR14(AcDbDatabase* pDb, const ACHAR* filename),

acdbSaveAs2000(AcDbDatabase* pDb, const ACHAR* fileName),

    acdbSaveAs2004(AcDbDatabase* pDb, const ACHAR* fileName),

acdbDxfOutAsR12(AcDbDatabase* pDb, const ACHAR* fileName, const int precision = 16),

    acdbDxfOutAs2000(AcDbDatabase* pDb, const ACHAR* fileName, const int precision = 16),

acdbDxfOutAs2004(AcDbDatabase* pDb, const ACHAR* fileName, const int precision = 16),

 

for outputting as DWG R14,DWG 2000, DWG 2004, DXF R12, DXF 2000, DXF 2004 accordingly.

 

Are there any other ways that can let me output as other format such as DWG 2007, 2010, 2013, etc.

 

Thanks

Tags (4)
2 REPLIES 2
Message 2 of 3

What about AcDbDatabase::saveAs(...,AcDb::AcDbDwgVersion dwgVer,...) method?

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | 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 3 of 3
artc2
in reply to: Alexander.Rivilis

And, ever since Acad/RealDWG 2010, all of the acdbSavecAsxxx and acdbDxfOutAsxxx functions are just inlines that call AcDbDatabase::saveAs() or AcDbDataBase::dxfOut() anyway.   🙂

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

Post to forums  

Autodesk Design & Make Report

”Boost