samifox Posted March 28, 2016 Posted March 28, 2016 I need to create a simple txt file with path addresses , For example, I have few dwg databases for blocks, I want to be able to place a button in the tool palette to open that dwg at any time, I could set a macro to that that in the button properties, but since I have lots of dwg files I want it to be in a text file. Is there a way I can tell to a button to read a path from a text file? TX Quote
Pablo Ferral Posted March 28, 2016 Posted March 28, 2016 I don't think that's possible. Here's the best reference that I know of http://www.crlf.de/Dokumente/Diesel/Diesel.html Do you want one button to open multiple dwg files? You may need to use multiple diesel strings in one macro or write a Lisp script and call that from your button. Quote
samifox Posted March 28, 2016 Author Posted March 28, 2016 I don't think that's possible. Here's the best reference that I know ofhttp://www.crlf.de/Dokumente/Diesel/Diesel.html Do you want one button to open multiple dwg files? You may need to use multiple diesel strings in one macro or write a Lisp script and call that from your button. i wrote a lisp, but the char "\" is formatting the text. how can i make the interpeter to avoid "/"? (setq root "C:\Dropbox\Autocad\") (setq p (strcat root "csr\zoom.csr") ) Quote
YZ Posted March 29, 2016 Posted March 29, 2016 In your file paths, try substituting "\" with "/". (setq root "C:/Dropbox/Autocad/") Quote
BIGAL Posted March 29, 2016 Posted March 29, 2016 Try this use double backslash Yz you can have problems if there is a space in the directory name using single forward slash, a bit of history on unix you had to reverse the slashes. (setq root "C:\\Dropbox\\Autocad\\") (setq p (strcat root "csr\\zoom.csr")) 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.