Results 1 to 4 of 4

Thread: Multiple Drawing Xref Detach

  1. #1
    100 Club
    Join Date
    2003-03
    Posts
    138
    Login to Give a bone
    0

    Default Multiple Drawing Xref Detach

    Is there a Lisp routine out there that will search through a series of drawings and detach one xreference? This would save us a ton of time. Otherwise we would have to open up each drawing one at a time. Thanks!

  2. #2
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Multiple Drawing Xref Detach

    Nope.

    But you can use this link to make a script file and batch run everything.

    : ) Happy Computing !

    kennet

  3. #3
    Member
    Join Date
    2012-06
    Posts
    3
    Login to Give a bone
    0

    Smile Re: Multiple Drawing Xref Detach

    Hi.. try uploading the tool I provided in autocad and go for "xd" command. Hope it will reduce manual steps for detaching Xref's.
    Thanks
    Bireshwar Mallick
    Attached Files Attached Files

  4. #4
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Multiple Drawing Xref Detach

    Actually, you can simply iterate a directory of drawings using an ObjectDBX wrapper which iterates the ModelSpace Block Object for blocks that IsXref = :vlax-true, and use the Delete Method on the ExternalReference Object:

    http://entercad.ru/acadauto.en/index...nce_object.htm

    ** Edit - Just be sure to check for the ExternalReference's Layer Object being locked (= :vlax-true (vla-get-lock <oLayer>)), prior to invoking the Delete Method in order to avoid a potential error. Restore the lock prior to invoking the SaveAs Method on the DBX Document Object.

    ... Lemon squeezy.
    Last edited by RenderMan; 2012-08-05 at 09:10 AM.

Similar Threads

  1. Replies: 1
    Last Post: 2012-06-06, 12:29 AM
  2. Xref overlay without detach
    By cadprog in forum Dot Net API
    Replies: 0
    Last Post: 2008-11-04, 08:46 AM
  3. Unable to detach a Xref
    By sherflor in forum AutoCAD General
    Replies: 6
    Last Post: 2006-03-09, 01:34 PM
  4. Prompt to detach xref if erased from drawing
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2006-02-14, 05:54 PM
  5. Cannot detach a xref
    By kleenhippie in forum AutoCAD General
    Replies: 2
    Last Post: 2005-08-24, 04:03 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
  •