There is an old thing called ads, which is the C language development tool in AutoCAD 11.0 to 14.0.
Later, with ObjectARX, ads was eliminated. Many ads functions have been eliminated, but some functions continue to be used by Acad.
For example, ads-cmd
command in LSP become ads-cmd at compile time.
Who has the usage of these ads functions?
"ads-fail"
"ads-retstr"
"ads-post-cmd"
"ads-retint"
"ads-retreal"
"ads-retpoint"
"ads-retnil"
"ads-rett"
The usage of these reserved functions can be executed after loading the following code
Then it can be used like the normal LISP function.
For example: (ads-fail "this is a test")
;; Activate a system retention function Author: tryhi sea
(defun try
-load
-hide
-fun
(fun
/ dat file fo len
) '(266 70 65 83 52 45 70 73 76 69 32 59 98 121 58 116 114
121 104 105 32 13 266 49 13 266 49 32 36 32 36 13 266)
'(32 52 32 36 20 1 1 1 256 219)
'(256 256 214)
'(256 256 1 67 256 256 2 256 266 266 131 1 256 160 134 256 256 1 22 36 59 98 121 58 180 243 186 163)
)
)
)
;; Batch activation system hidden functions
"ads-fail"
"ads-retstr"
"ads-post-cmd"
"ads-retint"
"ads-retreal"
"ads-retpoint"
"ads-retnil"
"ads-rett"
"ads-retvoid"
"ads-printf"
"ads-regapp"
"ads-vports"
"ads-getenv"
"ads-setenv"
"ads-getcfg"
"ads-setcfg"
"ads-getsym"
"ads-putsym"
"ads-defun"
"ads-undef"
"ads-invoke"
"ads-arxloaded"
"ads-arxload"
"ads-arxunload"
"ads-fnsplit"
"ads-dictrename"
"ads-dictremove"
"ads-dictadd"
"ads-entmakex"
"ads-retname"
"ads-entgetx"
"ads-entmake"
"ads-entmod"
"ads-tblnext"
"ads-tblsearch"
"ads-namedobjdict"
"ads-tblobjname"
"ads-dictsearch"
"ads-dictnext"
"ads-help"
"ads-setfunhelp"
"ads-snvalid"
"ads-getcname"
"ads-menucmd"
"ads-textbox"
"ads-cmd"
"ads-cmd-pure"
"ads-findfile-multi"
"ads-ssget"
"ads-ssnamex"
"ads-ssgetfirst"
"ads-sssetfirst"
"ads-setview"
"ads-tablet"
)
)
(mapcar 'try
-load
-hide
-fun fun
); )