Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone
I am trying to open a drawing register from inside acad and the following is the code I have so far:
(defun c:rg (/ path filename program)
(setq path (vl-string-right-trim "\\" (getvar 'dwgprefix))
path (substr path 1 (vl-string-position (ascii "\\") path 0 T))
)
(setq filename (strcat path "\"QCL Issue Register.xlsm")
(setq program "C:\\Program Files (x86)\\Microsoft Office\\root\\Office16\\EXCEL.EXE")
(startapp program filename))
(princ))
Could someone please advise why it isn't working?
Solved! Go to Solution.