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

AcDbObjectId ....

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
369 Views, 4 Replies

AcDbObjectId ....

In some machine AcDbObjectId.asOldId() return an integer < 0 ? has someone
an explanation?
Thank's in advance Alessandro
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

That would happen if the value's highest bit is set. The actual value being
returned is a memory address which is really an unsigned long (in 32-bit
Acad), but asOldId() returns a signed value.

"Alessandro" wrote in message
news:6134870@discussion.autodesk.com...
In some machine AcDbObjectId.asOldId() return an integer < 0 ? has someone
an explanation?
Thank's in advance Alessandro
Message 3 of 5
Anonymous
in reply to: Anonymous

Thank's for explaining why if i return an unsigned long as long, the number
can be negative, but the question is still different; why only in some
machine the id is stored so big to set the highest bit?

"Art Cooney" ha scritto nel messaggio
news:6134918@discussion.autodesk.com...
That would happen if the value's highest bit is set. The actual value being
returned is a memory address which is really an unsigned long (in 32-bit
Acad), but asOldId() returns a signed value.

"Alessandro" wrote in message
news:6134870@discussion.autodesk.com...
In some machine AcDbObjectId.asOldId() return an integer < 0 ? has someone
an explanation?
Thank's in advance Alessandro
Message 4 of 5
Anonymous
in reply to: Anonymous

Are they all 32 bit versions of AutoCAD on 32 bit Windows?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


"Alessandro" wrote in message
news:6135000@discussion.autodesk.com...
Thank's for explaining why if i return an unsigned long as long, the number
can be negative, but the question is still different; why only in some
machine the id is stored so big to set the highest bit?

"Art Cooney" ha scritto nel messaggio
news:6134918@discussion.autodesk.com...
That would happen if the value's highest bit is set. The actual value being
returned is a memory address which is really an unsigned long (in 32-bit
Acad), but asOldId() returns a signed value.

"Alessandro" wrote in message
news:6134870@discussion.autodesk.com...
In some machine AcDbObjectId.asOldId() return an integer < 0 ? has someone
an explanation?
Thank's in advance Alessandro
Message 5 of 5
Anonymous
in reply to: Anonymous

yes, AutoCAD 32bit, Windows XP sp2 32 bit; the only different from other
pc's is the nvidia sata, but i don't thinks is this the problem....

"Tony Tanzillo" ha scritto nel messaggio
news:6135005@discussion.autodesk.com...
Are they all 32 bit versions of AutoCAD on 32 bit Windows?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


"Alessandro" wrote in message
news:6135000@discussion.autodesk.com...
Thank's for explaining why if i return an unsigned long as long, the number
can be negative, but the question is still different; why only in some
machine the id is stored so big to set the highest bit?

"Art Cooney" ha scritto nel messaggio
news:6134918@discussion.autodesk.com...
That would happen if the value's highest bit is set. The actual value being
returned is a memory address which is really an unsigned long (in 32-bit
Acad), but asOldId() returns a signed value.

"Alessandro" wrote in message
news:6134870@discussion.autodesk.com...
In some machine AcDbObjectId.asOldId() return an integer < 0 ? has someone
an explanation?
Thank's in advance Alessandro

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

Post to forums  

Autodesk Design & Make Report

”Boost