Hi,
I'm labeling several floorplans with room numbers and square footages. The square footages are MTEXT single line fields that are automatically calculating closed polyline areas, while the room numbers are separate single line MTEXT. Our standard annotation shows the room number in the center of the room with the square footage underneath. Is there a way to quickly align all of the room numbers (MTEXTS) to sit just above each respective square footage number? I've browsed many different forum boards for a solution, but have been unsuccessful. I am wondering if there is an LSP out there somewhere that would allow this?
Thanks.
Solved! Go to Solution.
Solved by Sofia.Xanthopoulou. Go to Solution.
sorry misunderstood
this wont do them all at once but perhaps may help http://www.lee-mac.com/aligntext.html
but its kind of like text align..
CADnoob
Hi @Anonymous,,
what about having the MTEXTs already in a block?
Regards
So, I have calculated the square footages of the room areas using an LSP that automatically labels all the square footages as MTEXT field all at once. I'm not sure how I can add those specific square footages to a block while having the correct room numbers, since every room number is different. Could you perhaps elaborate a bit on your solution sofia.xanthopoulou?
thanks.
@Sofia.Xanthopoulou wrote:Hi @Anonymous,,
what about having the MTEXTs already in a block?
Regards
@TheCADnoob wrote:sorry misunderstood
this wont do them all at once but perhaps may help http://www.lee-mac.com/aligntext.html
but its kind of like text align..
This LSP almost works... the only problem is that it will only align TEXT objects, not MTEXT objects. The square footages, unfortunately, are in MTEXT, not text. I tried editing the LSP to select MTEXT rather than just text, but it won't execute properly now. This is definitely on the right track though.
Do you work on plain AutoCAD or Architectural?
Are your rooms only closed polyline profiles or rooms?
Actually I was thinking about attributes... so, no blocks, sorry...
Well, I am not so much into programming but you could tag your room with this:
Hi @Anonymous,
has there been any suitable reply for you? You never gave us any feedback by accepting a solution or asking further questions. I am sure all posters and reader are curious which proposal you have followed? Did you find another way? Please share your experience with all readers
Thank you
Thanks for your reply @Anonymous,
I may have used Architectural for my video, but all commands I showed there are plain AutoCAD. Have you tried it? Could this workflow be an option for you?
Regards
Try changing this line in Lee's code.
(if (setq sel (ssget "_:L" '((0 . "TEXT"))))
to
(if (setq sel (ssget "_:L" '((0 . "MTEXT"))))
Untested.
Thanks.
Hi @Anonymous,
Any feedback from you will be appreciated very much
This was a very interesting question and I am sure all readers awaiting to see your response. So, if one of the posts resolved your question go ahead and mark it as accepted solution. If you still have questions on this, please continue the conversation.
Regards
Hi there!
I don't think there is a solution that I can choose but this is almost exactly what I want. It does get the job done but I used to have a lisp where you selected all of your text, they can have all different justications too, once text is selected you simply click to where you want them all to be aligned and that's it!
Thank you for your solution
John
Can't find what you're looking for? Ask the community or share your knowledge.