TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: d2010 on January 07, 2022, 11:42:20 AM

Title: AutoCAD.SecurityParams how to calculate number for Acadver?
Post by: d2010 on January 07, 2022, 11:42:20 AM
Hello
When I execute this command  (setq secPar...) I got the error " Problem in loading application"
Please, how to search name of "AutoCAD.SecurityParams.xx" inside Vlisp?
Can I use (getvar "AcadVer") for replace XX with number
Code: [Select]
Command: (getvar"Acadver")
"18.0s (LMS Tech)"

(setq secPar
      (vla-GetInterfaceObject
        (vlax-get-acad-object)
        "AutoCAD.SecurityParams.10"))
)
; error: Automation Error. Problem in loading application
:smitten:
Here is the solution
Code - Auto/Visual Lisp: [Select]
  1.            (strcat "AutoCAD.SecurityParams." (itoa (atoi (getvar "ACADVER"))))
  2.