print textscr

print textscr

avinash00002002
Collaborator Collaborator
500 Views
4 Replies
Message 1 of 5

print textscr

avinash00002002
Collaborator
Collaborator

Hi!

I have a lists that want to print in screen but it will not aligned.

 

please find attached image.

 

Avinash

 

 

0 Likes
501 Views
4 Replies
Replies (4)
Message 2 of 5

Sea-Haven
Mentor
Mentor

You may need to look at your strings maybe add tabs seperating the values.

 

(setq str "a b c d eee hhh")
(setq str2 (strcat "a\tb\tc\td\teee\thhh"))
(alert (strcat str "\n" str2))

0 Likes
Message 3 of 5

avinash00002002
Collaborator
Collaborator

I tried but not printed in one line (aligned).

0 Likes
Message 4 of 5

Sea-Haven
Mentor
Mentor

Understand did not work, the issue is with the text font used to display the output, if in say mtext would use monotxt then it would work. The only way I got it to work was to write to a file with tabs and open with notepad, you can open notepad from Autocad using SHELL. (command "shell" "notepad d:\\acadtemp\\tabtest.txt")

0 Likes
Message 5 of 5

diagodose2009
Collaborator
Collaborator

You can replace TextScreen with Notepad.

Do you wish replace TextScreen with Wordpad.exe? 

Command:Q2

First corner:
Dati coltul opus:
Get BlockName (Name/Entsel/About)=E
Selectati un blockmodel:_.ZOOM
Specify corner of window, enter a scale factor (nX or nXP), or
[All/Center/Dynamic/Extents/Previous/Scale/Window/Object] <real time>: _w
Specify first corner: Specify opposite corner:
Command:
Type ExportedFile(3d/2d)=3

 

 

0 Likes