Overkill command output pop up LSP

Overkill command output pop up LSP

inulobo
Advocate Advocate
1,265 Views
4 Replies
Message 1 of 5

Overkill command output pop up LSP

inulobo
Advocate
Advocate

Hello, I am trying to figure out a way to get the Overkill command output to show up in a pop up window. 

I would like to see the items below:

 

0 duplicate(s) deleted
0 overlapping object(s) or segment(s) deleted

 

I know it can possibly be done with LSP but I am not familiar enough to write it out. 

0 Likes
Accepted solutions (1)
1,266 Views
4 Replies
Replies (4)
Message 2 of 5

cadffm
Consultant
Consultant

You need to copy the content of textscreen and remove the lines except the last ~3 lines,

a simple ALERT or a small DCL can show the Information.

Interesting task, for me my textscreen will show all thing i need, incl. the overkill feedback

 

Or open then TextScreen

 

(command "CMDECHO" "1"  "_.OVERKILL" "_all" "" "_.TEXTSCR")

(command "CMDECHO" "1" "_.-OVERKILL" "_all" "" "" "_.TEXTSCR")

Sebastian

0 Likes
Message 3 of 5

inulobo
Advocate
Advocate

Not sure how to create it myself but is it something like this?

(defun c:-overkill ()

(command "CMDECHO" "1"  "_.OVERKILL" "_all" "" "_.TEXTSCR")
(command "CMDECHO" "1" "_.-OVERKILL" "_all" "" "" "_.TEXTSCR")

(alert)
(prompt)
(princ)
)

 

0 Likes
Message 4 of 5

cadffm
Consultant
Consultant
Accepted solution

(alert "Text")

this isn't a problem, to catch the information you want is your problem.

For a beginner i would say: Let it be. Use the simple way with "TEXTSCR".

 

 

The way is. Use command LOGFILE and lispfunction OPEN and READ-LINE

 or

Copy History from Textscreen, pull out the data from windows Clipboard

 

Sebastian

Message 5 of 5

cadffm
Consultant
Consultant

 

 

 

(defun c:-overkill () ; Why do you ewant to oberwrite an existing native command? Use another name for your routine.

(command "CMDECHO" "1"  "_.OVERKILL" "_all" "" "_.TEXTSCR")    ; Why both
(command "CMDECHO" "1" "_.-OVERKILL" "_all" "" "" "_.TEXTSCR") ; Lines?

(alert) ; alert what? (alert "HelloWorld")
(prompt)
(princ)
)

 

 

 

I am not sure, but it seams you didn't test it?

If so:

 

Copy the first line directly to the commandline for a test [CTRL+9]

 

Copy the second line directly to the commandline for a test [CTRL+9]

Sebastian

0 Likes