• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

input utente nei file .scr

  • Thread starter Thread starter Hockrim
  • Start date Start date

Hockrim

Guest
Hi, I created macros with autocads that require user input to work:
for example a macro to draw a polyline on layer 0 of magenta and width 6 is as follows:

^c^corto;on;-color;6;osmode;127;-layer;r;0;_pline;\6;6;\;orto;off;-colore;dalayer;

la \ is to indicate the input of the initial and final point by clicking on the user.

Now I should turn these macros into .scr files, but when I get to the character "\" tells me invalid input because it is not recognized as user input.
Is there a way to replace him?
thanks in advance.
 
I have already tried, the pause command only serves to interrupt the script for a millisecond tot and then resume it, and at that time the mouse is blocked.
 
verificato. mi sa che devi cambiare metodo.
prova in lisp:
(defun c:myscript()
(command "_ortho" "_on")
(command "_color" 6)
(command "_osmode" 127)
(command "_layer" "_m" "0" "")
(command "_pline" pause "_w" 6 6 pause "")
(command "_ortho" "_off")
(command "_color" "_bylayer")
)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top