Are Entity.ObjectId.Handle and Entity.Handle always the same?

Are Entity.ObjectId.Handle and Entity.Handle always the same?

soonhui
Advisor Advisor
391 Views
3 Replies
Message 1 of 4

Are Entity.ObjectId.Handle and Entity.Handle always the same?

soonhui
Advisor
Advisor

Are Entity.ObjectId.Handle and Entity.Handle always the same, for the same entity?

 

I would believe so, but is there any official documentation on this?

##########

Ngu Soon Hui

##########

I'm the Benevolent Dictator for Life for MiTS Software. Read more here


I also setup Civil WHIZ in order to share what I learnt about Civil 3D
0 Likes
Accepted solutions (1)
392 Views
3 Replies
Replies (3)
Message 2 of 4

Jeff_M
Consultant
Consultant

From the ObjectArx documentation (you should get it) for the ObjectId structure:

 Handle: Accesses the handle of the object associated with the object ID.
Jeff_M, also a frequent Swamper
EESignature
Message 3 of 4

soonhui
Advisor
Advisor


@Jeff_M ,

 

"Accesses the handle of the object associated with the object ID", this is not the same as "handle of the object is the same as ObjectID.Handle", right?
 
##########

Ngu Soon Hui

##########

I'm the Benevolent Dictator for Life for MiTS Software. Read more here


I also setup Civil WHIZ in order to share what I learnt about Civil 3D
0 Likes
Message 4 of 4

Jeff_M
Consultant
Consultant
Accepted solution

Yes, they are identical.

 

object.Handle = "HC14"

object.ObjectId = 2433879235008

object.ObjectId.Handle = "HC14"

 

These HANDLEs will ALWAYS be the same, for the life of an object, whereas the ObjectId varies every time the drawing is opened.

Jeff_M, also a frequent Swamper
EESignature