Share

acedRetVal

C++

ACCORE_PORT int acedRetVal(
    const struct resbuf * rbuf
);

File

acedads.h

Description

Returns the value in the result buffer to AutoLISP. The AutoLISP expression that invoked the external function returns the result as built-in and user-defined AutoLISP functions do.

The acedRetVal() function passes the contents of the result buffer, not its address. The result buffer must be initialized and must contain a valid result type code and value (for example, RTSHORT or RT3DPOINT, but not RTLONG).

An external function can make more than one call to value-return functions upon a single kInvkSubrMsg message, but the AutoLISP function returns only the value passed it by the last value-return function invoked.

Parameters

Parameters Description
rbuf Result buffer

Returns

Returns RTNORM if successful; otherwise, it returns RTERROR.

Previous Declaration

AutoCAD 2025 and Earlier

int acedRetVal(const struct resbuf *rbuf);

Was this information helpful?