.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Are Handles ever recycled within the same drawing?

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
jcheard
588 Views, 8 Replies

Are Handles ever recycled within the same drawing?

See subject.  

 

 

 

 

 

 

 

 

 

8 REPLIES 8
Message 2 of 9
arcticad
in reply to: jcheard

http://forums.autodesk.com/t5/Autodesk-ObjectARX/Handles-are-they-ever-reused-within-a-drawing/td-p/...

---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 3 of 9
jcheard
in reply to: arcticad

Wow--shame on me for not even searching.

 

So theoretically, it seems that then there is a point at which AutoCAD will crash if a single drawing is modified and saved enough.  Is this assertion true?

 

 

Message 4 of 9
arcticad
in reply to: jcheard

Not that I was aware of. Who said this?

---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 5 of 9
jcheard
in reply to: arcticad


@arcticad wrote:

Not that I was aware of. Who said this?


Well, if Handles are never recycled--then theoretically a drawing could have consisted of so many objects (regardless of whether or not most have been erased and purged) that all of the handles could be used... given that there would have had to be roughly 2^64 objects.

Message 6 of 9
jeff
in reply to: jcheard

Looks like time to code a loop and store a counter and/ or Database.Handseed value and see what happens.

 

You can also find your answers @ TheSwamp
Message 7 of 9
arcticad
in reply to: jcheard

Well, We would have to ask Autodesk what that limit is.

The Handle header is a 32 bits so we can guess that it holds

4,294,967,295 objects. but this is a guess. 

 

http://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf

---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 8 of 9
jcheard
in reply to: arcticad


@arcticad wrote:

Well, We would have to ask Autodesk what that limit is.

The Handle header is a 32 bits so we can guess that it holds

4,294,967,295 objects. but this is a guess. 

 

http://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf


32bits eh?  AutoCAD 2011 Documentation says 64bit

 

Description

 

This .NET class wraps the AcDbHandle ObjectARX class.

 

The Handle class is the ObjectARX class designed to encapsulate the 64-bit integer handle identifiers that have been in AutoCAD for several releases before R13. A handle uniquely identifies an DBObject within a single database and is saved with that object in the database so that it persists from session to session. Handles are not unique across databases, however. In fact, duplication across databases is almost a certainty, since all databases start with the same hand seed value of 1 and go up from there.

 

Message 9 of 9
jeff
in reply to: jcheard

Definition for Database.Handseed Property

 

 

Accesses the current HANDSEED value for the database. The HANDSEED is a counter which maintains the next available handle number. Handles are 64-bit integers represented in DXF and LISP/ADS in hexadecimal form as a string. In hexadecimal, a 64-bit integer can be up to 16 digits.

You can also find your answers @ TheSwamp

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost