Results 1 to 3 of 3

Thread: finding xref

  1. #1
    Member
    Join Date
    2009-09
    Posts
    32
    Login to Give a bone
    0

    Default finding xref

    If in a drawing another drawing is xref at multiple locations i.e. in model space and some paper space layouts also. Is their any way to find all the locations where that xref exists in the drawing or do we need to do it manually by moving to each paper space layout and then running some object selection command to find if the xref exists there.

    Thanks for all the previous replies.

  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: finding xref

    I dont have any code for it, but you could write a simple lisp routine that will select all xreferences in the current space and give you a count as to how many objects are in the selection set.
    use filters to select only xreferences and the sslength command to find out how many were selected. you could even use arguments to input the name. I'll see if I can some up with something and post back.

  3. #3
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: finding xref

    Using a bit of autolisp code, you can find all locations.

    Code:
    
    (ssget "_X" '((0 . "INSERT")(2 . "BlockName")))
    ;;; iterate the result, checking DXF group 410 to find out
    ;;; in which layout the item resides.
    
    If you want to stick with built in commands, the ._FILTER command can select them all to give you a total, but most commands (if not all) will only work on objects in the current space.
    R.K. McSwain | CAD Panacea |

Similar Threads

  1. Replies: 0
    Last Post: 2014-11-30, 01:16 PM
  2. Replies: 3
    Last Post: 2012-07-12, 03:22 PM
  3. 2008 SCALE 1:100 xref xref xref xref- scale list issues
    By Apsis0215 in forum AutoCAD Customization
    Replies: 2
    Last Post: 2008-11-21, 08:17 PM
  4. Replies: 13
    Last Post: 2008-08-20, 09:42 AM
  5. Replies: 12
    Last Post: 2005-08-10, 07:50 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
  •