Saving Handle long value

Saving Handle long value

Anonymous
Not applicable
558 Views
1 Reply
Message 1 of 2

Saving Handle long value

Anonymous
Not applicable

The Handle object has a value property which is of type long. Is it ok to use this value to save/reterive Handles on disk? As, on websites, I have seen people use Handle.ToString() to save the handle and then a Convert.ToInt64 to reterive it back.

 

I suppose they are the same.

0 Likes
Accepted solutions (1)
559 Views
1 Reply
Reply (1)
Message 2 of 2

FRFR1426
Collaborator
Collaborator
Accepted solution

Yes, you're right. The hexadecimal version is only a convenient way for storing this handle in an human readable way.

 

An handle is a 64-bit integer starting at 1.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes