Author Topic: Convert Structure Label to Mleader?  (Read 4021 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Convert Structure Label to Mleader?
« 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.
Civil3D 2020

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: Convert Structure Label to Mleader?
« Reply #1 on: October 04, 2016, 02:08:31 PM »
No, not sure I'd want to anyway.

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Convert Structure Label to Mleader?
« Reply #2 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.
Civil3D 2020

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: Convert Structure Label to Mleader?
« Reply #3 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?).

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Convert Structure Label to Mleader?
« Reply #4 on: October 04, 2016, 04:16:56 PM »
Usually they become Blocks. Usually we explode them twice.
Civil3D 2020

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: Convert Structure Label to Mleader?
« Reply #5 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

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Convert Structure Label to Mleader?
« Reply #6 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.
Civil3D 2020