Passing list of values to an ObjectARX function using Lisp throws error when certain numbers (For ex : 5011, 25111) are part of the list. Why and how to overcome this ?
Certain numbers are interpreted as DXF codes which causes AutoCAD to throw an exception.
The simple workaround for this is to send the values as real numbers as shown here :
For ex : (myLispCallableTestFunc ‘(5011.0 2 3 4))
The other workaround is to send the values as independent lists. These list may have to be joined together inside the ObjectARX function that is called from LISP.
For ex : (myLispCallableTestFunc ‘((5011) (2) (3) (4)))

Leave a Reply