Author Topic: Selected Object Layer to MLeader Attribute Value  (Read 274 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Water Moccasin
  • Posts: 2440
  • I can't remeber what I already asked! I need help!
Selected Object Layer to MLeader Attribute Value
« on: February 18, 2020, 07:02:00 AM »
I am looking for a way to auto label a plan sheet via the xref layers with a MLeader. Then Create a Legend with a Mtext.

this is the overall idea and I know its a mess (sorry)...

------------------------------------------------------------------------

(Auto Label selection with a MLeader Note bubble )
If I were to select an object via an xref and get the layer name.
Have it look up the layer keyword and place Abbreviation in the MLeader Note bubble.

Would it be possible for the routine could match layer to a keyword?
If the routine sees the Layer Name (wildcard)Concrete sidewalk(wildcard); it could be tied to a (CS) note bubble.

If the layer name is
(*CONCRETE SIDEWALK* = CS)
(*CONCRETE CURB* = CC)
(*SIGN* = SG)
(*CONCRETE CURB AND GUTTER* = CCG)

Then place the layer name into the Mleader's Attribute.

------------------------------------------------------------------------
(To create the legend)
maybe select all the mleaders.
It could Take the Abbreviation and the Keyword Name with (*)
Place those values in a MText Box.

CC(tab tab)CONCRETE CURB
CCG(tab tab)CONCRETE CURB AND GUTTER
CS(tab tab)CONCRETE SIDEWALK
SG(tab tab)SIGN

--------------------------------------------------------------------


Autodesk Infrastructure Design Suite 2019