Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!
Solved! Go to Solution.