Jump to content

Recommended Posts

Posted

Hi All,

 

When i am trying to update a field in Object data using lisp

(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.

Posted

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

 

 

ade_odsetfield

 

Sets a field value.

 

 

(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:

 

(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

Posted

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.

  • 10 years later...
Posted

I have similar issue, imported MapInfo .MIF File along with Object data and imported as point. I need to place block in the point and transfer the Object Data. I am using AutoCAD Map 2015 with C# and any help is welcome.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...