Author Topic: Cant open script file  (Read 1220 times)

0 Members and 1 Guest are viewing this topic.

vincent.r

  • Newt
  • Posts: 101
Cant open script file
« on: June 24, 2018, 10:34:40 AM »
Hi guys,

I have created a script file and kept in the temp folder (through cad variable "tempprefix") but Autocad not able to read or access the script file.
When I move this file to other location it works fine. Do anybody knows the reason ? screenshot attached.

Thanks in advance.
« Last Edit: June 25, 2018, 01:32:53 AM by vincent.r »

Crank

  • Water Moccasin
  • Posts: 1503
Re: Cant open script file
« Reply #1 on: June 24, 2018, 11:27:47 AM »
What happens if you try:
Code: [Select]
(setvar "TRUSTEDPATHS" (strcat (getvar "TRUSTEDPATHS") ";" (getvar "TEMPPREFIX")))
?
Vault Professional 2023     +     AEC Collection

vincent.r

  • Newt
  • Posts: 101
Re: Cant open script file
« Reply #2 on: June 25, 2018, 12:45:37 PM »
Thanks Crank,

Will try it day after tomorrow and let you know.

Cheers

Lee Mac

  • Seagull
  • Posts: 12910
  • London, England
Re: Cant open script file
« Reply #3 on: June 25, 2018, 04:34:30 PM »
Could the 'bad argument type: stringp nil' error shown in your second screenshot have something to do with it?