Jump to content

I need to send the output of the "LIST" command to a text file


evaristor

Recommended Posts

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.

Link to comment
Share on other sites

:huh: 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

...

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...