A brief explanation of what you need it for would make it easier
>> I need to know how to get the handles of an object
Use command _LIST and select the object .... or use lisp, something like
(entget (car (entsel)))
and you get the dxf-codes/-values defining the selected object, the valuepair
(5 . xxxx)
gives you the handle also, where the handle is listed in HEX
>> and if it changed by editing the object
Under normal cicrumstances the handle stays at the object. However if you make massive modification (e.g. exploding a block, or something like that) the current handle may be lost then.
>> if you show me an example
An example for what? That an object has a handle or do you mean how to access it by developing an application? If so you should give us at least what language you preferre. More better you ask in the forum as there are different ones for each type of development (Lisp, VB, dotNET, ObjectARX)
- alfred -
In the early days of ACAD it used to connect outside database record to entity.
If you don’t change the file (explode, insert *,…) it was very nice handle (link) to the objects.
With the “new” XREF command it change the game and we stop to use it.
You can use handle and the 1005 extended data to create in-file connection.
Entity handle; text string of up to 16 hexadecimal digits (fixed)
Entity handle in extended data; text string of up to 16 hexadecimal digits
There is a bug with handle overflow when the file with a long history and the handle is FFFFFFFF…F
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.