evaristor Posted August 31, 2009 Share Posted August 31, 2009 I need to send the output of the "LIST" command to a text file instead the text window. Quote Link to comment Share on other sites More sharing options...
chelsea1307 Posted August 31, 2009 Share Posted August 31, 2009 why not just copy whats in the text window to word or whatever program you use Quote Link to comment Share on other sites More sharing options...
evaristor Posted August 31, 2009 Author Share Posted August 31, 2009 why not just copy whats in the text window to word or whatever program you use The output are several millions of lines and the command window only show few lines per screen. I can't copy all the output to the clipboard. Quote Link to comment Share on other sites More sharing options...
Cad64 Posted August 31, 2009 Share Posted August 31, 2009 Several million lines? What are you running the LIST command on? Quote Link to comment Share on other sites More sharing options...
evaristor Posted August 31, 2009 Author Share Posted August 31, 2009 Several million lines? What are you running the LIST command on? I'm running the LIST command on lwpolylines. It's a very high-resolution coast line of the Baja California peninsula. Quote Link to comment Share on other sites More sharing options...
architecture68-raff Posted September 1, 2009 Share Posted September 1, 2009 You can enable the log file under options->Open and Save->Maintain a log file. Once you have enabled this, check where the log file is set to save in the files tab. The file will be saved automatically and can be viewed in Notepad. I have absolutely no idea how millions of entities in the list command would impact memory or file size, but you could give it a try. Quote Link to comment Share on other sites More sharing options...
ronjonp Posted September 1, 2009 Share Posted September 1, 2009 What information are you needing from these lines? Sounds like this could be automated fairly easily. Quote Link to comment Share on other sites More sharing options...
fuccaro Posted September 1, 2009 Share Posted September 1, 2009 A lisp routine could write the data like point-coords, layer and so into a text file. Just search in the forum, or post again with more details about what you wish. Quote Link to comment Share on other sites More sharing options...
fuccaro Posted September 1, 2009 Share Posted September 1, 2009 Try this: http://www.cadtutor.net/forum/showthread.php?t=1697 Quote Link to comment Share on other sites More sharing options...
evaristor Posted September 1, 2009 Author Share Posted September 1, 2009 What information are you needing from these lines? Sounds like this could be automated fairly easily. Once I have the text file I can extract the information I want, which are the coordinates x,y. It looks like this: LWPOLYLINE Layer: "LCOSTA_H11B12" Space: Model space Handle = 153 Open Constant width 0.0000 area 33686274.1918 length 32434.4688 at point X=531461.6703 Y=3525375.1034 Z= 0.0000 at point X=531490.7745 Y=3525376.4263 Z= 0.0000 at point X=531529.1391 Y=3525384.3638 Z= 0.0000 at point X=531558.2433 Y=3525402.8847 Z= 0.0000 at point X=531586.0245 Y=3525424.0513 Z= 0.0000 and so on... Quote Link to comment Share on other sites More sharing options...
evaristor Posted September 1, 2009 Author Share Posted September 1, 2009 You can enable the log file under options->Open and Save->Maintain a log file. Once you have enabled this, check where the log file is set to save in the files tab. The file will be saved automatically and can be viewed in Notepad. I have absolutely no idea how millions of entities in the list command would impact memory or file size, but you could give it a try. Thanks architecture68-raff. The log file is exactly what I was looking for. It works perfectly. Thanks. Quote Link to comment Share on other sites More sharing options...
evaristor Posted September 1, 2009 Author Share Posted September 1, 2009 A lisp routine could write the data like point-coords, layer and so into a text file. Just search in the forum, or post again with more details about what you wish. I need the x,y coordinates of a LWPOLYLINE. But I can extract them from the standard output of the LIST command. So, the only thing I need is to send all the output to a text file instead of to the text window. The output looks like this: LWPOLYLINE Layer: "LCOSTA_H11B12" Space: Model space Handle = 153 Open Constant width 0.0000 area 33686274.1918 length 32434.4688 at point X=531461.6703 Y=3525375.1034 Z= 0.0000 at point X=531490.7745 Y=3525376.4263 Z= 0.0000 at point X=531529.1391 Y=3525384.3638 Z= 0.0000 at point X=531558.2433 Y=3525402.8847 Z= 0.0000 at point X=531586.0245 Y=3525424.0513 Z= 0.0000 ... Quote Link to comment Share on other sites More sharing options...
evaristor Posted September 1, 2009 Author Share Posted September 1, 2009 Thanks to every one for helping me and especially to architecture68-raff who suggested the log file. 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.