p7q Posted April 22 Posted April 22 Hi, When I mirror a block that contains TEXT or MTEXT, the text becomes mirrored and hard to read. I know about the MIRRTEXT variable, but it only affects ATTDEF objects—it doesn’t fix normal TEXT or MTEXT inside a block. Is there a simple LISP routine that can help fix the mirrored text inside a mirrored block? Ideally, it would let me select the block and automatically correct the rotation of any TEXT or MTEXT inside. Thanks in advance! Quote
Steven P Posted April 22 Posted April 22 I think you have to use Attribute text instead for text or mtext to fix this - there is a setting "constant" so the user cannot alter the value Quote
p7q Posted April 22 Author Posted April 22 (edited) Thanks for the suggestion! Yes, I’m aware that using attributes with the "constant" setting works well to avoid mirrored text, especially for new block definitions. But in my case, I’m working with existing DWG files that already contain regular TEXT and MTEXT inside blocks. So instead of redesigning the blocks with attributes, I’m looking for a way to fix mirrored text in these existing blocks—ideally with a LISP routine that can adjust the rotation or orientation of the text after mirroring. Edited April 24 by p7q Quote
Lee Mac Posted April 22 Posted April 22 In the below post I demonstrate a concept program to facilitate mirroring a block without mirroring the text it contains: https://www.theswamp.org/index.php?topic=46271.msg513250#msg513250 1 Quote
p7q Posted April 22 Author Posted April 22 1 hour ago, Lee Mac said: In the below post I demonstrate a concept program to facilitate mirroring a block without mirroring the text it contains: https://www.theswamp.org/index.php?topic=46271.msg513250#msg513250 Thanks for sharing that, it's a helpful approach! However, in my case the blocks have already been mirrored using the standard MIRROR command, so I’m looking for a solution that can be applied after the mirror operation has been done. Do you have a suggestion for this situation? Quote
Steven P Posted April 22 Posted April 22 You could do a selection set with a filter for (0 . "INSERT") (blocks) and (41 . <0) (not sure how the less than would work? assuming mirrored in x direction (42 for Y and 43 for Z directions) to give you a list of mirrored blocks. You could then 'unmirror' each of these (entmod 41) by multiplying it by -1 ? and use Lee Macs idea over at the swamp to mirror them again creAting a new block with reversed text or create a new attdef within the block to replace the texts? 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.