R2019: vla-getremotefile fails

R2019: vla-getremotefile fails

kenkrupa
Contributor Contributor
1,663 Views
5 Replies
Message 1 of 6

R2019: vla-getremotefile fails

kenkrupa
Contributor
Contributor

Automation Error. File access error.   

This code still works fine in R2018 and older:

(defun kcs_get_remote_text (/ fname objDOC objUTL locfile)
  (vl-load-com)
  (setq fname "http://www.krupacadd.com/Kcs_AEC_version.txt")
  (setq objDOC (vla-get-activedocument (vlax-get-acad-object)))
  (setq objUTL (vla-get-utility objDOC))

  (vla-getremotefile 
    objUTL
    fname
    'locfile
    :vlax-true
  ) ; error: Automation Error. File access error HERE
  locfile 
  ; return should be something like: 
  ; "C:\\Users\\Ken\\AppData\\Local\\Microsoft\\Windows\\Temporary Internet 
  ; Files\\Content.IE5\\3QGF1PFV\\Kcs_AEC_version[1].txt"
)

Looks like this is a bug in 2019.  Autodesk - PLEASE FIX!

 

0 Likes
Accepted solutions (2)
1,664 Views
5 Replies
Replies (5)
Message 2 of 6

artc2
Autodesk
Autodesk
Accepted solution
In 2019, getremotefile is controlled by the new SECUREREMOTEACCESS sysvar which defaults to 1 (disallowing getremotefile). Try setting SECUREREMOTEACCESS to 0.
Message 3 of 6

kenkrupa
Contributor
Contributor

Thank you!   

I have not been able to find a source for this info - can you point me to it?  

0 Likes
Message 4 of 6

cadffm
Consultant
Consultant
Accepted solution
F1 Help
New Systemvariables (and some more infos about changes)

Or in the normal WhatsNew overwiew.
http://help.autodesk.com/view/ACD/2019/ENU/?guid=GUID-4B04BE19-E966-4EE1-A21D-D00540BFE635

Sebastian

Message 5 of 6

kenkrupa
Contributor
Contributor

Oh - I see it's in F1 Help, if you look hard enough.

0 Likes
Message 6 of 6

kenkrupa
Contributor
Contributor

Never found my way to that web page. Thank you.

0 Likes