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

object is older that other

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
228 Views, 6 Replies

object is older that other

How to check that one object is older from other, you know that was created
earlier than other object.

Thanks
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

I believe that handles are created in order.
So if a handle has a bigger hex-value, it is later.
No guarantee.

/Matt



"HokuS" wrote in message
news:5105848@discussion.autodesk.com...
How to check that one object is older from other, you know that was created
earlier than other object.

Thanks
Message 3 of 7
Anonymous
in reply to: Anonymous

It seems that AcDbObjectId < > operators are usable in this area.

Thanks

"Matt" wrote in message
news:5105974@discussion.autodesk.com...
I believe that handles are created in order.
So if a handle has a bigger hex-value, it is later.
No guarantee.

/Matt
Message 4 of 7
Anonymous
in reply to: Anonymous

No!!!
ObjectIds are different for each drawing session.
I believe the value depends on the order they are filed. Not created.

/Matt

"HokuS" wrote in message
news:5106542@discussion.autodesk.com...
It seems that AcDbObjectId < > operators are usable in this area.

Thanks

"Matt" wrote in message
news:5105974@discussion.autodesk.com...
I believe that handles are created in order.
So if a handle has a bigger hex-value, it is later.
No guarantee.

/Matt
Message 5 of 7
Anonymous
in reply to: Anonymous

When I sort my AcDbObjectIdArray using < operator, and next display a handle
of every Id in the array, everything looks fine. I can do it milon times,
and still everything is fine. So in my opinon there is no difference to sort
this array using < operator or its handles. Every way direct us to this same
result.

Thanks

"Matt" wrote in message
news:5107216@discussion.autodesk.com...
No!!!
ObjectIds are different for each drawing session.
I believe the value depends on the order they are filed. Not created.

/Matt
Message 6 of 7
Anonymous
in reply to: Anonymous

Mr. Cooney, can you put some light on this?
The ids are different, that's for sure. But will they always be in the same
order?

/Matt


"HokuS" wrote in message
news:5107517@discussion.autodesk.com...
When I sort my AcDbObjectIdArray using < operator, and next display a handle
of every Id in the array, everything looks fine. I can do it milon times,
and still everything is fine. So in my opinon there is no difference to sort
this array using < operator or its handles. Every way direct us to this same
result.

Thanks

"Matt" wrote in message
news:5107216@discussion.autodesk.com...
No!!!
ObjectIds are different for each drawing session.
I believe the value depends on the order they are filed. Not created.

/Matt
Message 7 of 7
Anonymous
in reply to: Anonymous

Not necessarily. If a partial open is done, then things might end up in a
different order since they may be read in differently (or not at all) over
the course of an edit session. Or, if interobject relationships are changed
by editing, then the next time the drawing is opened the objects might be
read in in a different order - we do a recursive read in for dependent
objects.

Also, the values in AcDbObjectIds (which are what are being compared by the
< > operators) are memory addresses, so if the memory manager that was used
to allocate the memory for those addresses happens to reuse memory blocks,
it's possible to end up with the memory addresses out of order.

And lastly, if any of the objects are in xrefs, then you can end up working
with forwarded ids which can also end up out of order.

"Matt" wrote in message
news:5108881@discussion.autodesk.com...
Mr. Cooney, can you put some light on this?
The ids are different, that's for sure. But will they always be in the same
order?

/Matt


"HokuS" wrote in message
news:5107517@discussion.autodesk.com...
When I sort my AcDbObjectIdArray using < operator, and next display a handle
of every Id in the array, everything looks fine. I can do it milon times,
and still everything is fine. So in my opinon there is no difference to sort
this array using < operator or its handles. Every way direct us to this same
result.

Thanks

"Matt" wrote in message
news:5107216@discussion.autodesk.com...
No!!!
ObjectIds are different for each drawing session.
I believe the value depends on the order they are filed. Not created.

/Matt

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

Post to forums  

Autodesk Design & Make Report

”Boost