RepCad Posted October 6, 2019 Share Posted October 6, 2019 (edited) Hi all guys, I wrote a simple code to make leader with x,y coordinates and it's working well but when I explode or delete mtext of leader, the botton line of the mtext is automatically cleared, (I explode mtext because I want to convert it to text) (defun c:ldd () (setq p1 (getpoint "\npick a point :")) (setq p2 (getpoint "\npick a secound point :")) (setq x (car p1)) (setq y (cadr p1)) (setq sx (rtos x)) (setq sy (rtos y)) (setq text (strcat "X=" sx " \nY=" sy)) (command "leader" p1 p2 "" text "") ) Can someone give me a solution?? Edited October 6, 2019 by amir0914 1 Quote Link to comment Share on other sites More sharing options...
dlanorh Posted October 6, 2019 Share Posted October 6, 2019 Without a drawing (AutoCAD 2010 format) containing an MLeader I can't provide a solution. As to why, it is because the textleftattachment is set to underline bottom of text, If you explode the leader or delete the text there is no associated text to underline 1 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 6, 2019 Share Posted October 6, 2019 Perhaps you could explain the next step as to why you explode the leader, is it that you want to move or get the co-ordinates ? 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.