See the top rated post in this thread. Click here

Results 1 to 6 of 6

Thread: Extract OBJECT DATA in Lisp

  1. #1
    100 Club JeffClark's Avatar
    Join Date
    2002-07
    Location
    South Jersey
    Posts
    137
    Login to Give a bone
    0

    Default Extract OBJECT DATA in Lisp

    GIS Mapping
    I have a drawing from the County containing every Lot in the County.
    The lots are Closed Polylines, with Object Data containing the Block and Lot number info.

    I want to write a Lisp routine where I select the Closed Polyline, then pick a point, and ACAD inserts an attributed block at that point with the Block & Lot number filled in for me (I already have this block, use it almost every project).

    The routine should be easy for me to write, but I have not been able to determine how to extract the Object Data.
    A plain old ENTGET does not get the Object Data.
    It's apparently not a ENTNEXT thing, that just seems to get me the next polyline in the drawing.

    All I need is to set a variable to the value of the Object Data, and I'll be able to complete the routine.

    My googleing yielded nothing...

    Thanks Guys!
    Jeff

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    3,276
    Login to Give a bone
    1

    Default Re: Extract OBJECT DATA in Lisp

    I have a routine that labels most of our GIS stuff from contour elevations to parcel information. Selecting a lot gives the options to label Area, Street number, TaxID#, Owner, Owner+Address, List of data, or open links to lot specific Property Appraiser, online GIS map, or Tax information.

    Problem is all this information is stored differently by everybody so my routine can only serve as an example to get you started.

    Hope it helps,
    Attached Files Attached Files
    Tom Beauford P.S.M. - Civil 2020 on Windows 10 Enterprise
    Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516 Home Page

  3. #3
    100 Club JeffClark's Avatar
    Join Date
    2002-07
    Location
    South Jersey
    Posts
    137
    Login to Give a bone
    0

    Default Re: Extract OBJECT DATA in Lisp

    Thanks Tom.
    I'll look that routine over and see if I can figure it out.

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

    Default Re: Extract OBJECT DATA in Lisp

    Object Data (OD) is stored differently, as it is not a part of the Entity Class, which applies to all graphical objects.

    You'll need to identify the names of the OD nodes you need to extract, and then use the applicable ADE_* LispFunctions to extract... Or simply use MAPQUERY Command for same.


    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3620, Core i7-7700K 4.2GHz, 64GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000

  5. #5
    Civil Engineering Moderator MHultgren's Avatar
    Join Date
    2000-12
    Location
    Central Iowa
    Posts
    1,429
    Login to Give a bone
    0

    Default Re: Extract OBJECT DATA in Lisp

    @BB, I have a different need, but similar to the above. I have the OD table created and the fields attached to my pipes, now I need to get the actual OD transferred to the pipes as attached Object Data. I will dig through the lisp routine and see what I can make use of along with what I may need to tweak or rebuild. But since these are C3D Pipes and the data is already there, just trying to figure out the easiest method to copy that data into the appropriate OD Fields.
    Mark Hultgren
    Just a Lurker
    http://www.MKW-Ind.com
    Blog
    Socializing??

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

    Default Re: Extract OBJECT DATA in Lisp

    Quote Originally Posted by MHultgren View Post
    ... But since these are C3D Pipes and the data is already there, just trying to figure out the easiest method to copy that data into the appropriate OD Fields.
    Not sure that I follow - You're wanting to duplicate C3D Pipe info (data already there) as OD?
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3620, Core i7-7700K 4.2GHz, 64GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000

Similar Threads

  1. 2014: Added object data fields to Polyline, but object data is empty or zero
    By tntdraftsol in forum AutoCAD Map 3D - General
    Replies: 6
    Last Post: 2015-07-24, 12:20 PM
  2. Extract Elevation Object Data and Assign to Polyline Contour
    By clarkl in forum AutoCAD Map 3D - General
    Replies: 1
    Last Post: 2009-04-01, 04:53 PM
  3. Create lisp to extract data from excel file
    By Lions60 in forum AutoLISP
    Replies: 7
    Last Post: 2008-01-30, 04:32 AM
  4. LISP Routine to get Object Data
    By gisdude in forum AutoLISP
    Replies: 1
    Last Post: 2007-05-01, 07:55 PM
  5. Replies: 1
    Last Post: 2007-04-07, 12:39 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
  •