Draw Mleader with predefinied text and edit directly

Draw Mleader with predefinied text and edit directly

C.Utzinger
Collaborator Collaborator
995 Views
5 Replies
Message 1 of 6

Draw Mleader with predefinied text and edit directly

C.Utzinger
Collaborator
Collaborator

HI

 

I have this routine with Mtext, where after creating the Mtext appears Titel (or something else).

 

Now i want to do the same with Mleader, but I don't know how...

 

Please help...

 

 

	(command "_.mtext")
  	(princ "\nMtext: erste Fensterecke angeben: ")
  	(command pause "a" "oz")
  	(princ "\nMtext: zweite Fensterecke angeben: ")
  	(command pause "Titel" "")
	(command "_mtedit" "l")



        (initcommandversion) 
        (vl-cmdf "._mleader")

 

 

Regards

0 Likes
Accepted solutions (1)
996 Views
5 Replies
Replies (5)
Message 2 of 6

ВeekeeCZ
Consultant
Consultant
Accepted solution

Not sure what you want... 'cause it seems to be too easy.

 

(command "_.mleader")
  	(princ "\nMtext: erste Fensterecke angeben: ")
  	(command pause ) ;"a" "oz")
  	(princ "\nMtext: zweite Fensterecke angeben: ")
  	(command pause "Titel" "")
	(command "_textedit" "l")

btw "a" "oz" are probably german? dunno what it stands for.

0 Likes
Message 3 of 6

C.Utzinger
Collaborator
Collaborator

Perfect Smiley LOL

 

I knew there should be something easy...

 

Yes "a" "oz" are german.

 

 

Best regards

0 Likes
Message 4 of 6

C.Utzinger
Collaborator
Collaborator

 

Sometimes I think something should be difficult but it's not!

 

Smiley Frustrated

 

Regards

0 Likes
Message 5 of 6

ВeekeeCZ
Consultant
Consultant

@C.Utzinger wrote:

 

Sometimes I think something should be difficult but it's not!

 

Smiley Frustrated

 

Regards


Well, the real deal is how to make a mtext WITHOUT a predefined text. 😉  

(text completion must be within the drawing canvas, not at command line)

0 Likes
Message 6 of 6

C.Utzinger
Collaborator
Collaborator

I don't understand exactly your answer. but it is an Mleader for a special Text,

so the user knows how to rewrite it with his own information.

So at the end we have a kind of standard and not Chaos.

 

Thank you...

 

Best regards

0 Likes