Results 1 to 10 of 10

Thread: xref list extraction

  1. #1
    I could stop if I wanted to
    Join Date
    2012-11
    Location
    Brisbane, Australia
    Posts
    239
    Login to Give a bone
    0

    Default xref list extraction

    Hey all

    I am trying to find a way of extracting a list of all the xref names from a drawing but so far i have had no luck. does anyone know how to achieve this?

  2. #2
    All AUGI, all the time
    Join Date
    2010-10
    Posts
    535
    Login to Give a bone
    0

    Default Re: xref list extraction

    Quote Originally Posted by matthew.e.mortimer342462 View Post
    Hey all

    I am trying to find a way of extracting a list of all the xref names from a drawing but so far i have had no luck. does anyone know how to achieve this?
    perhaps
    Code:
    (defun FindXref (/ blk lst)
          (while (setq blk (tblnext "block" (not blk)))
                (if (= 4
                       (logand 4
                               (cdr (assoc 70
                                           (tblsearch
                                                 "BLOCK"
                                                 (setq bn (cdr (assoc 2 blk)))
                                                 )
                                           )
                                    )
                               )
                       )
                      (setq lst (cons bn lst))
                      )
                )
          lst
          )

  3. #3
    All AUGI, all the time
    Join Date
    2010-06
    Posts
    962
    Login to Give a bone
    0

    Default Re: xref list extraction

    Another with Vla functions .

    Code:
    (defun XrefList (/ lst)
      (vl-load-com)
      (vlax-for block (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
        (if (eq :vlax-true (vla-get-IsXref block))
          (setq lst (cons (vla-get-name block) lst))
        )
      )
      lst
    )

  4. #4
    I could stop if I wanted to
    Join Date
    2012-11
    Location
    Brisbane, Australia
    Posts
    239
    Login to Give a bone
    0

    Default Re: xref list extraction

    Cheers Fellas, i didnt think about approaching the problem this way i was looking for a system variable or command, does such way not existing?

  5. #5
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: xref list extraction

    Quote Originally Posted by matthew.e.mortimer342462 View Post
    Cheers Fellas, i didnt think about approaching the problem this way i was looking for a system variable or command, does such way not existing?
    Check out the Express Tool Propulate. From the Menu Express => File tools => Update Drawing Property Data. The default will add a list of loaded Xrefs and Fonts to the Comments section of the Summary tab of Drawing Properties. You can customize it however you like. The File tools are only in the Menu not in the Ribbon in 2012.

  6. #6
    I could stop if I wanted to
    Join Date
    2012-11
    Location
    Brisbane, Australia
    Posts
    239
    Login to Give a bone
    0

    Default Re: xref list extraction

    Cheers mate, ive never seen that tool before. it looks interesting but all i can seem to do with it is update my drawing from the used template. maybe im doing it wrong.
    these are my steps:
    PROPULATE
    Update
    Current

    ive tried a few other combinations bit they all seem to relate specifically to the template.

  7. #7
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: xref list extraction

    Quote Originally Posted by matthew.e.mortimer342462 View Post
    Cheers mate, ive never seen that tool before. it looks interesting but all i can seem to do with it is update my drawing from the used template. maybe im doing it wrong.
    these are my steps:
    PROPULATE
    Update
    Current

    ive tried a few other combinations bit they all seem to relate specifically to the template.
    Enter _dwgprops at the command line, found in the File menu as Drawing Properties. In the dialog box that comes up on the Comments section of the Summary tab should be a list of loaded Xrefs, Fonts and Images. If not you may have to Edit the Propulate Template and run it again. In the Comments section make sure you have => @[XREFLIST] @[FONTLIST] @[IMAGELIST]
    That puts the lists in the Drawing Properties when you update the current drawing. Been a while, but I thought it was in the default template. I have my self as the Author and a handful of Custom properties which are referenced with fields in all my layouts such as the number of pages so that if another page is added to the set it only has to be updated in Drawing Properties instead of on every sheet.

  8. #8
    I could stop if I wanted to
    Join Date
    2012-11
    Location
    Brisbane, Australia
    Posts
    239
    Login to Give a bone
    0

    Default Re: xref list extraction

    thats pretty cool mate, i dont suppose there is a way of extracting that data into lisp?

  9. #9
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: xref list extraction

    Once it's been added to Drawing Properties sure:
    http://forums.augi.com/showthread.ph...o-they-mix-!#3

  10. #10
    Member
    Join Date
    2015-11
    Location
    Highlands ranch, CO
    Posts
    29
    Login to Give a bone
    0

    Default Re: xref list extraction

    I found the attached routine that lists XREFs both attached and overlayed and poops out a .txt file that lists the Xrefs.
    Can be found here as well: http://forums.autodesk.com/t5/Visual...t/true#M292314
    XrefTree.lsp
    ~Greg

Similar Threads

  1. XREF Manager to list if xrefs are attached to another Xref
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 5
    Last Post: 2014-10-28, 04:13 AM
  2. Add handleID or entity properties to data extraction tool selections list
    By Wish List System in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2014-05-09, 09:32 PM
  3. 2014: List a layer in Xref
    By nextvkin in forum AutoCAD LT - General
    Replies: 4
    Last Post: 2013-09-18, 04:30 PM
  4. Xref List to Dialog Box
    By fletch97 in forum AutoLISP
    Replies: 5
    Last Post: 2009-09-03, 02:22 AM
  5. 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

Posting Permissions

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