Author Topic: The notification about attempt of opening newer dwg format than it can be opened  (Read 1702 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Hi all,

How can I get the notification about attempt of opening newer dwg format than it can be opened in current AutoCAD?

I've searched the similar events in the DocumentCollection Events and Database Events of the ObjectARX SDK documentation but I found nothing...

Thank you.

BillZndl

  • Guest
Possibly helpful?

http://through-the-interface.typepad.com/through_the_interface/2006/08/breaking_it_dow.html

Quote from: Kean
"but how do I check a DWG's version before I read it in?" Luckily, the first 6 bytes of any DWG indicate its version number

Andrey Bushman

  • Swamp Rat
  • Posts: 864
I have no problem with defining of DWG version. My question is about other theme.

BillZndl

  • Guest
I see.
I was thinking you'd have to test the file before attempting to open it.

MC0.0 - DWG from Rel. 1.1
AC1.2 - DWG from Rel. 1.2
AC1.4 - DWG from Rel. 1.4
AC1.50 - DWG from Rel. 2.0
AC2.10 - DWG from Rel. 2.10
AC1002 - DWG from Rel. 2.5
AC1003 - DWG from Rel. 2.6
AC1004 - DWG from Rel.9
AC1006 - DWG from Rel.10
AC1009 - DWG from Rel.11/12 (or LT R1/R2)
AC1012 - DWG from Rel.13 (or LT95)
AC1014 - DWG from Rel.14, 14.01 (or LT97/LT98)
AC1015 - DWG from AutoCAD 2000/2000i/2002 (or LT, Map or relative Desktop version)
AC1018 - DWG from AutoCAD 2004/2005/2006 (or other product in the "2004", "2005" or "2006" family)
AC1021 - DWG from AutoCAD 2007/2008/2009 (or other product of the "2007", "2008" and "2009" families)
AC1024 - DWG from AutoCAD 2010/2011/2012 (or other product of the "2010", "2011" and "2012" families)
AC1027 - DWG from AutoCAD 2013/2014/2015/2016/2017 (or other product of the "2013", "2014", "2015", "2016" and "2017" families)

Andrey Bushman

  • Swamp Rat
  • Posts: 864
I was thinking you'd have to test the file before attempting to open it.
User can try to open DWG version newer than AutoCAD can open through Windows Explorer or OpenFile dialog. I want to be notified about it through an event.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Perhaps using a command reactor and checking for a 'command failed' event will work. In Lisp (I don't use the .NET API) this works in principle.