Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Extract all Xdata

  1. #1
    Login to Give a bone
    0

    Default Extract all Xdata

    Hi all,

    We are wanting to extract all xdata from a number of drawings. By doing some reading it sounds you need to know the values to request the data to be extracted, we are unsure as these are not our drawings.
    Has anyone got a "General" extract all Xdata routine?

    Thanks

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,103
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    The Express Tools' XDLIST command will allow you to see the xdata from selected objects.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    We are after a routine that will scan the entire file, as there are 55,000 items and I don't fancy picking them one by one.

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,103
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    Then have a look at the xdata.lsp file in the Express folder of your AutoCAD folder. It should be able to get you started.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  5. #5
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    It seem not to be the solution

    From the XDATA.lsp , at the express

    XDATA
    ;;;
    ;;; Program that attaches extended data types to a selected entity.
    ;;;
    ;;; After selecting an entity and entering an application name for the
    ;;; extended data, the following types of extended data are prompted for:

  6. #6
    AUGI Addict fixo's Avatar
    Join Date
    2005-05
    Location
    Pietari, Venäjä
    Posts
    1,269
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    Please, upload a drawing just with one item
    which is contains this Xdata and provide
    the application name to lookup , this could be saved in
    Excel file easily
    (I'm using A2010 for info)

  7. #7
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,103
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    Quote Originally Posted by devitg.89838 View Post
    It seem not to be the solution

    From the XDATA.lsp , at the express
    The XDLIST routine will do this for one object at a time. It is listed further down in the initial comments.
    ;;; XDLIST
    ;;;
    ;;; Program that lists the Xdata associated with an application for the
    ;;; selected entity.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  8. #8
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    wheretosend.txt



    Opie , yes it is true , but it can be fix to work in all the XDATA in a DWG .
    Please upload or send it offline a sample dwg in 2007

  9. #9
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    Its very difficult to get "all" XDATA. Its not predefined by design, so to get "all" XDATA you would need to iterate every object in the file, both entities and non-visual entities.

  10. #10
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,103
    Login to Give a bone
    0

    Default Re: Extract all Xdata

    Quote Originally Posted by devitg.89838 View Post
    Opie , yes it is true , but it can be fix to work in all the XDATA in a DWG .
    And that is why I suggested looking at that file to get started.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 6
    Last Post: 2015-08-31, 04:05 PM
  2. Help me with xdata
    By rdogomes in forum AutoLISP
    Replies: 13
    Last Post: 2010-09-16, 06:42 PM
  3. xdata
    By san_k4 in forum VBA/COM Interop
    Replies: 3
    Last Post: 2005-09-19, 10:29 PM
  4. xdata
    By fletch97 in forum AutoLISP
    Replies: 1
    Last Post: 2005-08-31, 05:52 PM
  5. Possible xdata?
    By whdjr in forum AutoLISP
    Replies: 7
    Last Post: 2004-08-25, 03:32 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
  •