Jump to content

Recommended Posts

Posted

Hello,

 

I am trying to make a lisp that corresponds to MLEADER.

 

What this code do is drawing an mleader but when I want to write text as mtext as in MLEADER cad command it does not. What happens is that on command line:

 

Enter Text:

 

When I enter text and hit space it exists.

 

How can I make that little code make me an mtext :)?

 

(setq p1 (getpoint "\nStarting Point: ")
p2 (getpoint p1 "\nText placement: ")
 )
 (grdraw p1 p2 1 1)
   (command "_mleader" p1 p2)
 (redraw)
)

Posted

maybe this?

(command "_mleader" p1 p2 pause)

or just

(command "_mleader")
 (while (> (getvar 'CmdActive) 0) (command pause))

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...