Ahankhah 发表于 2022-7-6 09:31:51

Is (acad) a function?

Hello CAD-lovers,
I encountered a strange situation few minutes ago.
I find out (acad) is a function. As a result of calling it (I think) focus brings to AutoCAD screen, while you are in Visual LISP editor.
The color of function was blue, like other built-in functions.
Unfortunately now, after exiting AutoCAD and returning back to it, acad returns to black, and the value of it is nil.
Does any one know a way to find a clue to it?

SOliver 发表于 2022-7-6 09:56:10

Can't trigger the response you are reporting.
 
The Aprops has a member listed "ACAD" which doesn't have any supporting documentation.
 

(princ acad) returns nil

(acad) reutrns error no function definition

(setq acad *any value or object here*) doesn't start a "Protected symbol" break loop.
 
acad in console returnsUnkown command
 
I tried each of the above in both acad 07 and Mech desktop 12

BlackBox 发表于 2022-7-6 10:20:45

 
Same here, using Land Desktop 2009, Civil 3D 2011.

Lee Mac 发表于 2022-7-6 10:46:01

'acad' sometimes appears as a protected symbol (not necessary a function) - I'm not entirely sure why however.
页: [1]
查看完整版本: Is (acad) a function?