See the top rated post in this thread. Click here

Results 1 to 10 of 10

Thread: Object open for read!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    All AUGI, all the time arshiel88's Avatar
    Join Date
    2005-02
    Location
    Off the Grid
    Posts
    560
    Login to Give a bone
    0

    Question Object open for read!

    I hate drawings that were not organized on layers.
    and so i wish to write a program to monitor newly added objects.

    i thought it would be as simple as this;

    Code:
    Private Sub AcadDocument_ObjectAdded(ByVal Object As Object)
           If TypeName(Object) = "IAcadDimRotated" Then Object.Layer = "Dim"    
    End Sub
    This is supposed to be monitoring Rotated Dimension Objects and put them in the "Dim" layer, but it has this error when a rotated dimension is added.

    Run-time error '-2145386418 (80200004e)';
    Object was open for read.

    Does anybody know how to fix this?
    Last edited by arshiel88; 2006-07-13 at 02:29 PM.

Similar Threads

  1. Open Read-Only: The ability to open a worksharing enabled file in a read only mode.
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 5
    Last Post: 2012-09-05, 07:02 PM
  2. Replies: 2
    Last Post: 2011-04-28, 02:04 AM
  3. open as read only
    By Ning Zhou in forum Revit Architecture - General
    Replies: 6
    Last Post: 2010-04-05, 05:08 PM
  4. No read only warning when dwg already open
    By CADMama in forum AutoCAD General
    Replies: 5
    Last Post: 2007-10-22, 06:19 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
  •