Jump to content

Recommended Posts

Posted

Dear all,

How can i able to combine M-text with leader and box as i do it manually by coping leader and box and then copy text and paste it inside box i am also attaching the dwg here

dim.dwg

Posted

Without looking at your drawing...

Have you tried making a block with your Mtext/Box with Attributes then making a MLeader using the block?

You can make multiple versions with different size boxes too...

Just a thought before getting into programming..

Posted (edited)

Simply modify or create a new leader, and check the box shown in this image.  and bobs yer uncle.  The frame automagically adjusts to the text no matter how many lines or how long the text is.

LEADER.png

Edited by Dana W
Posted

You posted in the LISP sub forum.  Did you think this required a LISP routine?  It doesn't.

Posted
1 hour ago, Dana W said:

You posted in the LISP sub forum.  Did you think this required a LISP routine?  It doesn't.

 

 

 (setq obj (vlax-ename->vla-object ENT))
         (vlax-put-property obj 'TextFill :vlax-true)
         (vlax-put-property obj 'TextFRAMEDISPLAY :vlax-true)

 

 

 

 

 

Posted
On 12/18/2020 at 11:04 PM, Dana W said:

Simply modify or create a new leader, and check the box shown in this image.  and bobs yer uncle.  The frame automagically adjusts to the text no matter how many lines or how long the text is.

LEADER.png

for this first i should create Mleader after that this will happen

  • 2 weeks later...
Posted
On 12/21/2020 at 3:27 AM, pmadhwal7 said:

for this first i should create Mleader after that this will happen

You can modify an existing leader but, unless you want ALL your mleaders with frames you will also need leaders with no frames, right?

Posted
On 12/18/2020 at 2:28 PM, hosneyalaa said:

 

 

 (setq obj (vlax-ename->vla-object ENT))
         (vlax-put-property obj 'TextFill :vlax-true)
         (vlax-put-property obj 'TextFRAMEDISPLAY :vlax-true)

 

 

 

 

 

Well, the key word here is "require".  Don't you already need a leader to change properties.

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...