Result Type Codes Defined by ObjectARX

The restype field of a result buffer is a short integer code that indicates which type of value is stored in the resval field of the buffer. For results passed to and from ObjectARX functions, ObjectARX defines the result type codes listed in the following table:

Result type codes 

 

Code

Value

Description

RTNONE

5000

No result value

RTREAL

5001

Real (floating-point) value

RTPOINT

5002

2D point (X and Y; Z == 0.0)

RTSHORT

5003

Short (16-bit) integer

RTANG

5004

Angle

RTSTR

5005

String

RTENAME

5006

Entity name

RTPICKS

5007

Selection set name

RTORINT

5008

Orientation

RT3DPOINT

5009

3D point (X, Y, and Z)

RTLONG

5010

Long (32-bit) integer

RTVOID

5014

Void (blank) symbol

RTLB

5016

List begin (for nested list)

RTLE

5017

List end (for nested list)

RTDOTE

5018

Dot (for dotted pair)

RTNIL

5019

AutoLISP nil

RTDXF0

5020

Group code zero for DXF lists

(used only with acutBuildList())

RTT

5021

AutoLISP t (true)

RTRESBUF

5023

Resbuf

RTMODELESS

5027

Interrupted by modeless dialog