Jump to content

Recommended Posts

Posted

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!

Posted

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

Posted (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 by p7q
Posted
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?

Posted

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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...