Change text angle of a multileader........

Change text angle of a multileader........

doni49
Mentor Mentor
80 Views
4 Replies
Message 1 of 5

Change text angle of a multileader........

doni49
Mentor
Mentor

All the links I've found indicate that the text angle is stored in bit 50.  But when I check my multileader, bit 50 isn't even set (the angle is currently set to 90 degrees).  Ninety degrees converts to 1.5708 radians.  That value is stored in bit 42.  But when I try to use entmod to change it, all that happens is the entity data (as shown below) is shown and the text is NOT rotated.

 

(setq ent (entget(ssname ents 0)))
((-1 . <Entity name: 16f9fe69ea0>) (0 . "MULTILEADER") (330 . <Entity name: 16f9fef39f0>) (5 . "A22A") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "R-IMG") (100 . "AcDbMLeader") (270 . 2) (300 . "CONTEXT_DATA{") (40 . 1.0) (10 -22.6058 -11.7107 0.0) (41 . 0.18) (140 . 0.18) (145 . 0.09) (174 . 1) (175 . 6) (176 . 0) (177 . 0) (290 . 1) (304 . "ASDFASDF") (11 0.0 0.0 1.0) (340 . <Entity name: 16f9fef3910>) (12 -22.6958 -11.6207 0.0) (13 6.12323e-17 1.0 0.0) (42 . 1.5708) (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 -23.2629 -13.3666 0.0) (111 6.12323e-17 1.0 0.0) (112 -1.0 6.12323e-17 0.0) (297 . 0) (302 . "LEADER{") (290 . 1) (291 . 1) (10 -22.6058 -12.0707 0.0) (11 6.12323e-17 1.0 0.0) (90 . 0) (40 . 0.36) (304 . "LEADER_LINE{") (10 -23.2629 -13.3666 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: 16f9fee1b20>) (90 . 279552) (170 . 1) (91 . -1056964608) (341 . <Entity name: 16f9fef3940>) (171 . -2) (290 . 1) (291 . 1) (41 . 0.36) (42 . 0.18) (172 . 2) (343 . <Entity name: 16f9fef3910>) (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) (295 . 1))

 



Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

0 Likes
81 Views
4 Replies
Replies (4)
Message 2 of 5

pendean
Community Legend
Community Legend

@doni49 Can you share a screenshot of what the final result is meant to be? Just explode an MLEADER then fudge it for us to see your intent.

0 Likes
Message 3 of 5

BlackBox_
Advisor
Advisor

DXF 50 refers to the oblique angle of the text style, which is in the DXF 340 subentity definition. 

 

The oblique angle of the MText is part of the TextString property value itself... as example, this MLeader MText has a 45-degree oblique angle:

"{\\Q45;Your MLeader Text Here}"

 

HTH


"How we think determines what we do, and what we do determines what we get."

Sincpac C3D ~ Autodesk Exchange Apps

0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant

Help says it's 42.

https://help.autodesk.com/view/ACD/2025/ENU/?guid=GUID-EC56D0DE-026D-46AB-87B1-9692393B0C22

 

But if your goal is to change it... I would rather use the setproperty..

(setpropertyvalue (car (entsel)) "MText/Rotation" 0)

0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

If I understand correctly change angle of Text.

 

(setq obj (vlax-ename->vla-object (car (entsel "\nPick mleader object "))))
(vlax-put obj 'textrotation (/ pi 2)) ; 90 degrees angle is in radians.
0 Likes