Results 1 to 5 of 5

Thread: AutoCAD version Alert

  1. #1
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    0

    Default AutoCAD version Alert

    Is there a nifty way to have AutoCAD pop up an alert box that states you are opening an EARLIER version of AutoCAD (other than the echo to the command line)? We're having trouble with people opening LDD 2006 drawings with Civil 3D 2007 and hosing the project from there on out when they save it to 2007. These projects are on their last leg and we'd just assume finish them out in LDD 2006. A big fat "ARE YOU SURE YOU WANT TO OPEN THIS FILE" pop up box would be cool. I'm sure there's a way to write a program but I figured I'd ask here first. With my luck, I'd write a program and it would be a simple command.

  2. #2
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: AutoCAD version Alert

    you could write a program that redefines the open command an example pseudo code would be:
    Code:
    ;select file to open
    ;make a copy of the file renaming it with a txt extension
    ;read the first line of the file
    ;if a wcmatch = particular version
    (progn
    ;display message box
    ;if message box = ok
    ;open drawing normally
    ;if not cancel command
    );end progn
    ;if not continue on normally
    ;close and erase the txt file created
    although I dont know if Lisp allows you to open that drawing and it doesnt prevent users from opening in explorer

  3. #3
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    0

    Default Re: AutoCAD version Alert

    You can't just rename a DWG file to TXT and read it can you? It's all garbled and encrypted.

  4. #4
    I could stop if I wanted to
    Join Date
    2003-12
    Location
    Pittsburgh, PA
    Posts
    355
    Login to Give a bone
    0

    Default Re: AutoCAD version Alert

    when viewed as a text file, the first characters are ACXXXX where XXXX are numbers. The number designates which acad version the file was saved. AC1021 is 2008, AC1018 is 2005, I think.

  5. #5
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: AutoCAD version Alert

    Quote Originally Posted by lpseifert View Post
    when viewed as a text file, the first characters are ACXXXX where XXXX are numbers. The number designates which acad version the file was saved. AC1021 is 2008, AC1018 is 2005, I think.
    Correct, that is the whole intention, I'm not sure on the numbers, as I dont have drawings to test it out on, but I think it is more like 2004-2006 is AC1018, 2007-2008 is AC1021

Similar Threads

  1. Replies: 3
    Last Post: 2007-06-17, 10:36 AM
  2. What version of AutoCAD LT can read AutoCAD 2002 DWG files?
    By eljaysf in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2007-06-16, 10:17 AM
  3. AutoCAD LT to AutoCAD Full version updates justification
    By pferreira in forum CAD Management - General
    Replies: 7
    Last Post: 2006-06-21, 02:39 PM
  4. AutoCAD 2007 DWG version to 2000 DWG version - File size increases
    By darin.marsden in forum AutoCAD General
    Replies: 2
    Last Post: 2006-05-17, 07:29 AM
  5. AutoCAD alert boxes.
    By peter.woodcock in forum AutoCAD General
    Replies: 2
    Last Post: 2004-11-11, 05:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •