Almost all SAP2000 API functions return a Long (32 bit signed integer) value indicating if the function executed successfully.
A return value of 0 indicates that SAP2000 successfully executed the function.
Any nonzero return value indicates that the function was not successfully executed.
See Also
Accessing SAP2000 From An External Application
Function Documentation Conventions
Visual Basic Concepts Used In The SAP2000 API