ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

acedGetArgs() error

2 REPLIES 2
Reply
Message 1 of 3
jvicario
440 Views, 2 Replies

acedGetArgs() error

acedGetArgs() returns a null pointer when the first argument passed from AutoLISP is a list of 4 numbers and the first number is an integer like 5011, 5012, 5013, 5015, ..., 5110, 5111, ..., 6011, 6012, ... 15011, 15012, ... , and so on. Does it is a known bug? Why does this happen? Is there a workaround?

Samples:

(myArxDefinedFunction '(5011 3 4 5))
(myArxDefinedFunction '(25111 2.0 3.0 6.5))

2 REPLIES 2
Message 2 of 3
owenwengerd
in reply to: jvicario

It's a known bug since the early days of AutoLISP. The workaround is to force the first argument to be a float:

(myArxDefinedFunction '((float 5011) 3 4 5))

--
Owen Wengerd
ManuSoft
Message 3 of 3
jvicario
in reply to: owenwengerd

Thank you Owen!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost