Results 1 to 7 of 7

Thread: autocad LIsp for change the attributes value in object data.. one at a time globally

  1. #1
    Member
    Join Date
    2017-09
    Posts
    9
    Login to Give a bone
    0

    Default autocad LIsp for change the attributes value in object data.. one at a time globally

    hi all,

    please anyone provide the lisp for change the attribute value one at a time in object data of block reference.

    example: suppose i need CO288E instead of CO288(10M). How to change this one at a time through out drawing of 2000 blocks. For more details find the attached image and drawing.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    555
    Login to Give a bone
    0

    Default Re: autocad LIsp for change the attributes value in object data.. one at a time globally

    Any reason to not use FIND will replace all very quickly no code needed.

  3. #3
    Member
    Join Date
    2017-09
    Posts
    9
    Login to Give a bone
    0

    Default Re: autocad LIsp for change the attributes value in object data.. one at a time globally

    i need value in object data not in block reference. FIND command won't find values in object data rite...

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

    Default Re: autocad LIsp for change the attributes value in object data.. one at a time globally

    This will get you started: https://forums.autodesk.com/t5/autoc.../6009451#M4623
    The functions that deal with object data all start with "ade_od".
    I've only used it for getting information with code like
    Code:
    (ade_odgetfield ent (car(ade_odgettables ent)) "ST_ADDR" 0)
    for getting a street address.
    Good luck!

  5. #5
    Member
    Join Date
    2017-09
    Posts
    9
    Login to Give a bone
    0

    Default Re: autocad LIsp for change the attributes value in object data.. one at a time globally

    tom,

    what's command for this to start.

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

    Default Re: autocad LIsp for change the attributes value in object data.. one at a time globally

    That was just an example of code I use to get the street address from parcel object data imported from our GIS.
    To use my code your GIS layers, tables, and field names would have to be exactly the same.

    You're going to have to do the code yourself. Following the instructions in the link above will give you an AitoCAD Map AutoLISP Reference acmaplisp.chm in a zip file acmaplisp.zip which should get you started.

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

    Default Re: autocad LIsp for change the attributes value in object data.. one at a time globally

    Quote Originally Posted by Yuvi0967 View Post
    hi all,
    example: suppose i need CO288E instead of CO288(10M).
    Hi,

    So should the rest of the text string be the same as it is (10M)?
    eg: from CO288(10M) to CO288E(10M) ?

    Are you wanting to change the value by The Tag string 'UNIT1' or by Text string?
    Should the name of the block is the only one that you would like the program to run on?

Similar Threads

  1. Extract OBJECT DATA in Lisp
    By JeffClark in forum AutoCAD Customization
    Replies: 5
    Last Post: 2019-12-05, 07:42 PM
  2. Replies: 0
    Last Post: 2014-01-24, 07:48 PM
  3. Replies: 0
    Last Post: 2011-11-15, 01:35 PM
  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
  •