Results 1 to 5 of 5

Thread: ACCESS EXTENDED DATA???

  1. #1
    Member
    Join Date
    2013-08
    Posts
    46
    Login to Give a bone
    0

    Default ACCESS EXTENDED DATA???

    I have attached a screen shot of my properties menu of what I am trying access via autolisp or visual lisp. I am trying to sort the electrical devices in my plan by the style name that is in the extended data (or key). All devices are on *-elec-fx-* layer. when I use (entget(car(entsel))'("*")) to view the xdata the information I am looking for is not there. (see attached extended data2.png). How can I get to this information? I am trying to avoid making a layer for every device and filter it that way.

    I am needing to count the number of each device and then send that number to a variable where I will then use a field in a table to autofill the table.

    Thanks in advance for any help.
    Attached Images Attached Images

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

    Default Re: ACCESS EXTENDED DATA???

    Not everything holds its information in XData. The information may be stored as XRecords in a dictionary on the object; or references to XRecords in a dictionary on the Named Object Dictionary; or through properties embedded in the object that are not accessible through LISP.

  3. #3
    Member
    Join Date
    2013-08
    Posts
    46
    Login to Give a bone
    0

    Default Re: ACCESS EXTENDED DATA???

    Could I access it via .net? If so does anyone know how?

  4. #4
    Member
    Join Date
    2013-08
    Posts
    46
    Login to Give a bone
    0

    Default Re: ACCESS EXTENDED DATA???

    I made a post on cadtutor and someone posted the lisp below. This will dump everything associated with it. I was able to get the data I needed listed beside Name (RO) =. Look at the attached png and you will be able to see what all it returned. Now I just have to figure out how to filter for this data. Any ideas? Should I call the dumpit function and then filter for what I need in the return or is there a way I can just get the info I need to return?

    Code:
    ;;;===================================================================; 
    ;;; DumpIt                                                            ; 
    ;;;-------------------------------------------------------------------; 
    ;;; Dump all methods and properties for selected objects              ; 
    ;;;===================================================================; 
    (defun C:DumpIt ( / ent) 
      (while (setq ent (entsel)) 
        (vlax-Dump-Object 
          (vlax-Ename->Vla-Object (car ent)) 
        ) 
      ) 
      (princ) 
    )
    Attached Images Attached Images

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

    Default Re: ACCESS EXTENDED DATA???

    From my post on one of your other threads, you *really* need to read the API for your product. It will describe the methods and properties applicable to the objects.

Similar Threads

  1. Extended Data
    By jkramer in forum ACA General
    Replies: 0
    Last Post: 2012-10-16, 02:54 PM
  2. Import GIS Parcel data to C3D Parcels with extended data
    By civil3d.wishlist1941 in forum Civil 3D Wish List
    Replies: 0
    Last Post: 2009-10-06, 04:51 PM
  3. extended data
    By cparvez in forum VBA/COM Interop
    Replies: 4
    Last Post: 2009-07-17, 09:17 PM
  4. Missing Extended Data Tab
    By JKEDMONDSON in forum ACA General
    Replies: 5
    Last Post: 2007-10-18, 07:28 PM
  5. Three programs using EXTENDED ENTITY DATA
    By aaronic_abacus in forum AutoLISP
    Replies: 1
    Last Post: 2007-01-02, 01:13 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
  •