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

Princ to the command line on load.

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
662 Views, 3 Replies

Princ to the command line on load.

I have a file I am loading from AcadDoc.lsp. When a reactor loads... I simply want a few characters printed to the command line.

However, I want it several lines up with from the command line - with serveral blank lines afterwords. Regardless of what I do, it falls on the very first line above the command line. I have tried all of the below. I used to be you had complete control of this... but not anymore.

Has anyone found a way to do this?

 

(terpri)

(princ "\nmytext")

 

(terpri)(terpri)(terpri)

(princ "\n\nmytext\n")vlide

 

 

(prompt "\n\n\nmytext\n\n\n")

(princ "\n\n        \n\n\n")

(princ (strcat (chr 10)(chr 10)(chr 13)(chr 13)(chr 13)))

 

 

3 REPLIES 3
Message 2 of 4
Gary_J_Orr
in reply to: Anonymous

Acad devlopment team trying to be "helpful" again... assuming that if you want to print something to the command line then you must want to see it so they suppress repeated calls for the newline feed...

Try this (it will provide you with 10 "blank" lines (using a new line call with a space as a value, adjust as desired):
(princ "\nMy Text")
(repeat 10 (princ "\n "))
(princ)

Gary J. Orr
(Your Friendly Neighborhood) CADD/BIM/VDC Applications Manager
http://www.linkedin.com/in/garyorr

aka (current and past user names):
Gary_J_Orr (GOMO Stuff 2008-Present); OrrG (Forum Studio 2005-2008); Gary J. Orr (LHB Inc 2002-2005); Orr, Gary J. (Gossen Livingston 1997-2002)
Message 3 of 4
Anonymous
in reply to: Gary_J_Orr

nooop... no worky. Tried it from several computers. I even tried taking the \n away from the beginning of my My Text think it would just come in at the end of one of the other lines from our startup.

Message 4 of 4
Anonymous
in reply to: Anonymous

Looks like this works... not holding my breath though - but so far go good.

 

(princ (strcat "\nMyText\n" (chr 160)))

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

Post to forums  

Autodesk Design & Make Report

”Boost