Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to move text with (write-line .... ?

2 REPLIES 2
Reply
Message 1 of 3
stevesfr
305 Views, 2 Replies

How to move text with (write-line .... ?

In part of the lisp below, how can I move "dwgname" over to the right when the write-line is written to the text file?
Yes there is more to this lisp, and it all works fine, except I would like to move "dwgname" over from the extreme left justification.
Thx for looking.
Steveo

[code](setq A (vl-filename-base(getvar "dwgname")))


(write-line A f1)[/code]
2 REPLIES 2
Message 2 of 3
Ian_Bryant
in reply to: stevesfr

Hi,
(write-line (strcat "\T" A) f1)
will move it by tab spacing.
(write-line (strcat " " A) f1)
moves it by how long " " is.
Regards Ian
Message 3 of 3
stevesfr
in reply to: stevesfr

Thanks, one short line of code solves the problem !
Steve

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost