TheSwamp

CAD Forums => Vertically Challenged => Land Lubber / Geographically Positioned => Topic started by: MSTG007 on October 04, 2016, 01:53:39 PM

Title: Convert Structure Label to Mleader?
Post by: MSTG007 on October 04, 2016, 01:53:39 PM
Is there a way to convert a structure label into a mleader? I know you can explode it to death and then rebuild it from there, but I did not know if there was a direct way to do it.
Title: Re: Convert Structure Label to Mleader?
Post by: Jeff_M on October 04, 2016, 02:08:31 PM
No, not sure I'd want to anyway.
Title: Re: Convert Structure Label to Mleader?
Post by: MSTG007 on October 04, 2016, 02:30:34 PM
Its not for design data. We have survey information we dumb down to 2D. Just thought I would ask.
Title: Re: Convert Structure Label to Mleader?
Post by: Jeff_M on October 04, 2016, 04:13:43 PM
I have something in .NET code that explodes labels to the mtext & lines/leaders, removes the original label, and purges the anonymous block created during the explode portion. It actually works with any AECC_*_LABEL object, but not the grouped labels such as alignment or profile labels. I could probably tweak it so the resultant objects are on the layer prescribed by the label and/or style and also add the Mleader portion (what happens when the DraggedState is AsComposed and the label contains lines/blocks?).
Title: Re: Convert Structure Label to Mleader?
Post by: MSTG007 on October 04, 2016, 04:16:56 PM
Usually they become Blocks. Usually we explode them twice.
Title: Re: Convert Structure Label to Mleader?
Post by: Jeff_M on October 04, 2016, 04:33:44 PM
Yes, I know. I coded to omit the need for exploding twice. I should've been more clear in my question....I meant, what happens to the linework a style might have when in dragged state and you want this converted to an Mleader? Undragged labels will just become what they are, lines & text. But Dragged labels would be turned into MLeaders...trying to figure the best way to handle the possibility of having text/lines/blocks that would need to be handled.

Here's a short video of how it currently is working...note the objects are placed on the current layer, that will be fixed. http://screencast.com/t/7rirV2vvuok
Title: Re: Convert Structure Label to Mleader?
Post by: MSTG007 on October 04, 2016, 04:42:30 PM
The undragged state usually shows up as each line as its own mtext. The dragged state shows as one mtext and with a leader line.