_vlax-safearray-mode


(_vlax-safearray-mode  T/NIL)

This function allows to specify, how BricsCAD LISP engine handles an empty SAFEARRAY ...
AutoCAD treats and empty SafeArray object as an error, i.e. with (vlax-safearray->list)
BricsCAD traditionally accepts an empty SafeArray, like an empty list (or like NIL)

This caused some AutoLISP applications to fail under BricsCAD;
therefore, this function can be used to control how empty SafeArray is treated under BricsCAD;
default for BricsCAD is, to handle an empty SafeArray the same way as AutoCAD does.

Arguments

T/NIL  
T allows (vlax-safearray->list) to accept an empty SafeArray, returning NIL;
NIL forces (vlax-safearray->list) to provide AutoLISP compatible behaviour, triggering an error for an empty SafeArray (default behaviour for (vlax-safearray->list) function) 

Return

T / NIL indicating the effective status

Example

(_vlax-safearray-mode T)    for an empty SafeArray, NIL is returned by (vlax-safearray->list)
(_vlax-safearray-mode NIL) an empty SafeArray triggers an error by (vlax-safearray->list), AutoLISP compatible behaviour (default behaviour)

Alias


Remarks

safe usage :
(if _vlax-safearray-mode (_vlax-safearray-mode T))
or
(if _vlax-safearray-mode (_vlax-safearray-mode NIL))



©  Bricsys NV. All rights reserved.