Jump to content

Recommended Posts

Posted
  On 9/21/2019 at 2:15 PM, dlanorh said:

Use the "QLATTACH" command.

Expand  

no it's was not working on those type of text

Posted

It worked when I tested it on your drawing, but I suspect you want the Leader and MText converting into an MLeader.

Posted
  On 9/23/2019 at 7:37 AM, dlanorh said:

It worked when I tested it on your drawing, but I suspect you want the Leader and MText converting into an MLeader.

Expand  

is it possible??? and if not then how can i globally join those type of multiple text because "QLATTACH"  working only in one text can you provide me any type of lsp???

i will highly thankful of you if you help me 

Posted
  On 9/23/2019 at 11:16 AM, pmadhwal7 said:

is it possible??? and if not then how can i globally join those type of multiple text because "QLATTACH"  working only in one text can you provide me any type of lsp???

i will highly thankful of you if you help me 

Expand  

 

It may be possible to adapt a current lisp, the only problem is time. Can you provide a sample drawing (saved as AutoCAD 2010)?

Posted
  On 9/23/2019 at 11:57 AM, dlanorh said:

 

It may be possible to adapt a current lisp, the only problem is time. Can you provide a sample drawing (saved as AutoCAD 2010)?

Expand  

check the attached sample file sir...

MLeader.dwgFetching info...

Posted

The  QLATTACH command associates an MText with a leader. It doesn't physically attach the MText to the leader. This makes it really easy to convert leaders to MLeaders as all the required information is contained within the leader object. None of the MText items in your sample drawing are associated with their leader. Are you using a lisp to create these leaders and MText?

Posted
  On 9/23/2019 at 9:53 PM, dlanorh said:

The  QLATTACH command associates an MText with a leader. It doesn't physically attach the MText to the leader. This makes it really easy to convert leaders to MLeaders as all the required information is contained within the leader object. None of the MText items in your sample drawing are associated with their leader. Are you using a lisp to create these leaders and MText?

Expand  

sir i want to associate those leader with mtext like  "QLATTACH"  command worked but the problem is qlattach command working in only one text in one time and i want to globally attached them  as i have many of those type of coordinate's and i manually copy and paste them to mleader text

Posted
  On 9/24/2019 at 8:24 AM, Ish said:

QLATTACH command is perfectly working wtih your cad file. 

Expand  

WORKING BUT ONLY ONE TEXT IN ONE TIME I WANT GLOBALLY ATTACHED THEM BECAUSE I HAVE MANY TEXT LIKE THIS.

  • Like 1
Posted
  On 9/24/2019 at 8:38 AM, pmadhwal7 said:

WORKING BUT ONLY ONE TEXT IN ONE TIME I WANT GLOBALLY ATTACHED THEM BECAUSE I HAVE MANY TEXT LIKE THIS.

Expand  

i found:- 

express->dimension->leader tools->global attach leader to annotation.

 

but it is not working .

Posted
  On 9/24/2019 at 2:32 PM, Ish said:

i found:- 

express->dimension->leader tools->global attach leader to annotation.

 

but it is not working .

Expand  

 

Unfortunately "qlattachset" is obsolete, and although you can still type the command as it is in the "leaderex.arx" file, it does nothing.

 

I should have something working by tomorrow afternoon that will associate the mtext with the leader, and then convert the Leader to a Mleader.

  • Like 1
Posted
  On 9/24/2019 at 7:38 PM, dlanorh said:

 

Unfortunately "qlattachset" is obsolete, and although you can still type the command as it is in the "leaderex.arx" file, it does nothing.

 

I should have something working by tomorrow afternoon that will associate the mtext with the leader, and then convert the Leader to a Mleader.

Expand  

Many thanks sir...

Posted
  On 9/24/2019 at 8:23 PM, ronjonp said:

There is also THIS from 10 years ago!

Expand  

i saw this forum earlier but i didn't found the solution....

Posted
  On 9/24/2019 at 7:38 PM, dlanorh said:

 

Unfortunately "qlattachset" is obsolete, and although you can still type the command as it is in the "leaderex.arx" file, it does nothing.

 

I should have something working by tomorrow afternoon that will associate the mtext with the leader, and then convert the Leader to a Mleader.

Expand  

WE WILL BE THANKFUL. 

Posted

OK. Attached are two lisps

 

assocMText2Leader.lsp

This lisp will find all Leaders and MText in layer "Coordinates" and attempt to match the MText to a Leader, where the Leader does not have an associated MText item.

It does this by comparing the insertion point of the MText with each corner of the Leaders Bounding Box and if it is within the fuzz factor it then associates this MText to the leader.

To run this lisp type "AMT2L"  Points to note. This does not join the two items, merely associates them.

 

Leader2MLeader2.lsp

This lisp converts the Leader to an Mleader. It creates an MLeader style "Coordinates" if this is not present in the drawing and then combines the Leader and Mtext into a new MLeader object in layer Coordinates. It deletes the old Leader and associated MText. To run this lisp type "L2ML". It will not process any leader without an associated MText

 

Both of these have been tested on the supplied Sample drawing only and are working correctly, although it is possible I've missed something obvious.

Leader2MLeader2.lspFetching info... assocMText2Leader.lspFetching info...

Posted (edited)
  On 9/25/2019 at 4:19 PM, dlanorh said:

OK. Attached are two lisps

 

assocMText2Leader.lsp

This lisp will find all Leaders and MText in layer "Coordinates" and attempt to match the MText to a Leader, where the Leader does not have an associated MText item.

It does this by comparing the insertion point of the MText with each corner of the Leaders Bounding Box and if it is within the fuzz factor it then associates this MText to the leader.

To run this lisp type "AMT2L"  Points to note. This does not join the two items, merely associates them.

 

Leader2MLeader2.lsp

This lisp converts the Leader to an Mleader. It creates an MLeader style "Coordinates" if this is not present in the drawing and then combines the Leader and Mtext into a new MLeader object in layer Coordinates. It deletes the old Leader and associated MText. To run this lisp type "L2ML". It will not process any leader without an associated MText

 

Both of these have been tested on the supplied Sample drawing only and are working correctly, although it is possible I've missed something obvious.

Leader2MLeader2.lsp 4 kB · 0 downloads assocMText2Leader.lsp 1.95 kB · 0 downloads

Expand  

AMT2L working but

Command: L2ML

Oops an Error : Automation Error. Description was not provided. occurred.

Edited by pmadhwal7
Posted
  On 9/25/2019 at 4:19 PM, dlanorh said:

OK. Attached are two lisps

 

assocMText2Leader.lsp

This lisp will find all Leaders and MText in layer "Coordinates" and attempt to match the MText to a Leader, where the Leader does not have an associated MText item.

It does this by comparing the insertion point of the MText with each corner of the Leaders Bounding Box and if it is within the fuzz factor it then associates this MText to the leader.

To run this lisp type "AMT2L"  Points to note. This does not join the two items, merely associates them.

 

Leader2MLeader2.lsp

This lisp converts the Leader to an Mleader. It creates an MLeader style "Coordinates" if this is not present in the drawing and then combines the Leader and Mtext into a new MLeader object in layer Coordinates. It deletes the old Leader and associated MText. To run this lisp type "L2ML". It will not process any leader without an associated MText

 

Both of these have been tested on the supplied Sample drawing only and are working correctly, although it is possible I've missed something obvious.

Leader2MLeader2.lsp 4 kB · 0 downloads assocMText2Leader.lsp 1.95 kB · 0 downloads

Expand  

Command: AMT2L
; error: bad argument type: numberp: (#<VLA-OBJECT IAcadLeader 0000023cf14e67e8> #<VLA-OBJECT IAcadLeader 0000023cf14e6898> #<VLA-OBJECT IAcadLeader 0000023cf14e5ce8> #<VLA-OBJECT IAcadLeader 0000023cf14e6948> #<VLA-OBJECT IAcadLeader 0000023cf14e75a8> #<VLA-OBJECT IAcadLeader 0000023cf14e61b8> #<VLA-OBJECT IAcadLeader 0000023cf14e6528> #<VLA-OBJECT IAcadLeader 0000023cf14e6058> #<VLA-OBJECT IAcadLeader 0000023cf14e5b88>)

 

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