+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Senior Member
    Using
    AutoCAD 2006
    Join Date
    Aug 2009
    Posts
    109

    Default Object Data problem

    Registered forum members do not see this ad.

    Hi All,

    When i am trying to update a field in Object data using lisp
    Code:
    (ade_odsetfield entName "Service" "InstalledCompletionDate" 0 "2")
    it is throwing an error "Ird internal error, Error: 131072 - Internal error". Please let me know how can i reslove this issue.
    Regards,
    Kumar.

  2. #2
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,948

    Default

    At a glance, it appears that you're using the correct parameters (at least in type)... From the Map developer documentation (LISP):

    Quote Originally Posted by AutoCAD Map 3D 2010 AutoLisp Reference, ade_odsetfield

    ade_odsetfield

    Sets a field value.


    Code:
    (ade_odsetfield ename table field recnum value)

    Returns T or nil.


    table Table name (string) can be up to 25 characters long. Must be unique, contain no spaces, and start with an alphanumeric character. field Field name (string) can be up to 31 characters long. Must be unique, contain no spaces, and start with an alphanumeric character. recnum Record number (integer); the first record number is 0. value New field value.

    To identify a unique record, you need to specify the table to which it belongs, the object to which it is attached, and its record number. The record number is necessary because more than one record from the same table can be attached to an object. For more information about records and record numbers, see ade_odaddrecord.

    ... For those who'd like to access the Map developer documentation (LISP) for themselves:

    Code:
    (vl-load-com)
    
    (defun c:AcMapLisp (/ file)
      (if
        (setq
            file (findfile
                   (strcat
                     (vl-registry-read
                       (strcat "HKEY_LOCAL_MACHINE\\"
                               (if vlax-user-product-key                    ; If 2013
                                 (vlax-user-product-key)                    ; Use 2013 function
                                 (vlax-product-key)                         ; Use legacy function
                               )
                       )
                       "ACADLOCATION"
                     )
                     "\\help\\acmaplisp.chm"
                   )
                 )
          )
        (startapp "explorer" file)
        (prompt "\n** File not found ** ")
      )
      (princ)
    )
    HTH
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    Senior Member
    Using
    AutoCAD 2006
    Join Date
    Aug 2009
    Posts
    109

    Default

    Registered forum members do not see this ad.

    Hi,

    Thanks for the reply.

    After some research i found the following.

    -> The entity which i am going to edit is placed by an existing .net command. When i am trying to edit, it is throwing "ird error".

    -> Now i placed the entity through my lisp code and sent the same line to set the Object data. It is working fine.

    So the .net command creating problems.

    Thanks,
    Kumar.

Similar Threads

  1. Object Data to Attribute Data to perfection
    By cris2fur in forum AutoCAD General
    Replies: 13
    Last Post: 30th Nov 2011, 06:39 am
  2. Extract data from 3d object
    By vesheff in forum AutoCAD 3D Modelling & Rendering
    Replies: 0
    Last Post: 27th May 2011, 07:33 pm
  3. Display object Data
    By Dustyg in forum AutoCAD General
    Replies: 0
    Last Post: 13th Jan 2011, 09:52 pm
  4. Object data
    By jomysimon in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 5
    Last Post: 21st Jan 2010, 09:19 am
  5. Updating Object Props from Object Data
    By Beulah721 in forum Civil 3D & LDD
    Replies: 1
    Last Post: 8th Apr 2009, 08:43 pm

Bookmarks

Posting Permissions

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