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

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Water Moccasin
  • Posts: 2074
  • 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.
Autodesk Infrastructure Design Suite 2017

Jeff_M

  • King Gator
  • Posts: 3904
  • 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

  • Water Moccasin
  • Posts: 2074
  • 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.
Autodesk Infrastructure Design Suite 2017

Jeff_M

  • King Gator
  • Posts: 3904
  • 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

  • Water Moccasin
  • Posts: 2074
  • 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.
Autodesk Infrastructure Design Suite 2017

Jeff_M

  • King Gator
  • Posts: 3904
  • 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

  • Water Moccasin
  • Posts: 2074
  • 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.
Autodesk Infrastructure Design Suite 2017