Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API to check if file is AutoCAD DWG

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
wppdev
896 Views, 2 Replies

API to check if file is AutoCAD DWG

Hello,

 

Is there an API to check if DWG file is AutoCAD or Inventor DWG file?

I have tried using API GetIsInventorDWG() but it always returns value of VARIANT_TRUE.

I am is using COM (C++).

 

Thanks and Best Regards,

Vaibhav Kale

2 REPLIES 2
Message 2 of 3
philippe.leefsma
in reply to: wppdev

I recall you need to use FileManager.IsInventorDWG Method, so the file hasn't been opened yet in Inventor.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
wppdev
in reply to: philippe.leefsma

Thanks for the usggestion Philippe!.

FileManager.IsInventorDWG Method works correctly.

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

Post to forums  

Autodesk Design & Make Report