RepCad Posted August 9, 2020 Share 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 Link to comment Share on other sites More sharing options...
BIGAL Posted August 9, 2020 Share 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 Link to comment Share on other sites More sharing options...
PeterPan9720 Posted August 10, 2020 Share 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 Link to comment Share on other sites More sharing options...
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.