I am curious as I am putting a LiSP together to change text from one style to another and move all text and leaders to the text layer.
I started playing with MultiLeaders and have come across this interesting problem.
So here is a Multileader:
Select object: ((-1 . <Entity name: -40570370>) (0 . "MULTILEADER") (330 .
<Entity name: -405740f8>) (5 . "EF5A") (100 . "AcDbEntity") (67 . 1) (410 .
"BORDER") (8 . "0") (100 . "AcDbMLeader") (270 . 2) (300 . "CONTEXT_DATA{") (40
. 1.0) (10 16.8211 12.9629 0.0) (41 . 0.125) (140 . 0.18) (145 . 0.09) (174 .
1) (175 . 6) (176 . 0) (177 . 0) (290 . 1) (304 . "this is a test\\Pa real
test") (11 0.0 0.0 1.0) (340 . <Entity name: -405761d8>) (12 16.9111 13.0264
0.0) (13 1.0 0.0 0.0) (42 . 0.0) (43 . 0.0) (44 . 0.0) (45 . 1.0) (170 . 1) (90
. -1073741824) (171 . 1) (172 . 5) (91 . -1073741824) (141 . 0.0) (92 . 0) (291
. 0) (292 . 0) (173 . 0) (293 . 0) (142 . 0.0) (143 . 0.0) (294 . 0) (295 . 0)
(296 . 0) (110 16.2087 12.4361 0.0) (111 1.0 0.0 0.0) (112 0.0 1.0 0.0) (297 .
0) (302 . "LEADER{") (290 . 1) (291 . 1) (10 16.5711 12.9629 0.0) (11 1.0 0.0
0.0) (90 . 0) (40 . 0.25) (304 . "LEADER_LINE{") (10 16.2087 12.4361 0.0) (91 .
0) (170 . 1) (92 . -1056964608) (340 . <Entity name: 0>) (171 . -2) (40 . 0.0)
(341 . <Entity name: 0>) (93 . 0) (305 . "}") (271 . 0) (303 . "}") (272 . 9)
(273 . 9) (301 . "}") (340 . <Entity name: -40576148>) (90 . 17056768) (170 .
1) (91 . -1056964608) (341 . <Entity name: -405761a8>) (171 . -2) (290 . 1)
(291 . 1) (41 . 0.25) (42 . 0.18) (172 . 2) (343 . <Entity name: -405761d8>)
(173 . 1) (95 . 6) (174 . 1) (175 . 0) (92 . -1056964608) (292 . 0) (93 .
-1056964608) (10 1.0 1.0 1.0) (43 . 0.0) (176 . 0) (293 . 0) (294 . 0) (178 .
0) (179 . 1) (45 . 1.0) (271 . 0) (272 . 9) (273 . 9))
And I want to change the Leader style and Text style to another type, so I need to pull the info from DXF 340 & 343 - right?
Command: (SETQ A (CDR (ASSOC 343 Y)))
<Entity name: -405761d8>
Command: (SETQ B (ENTGET A))
((-1 . <Entity name: -405761d8>) (0 . "STYLE") (330 . <Entity name: -405763e8>)
(5 . "5D") (100 . "AcDbSymbolTableRecord") (100 . "AcDbTextStyleTableRecord")
(2 . "Standard") (70 . 0) (40 . 0.125) (41 . 1.0) (50 . 0.0) (71 . 0) (42 .
0.125) (3 . "ARIAL.TTF") (4 . ""))
Now standard Text and MText uses DXF 7 to change its style, but Multileaders have DXF 2.
I've tried this (already knowing it won't work):
(ENTMOD (SUBST (CONS 343 TSTYL)(ASSOC 343 (ENTGET B))(ENTGET B)))
; error: bad DXF group: (343 . "NWP")
So, my question(s) is this; How do you change a MultiLeader from one text style to another? Perhaps I need to ask this question a different way; How do you extract the DXF code so you can change it? Is there a different way the DXF needs to be changed than that above after it is extracted?
I don't think my questions are correct for what I am trying to find, but I am at a loss of knowledge to ask the proper questions to this particular subject.
I thought for sure I had read this in another post here somewhere, but I have failed to find it.
Thanks for your thoughts and suggestions.