RepCad Posted August 9, 2020 Posted August 9, 2020 (edited) Hi every one, I always use the path file name in vba autocad to get excel or dwg address , like this : pth = "C:\Users\Windows\Desktop\Search\data.xlsx" Is it possible to get the path name of file and select via file dialog box ?? (not open file or edit, only get path name of any file) Thanks in advanced. Edited August 9, 2020 by amir0914 Quote
BIGAL Posted August 9, 2020 Posted August 9, 2020 (edited) Whilst this is Vlisp there should be the same function in VBA there are multiple file options like directory or dwg name only. Also (getvar 'dwgname ) (getvar 'dwgprefix) Edited August 9, 2020 by BIGAL 1 Quote
PeterPan9720 Posted August 10, 2020 Posted August 10, 2020 Hi Amir Look at link below https://stackoverflow.com/questions/12687536/how-to-get-selected-path-and-name-of-the-file-opened-with-file-dialog 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.