Author Topic: AutoCAD.SecurityParams how to calculate number for Acadver?  (Read 100 times)

0 Members and 1 Guest are viewing this topic.

d2010

  • Bull Frog
  • Posts: 240
AutoCAD.SecurityParams how to calculate number for Acadver?
« 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.  
     
« Last Edit: January 07, 2022, 01:13:47 PM by d2010 »