Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unlink Data object from an object.

1 REPLY 1
Reply
Message 1 of 2
Anonymous
726 Views, 1 Reply

Unlink Data object from an object.

Can anyone please help me about unlinking data object tables from desired
objects?

Thanks a lot....

--
Un saludo...

Raúl Meneses.
Área Sistemas Información.
Inzamac.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Raúl:
This would be a fine question for posting in the new autodesk.map.developer
NG.
You can unlink a data object table from an object by deleting all the OD
records attached to the object.
This you accomplish through ade_oddelrecord. As you may have several OD
records, you will have to repeat the operation for each one of them. The
quantity of OD records can be queried using ade_odrecordqty.
Here's the text from the AcMapAds.chm helpfile:
(ade_oddelrecord ename table recnum)

Returns T or nil.

ename
AutoCAD entity name of the object to which the record is attached

table
Name of the table to which the record belongs, up to 25 characters long
(string). Must be unique, contain no spaces, and start with a character

recnum
Record number (integer). The number of the first record is 0


The function deletes the record from the object. It deletes the set of
object data defined by the table and attached to the object. This deletes
the record from the table as well as the data contained in the record.

The record number is necessary because more than one record from the same
table can be attached to an object. Use ade_odrecordqty to find how many
records of a given table are attached.

Saludos,
--
Reinaldo Togores
Grupo Investigador de Expresión Gráfica en la Ingeniería-CAD
Universidad de Cantabria. España.
http://personales.unican.es/togoresr/


"Raúl" escribió en el mensaje
news:442D2E805BF68949109A877054F6A687@in.WebX.maYIadrTaRb...
>
> Can anyone please help me about unlinking data object tables from desired
> objects?
>
> Thanks a lot....
>
> --
> Un saludo...
>
> Raúl Meneses.
> Área Sistemas Información.
> Inzamac.
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost