Message 1 of 6
Connecting 2 variables to write to a text file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
All,
I know this has to be easy....for most. I haven't figured out the combination yet.
I simply want to connect 2 var's and post them in a text file. I can do the file part easy. Connecting these 2 have not been for me. In vba I can do it but these lines will be in an .scr file.
(setq GetDwgName (getvar "dwgname"))
(setq xLim (getvar "limmax")
(setq FileName (open "D:\\Test Folder\\new_4-20.txt" "w"))
(Setq FText (GetDwgName + " " + xLim))
(write-line (FText) FileName)
(close FileName)
In the text file I want it to read
12345.dwg <space> 11.00 8.00
Thanks,
Mike