Results 1 to 4 of 4

Thread: Opening Drawing as Read-only causes AutoCAD to crash

  1. #1
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Default Opening Drawing as Read-only causes AutoCAD to crash

    Working with VB.Net and AutoCAD Map 2007/2008.

    I've been working on a dll and all the functions in it look like they work fabulously. Just one little problem, opening a file as read-only will make AutoCAD get a Fatal Error. I know it is something in this dll because AutoCAD only crashes when the dll is loaded. This dll has functions to add dictionaries, xrecords, and work with the map project of the active drawing. Any clues one could offer to what might cause the crash would be greatly appreciated.
    CAD Developer
    AutoCAD 2015 | 2017
    AutoCAD Civil 2015 | 2017
    Inventor 2017
    MS Visual Studio 2015

    LinkedIn

  2. #2
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Default Re: Opening Drawing as Read-only causes AutoCAD to crash

    I think I've found the problem but yet don't know why this occurs. The problem seams to occur then I try to get the map project for a drawing that is read-only. This is the code that I believe is causing the problem.
    Code:
    Project = Autodesk.Gis.Map.HostMapApplicationServices.Application.Projects(Dwg.Name)
    System = Project.Projection
    CAD Developer
    AutoCAD 2015 | 2017
    AutoCAD Civil 2015 | 2017
    Inventor 2017
    MS Visual Studio 2015

    LinkedIn

  3. #3
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Opening Drawing as Read-only causes AutoCAD to crash

    Without knowing a thing about Map, my guess would be that you are attempting to open the project with full rights, when only RO rights are available due to the drawing being RO.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  4. #4
    Member dmarcotte4's Avatar
    Join Date
    2003-10
    Posts
    43
    Login to Give a bone
    0

    Default Re: Opening Drawing as Read-only causes AutoCAD to crash

    I know nothing of map either, but this does seem strange. I am able to read/write (but not save) a read only database with vanilla AutoCAD. I suppose you could test the file or catch the exception as a work around.

    One thing though, “System” is a namespace and I would really hesitate to use this as a variable.

    Dan

Similar Threads

  1. 2009: Crash on Opening drawing
    By Richard McDonald in forum AutoCAD LT - General
    Replies: 6
    Last Post: 2013-12-18, 04:28 PM
  2. opening drawing in ACAD on network causes crash
    By Maverick91 in forum Networks
    Replies: 2
    Last Post: 2012-08-11, 12:22 PM
  3. 2011: AutoCAD 2011 crash when re-opening
    By jcparks in forum AutoCAD General
    Replies: 2
    Last Post: 2010-10-27, 09:41 PM
  4. Drawing Opening Problem in AutoCAD 2008
    By Jawed.Sheikh in forum AutoCAD Civil 3D - General
    Replies: 0
    Last Post: 2008-05-15, 07:13 AM
  5. Replies: 2
    Last Post: 2005-12-04, 03:31 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
  •