AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extracting higher value from Integer field programatically

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
366 Views, 3 Replies

Extracting higher value from Integer field programatically

Hi all,

The functions (ade_odgetfield) and (ade_odgetrecfield) does not get the correct values for coded values higher than 32767 from an integer field.

For example, when the original coded value is 33000, the value when extracted as (ade_odgetfield snam "atable" "afield" 0) would give us a value of -32536, which is a wrong value.

Can anyone suggest me an alternative way of extracting the values higher than 32767 from an integer field from a OD Table?

Thanks in advance for any help.

MNRaghu
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Integer values can only be -32768 to 32767 so perhaps you need to change your field type. Regards - Nathan
Message 3 of 4
Anonymous
in reply to: Anonymous

Nathan, Thanks for confirmation.

Thanks,
MNRaghu
Message 4 of 4
geodis_pv
in reply to: Anonymous

For a long time we can recover the integer greater than 32767 (The only type of field is posible character, integer and real. The integer greater than 32767 are well managed in the integer field type object data) with the functions (ade_odgetfield) and (ade_odgetrecfield). With version Autocad Map 2017, the function (ade_odgetfield) can still return integer greater than 32767, contrariwise the function (ade_odgetrecfield) no longer returns as values between -32768 to 32767 such as 2003. The problem is that the function ade_odgetrecfield is much faster to manage many fields simultaneously.

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report