The Buzzard Posted December 9, 2010 Posted December 9, 2010 Michaels, I am trying to understand why you need MTEXT (Multiline Text) for something that requires a single line of text. Can you please explain? Maybe I am missing something here? Quote
Michaels Posted December 9, 2010 Author Posted December 9, 2010 Thanks Buzzard, I want the code that would make the text fit to the length of a line as I mentioned in page #2 within the Image that I brought . Quote
The Buzzard Posted December 9, 2010 Posted December 9, 2010 Thanks Buzzard, I want the code that would make the text fit to the length of a line as I mentioned in page #2 within the Image that I brought . Ok, So its TEXT and not MTEXT I am assuming. MTEXT justification cannot be set to fit the text, So I just want to point this out to you as you specifically indicated you were using MTEXT. For TEXT entities you can set it to FIT : (cons 72 5) Refer to your Developer Help Section in AutoCAD as I mentioned to you before. There is a world of information there. BTW, I am not going to write it for you. You have done enough of entmake to know how this works. Look it up. Note that you will need to calculate the points required to position your text in the box. Quote
The Buzzard Posted December 9, 2010 Posted December 9, 2010 Hint: I placed FIT justified text in my drawing editor and pulled the list on it and here is what it returns: (-1 . <Entity name: 7ef59e90>) (0 . "TEXT") (330 . <Entity name: 7ef59cf8>) (5 . "8A") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbText") (10 -8.86512 5.61832 0.0) (40 . 0.2) (1 . "THIS IS FIT TEXT") (50 . 0.0) (41 . 2.01004) (51 . 0.0) (7 . "Standard") (71 . 0) (72 . 5) (11 -2.96902 5.61832 0.0) (210 0.0 0.0 1.0) (100 . "AcDbText") (73 . 0) Now look it up. Quote
Michaels Posted December 9, 2010 Author Posted December 9, 2010 That's right Buzzard. I have seen that before and it is belong to Text entmakex and my plans were to Mtext . So I think I have to give up at this point and try to play with height of mtext according to the length of the selected line manually or approximately. Thank you all Gentlemen for your appreciated help. michaels Quote
The Buzzard Posted December 9, 2010 Posted December 9, 2010 That's right Buzzard. I have seen that before and it is belong to Text entmakex and my plans were to Mtext . So I think I have to give up at this point and try to play with height of mtext according to the length of the selected line manually or approximately. Thank you all Gentlemen for your appreciated help. michaels So it is MTEXT you want. I do not get it. Why MTEXT? You only have one line of TEXT. I give up. Quote
Michaels Posted December 9, 2010 Author Posted December 9, 2010 So it is MTEXT you want.I do not get it. Why MTEXT? You only have one line of TEXT. I give up. Yes in that routine that I provided were just as an example but the main routine is completely different than that. So I think I would make it with (cond) function to check for example, if the length is less than 1000. the Text entmakex would fill that area out with a text (not mtext) and Mtext on the other hand . I guess it would be the best choice for my situations of the routine . Thank you Buzzard Quote
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.