TheSwamp

CAD Forums => CAD General => Topic started by: param on March 17, 2004, 08:07:55 PM

Title: Blocks ??
Post by: param on March 17, 2004, 08:07:55 PM
I have searched in 3 different books and can't find how to mirror blocks.
is it possible ot do that.

Thanks

param :roll:
Title: Blocks ??
Post by: CAB on March 17, 2004, 08:22:37 PM
Is this a trick question? :shock:

mirror command mirrors blocks.

What is the problem you are having?

CAB
Title: Blocks ??
Post by: Keith™ on March 17, 2004, 10:39:58 PM
Must be a trick question...or he is using textin his blocks that WILL NOT show correctly in a mirrored block UNLESS it is an attribute...
Title: Blocks ??
Post by: CAB on March 17, 2004, 11:00:41 PM
Daron's post here (http://theswamp.org/phpBB2/viewtopic.php?t=1066&highlight=mirror+block+attribute) may be of some help.
Title: Blocks ??
Post by: CAB on March 17, 2004, 11:11:08 PM
Found this:

Quote
Message 4 in thread
From: Doug Broad (dbroad@nash.cc.nc.us)
Subject: Re: Improving weak routine (Suggestions?)
 
 
View this article only
Newsgroups: autodesk.autocad.customization
Date: 2002-03-11 12:40:52 PST
 

I guess it was "weak" too. <G>  Try this:


Code: [Select]
;;unmirror attributes C:UMA Rev 2.
;;Select insert objects and attributes will become unmirrored.
(defun c:uma  (/ ss i e ei) ;D. C. Broad- 2002
  (and (setq ss (ssget (list (cons 0 "insert") (cons 66 1))));insert with attributes
       (setq i 0)
       (repeat (sslength ss)    ;for each insert
  (setq e  (entnext (ssname ss i))
        i  (1+ i)
        ei (entget e))
  (while (/= (cdr (assoc 0 ei)) "SEQEND") ;for each attribute
    (setq ei (subst (cons 50 0.0)(assoc 50 ei) ei));rotate to horizontal
    (ENTMOD (setq ei (subst (cons 71 0)(assoc 71 ei) ei)));change text flags
    (entupd e)
    (setq e  (entnext e)
   ei (entget e))))))

Title: Blocks ??
Post by: param on March 18, 2004, 07:06:01 AM
Sorry, Guys my apologies
I am  using textin in blocks that WILL NOT show correctly in a mirrored block .
Title: Blocks ??
Post by: TR on March 18, 2004, 07:20:18 AM
I think you need to change the mirrtext system variable to 1. I'm not 100% sure though, I'll check when I get to work.
Title: Blocks ??
Post by: param on March 18, 2004, 07:32:35 AM
Tim,

You have to set Mirrtxt variable to 0 and text will not mirror, but If the text is in block, it mirrors but not the "right" way

Thanks

Param
Title: Blocks ??
Post by: param on March 18, 2004, 10:14:33 AM
Sorry, Guys my apologies
I am using text in blocks that WILL NOT show correctly in a mirrored block .

Does any body has a solution for me, still waiting.

 I don't know lisp routines at all, looks kind of scary to me . Is it easy to learn where do I start  :?:  :?:

Thanks
Title: Blocks ??
Post by: Dommy2Hotty on March 18, 2004, 10:24:03 AM
Quote from: Keith
...or he is using textin his blocks that WILL NOT show correctly in a mirrored block UNLESS it is an attribute...


Text that is contained within a block CAN NOT be mirrored correctly.  I haven't had much experience with attributes, but I trust Keith (even though common sense tells me I shouldn't).  So I'd take a look into that.

Other than doing that, just explode the block, then mirror it, then reblock it if needed.
Title: Blocks ??
Post by: Trev on March 18, 2004, 10:24:52 AM
If you are using text within a block & mirror that block the text will mirror as per the rest of the block. So the text will appear back to front.
If the text within the block is an attribute then it can remain normal when mirroring by setting the mirrtxt variable to 0.
Title: Blocks ??
Post by: Keith™ on March 18, 2004, 02:06:50 PM
You could do a lisp to mirror the text as required in the block, BUT it would require the block be renamed as the original block would be affected as well.
Title: Blocks ??
Post by: TR on March 19, 2004, 12:13:26 AM
Quote from: Dommy2Hotty
Text that is contained within a block CAN NOT be mirrored correctly.


The only thing that's goes haywire with the text whilst mirroring a block is the justification. Attributes, however, will mirror regardless of your mirrtext variable.
Title: Blocks ??
Post by: Keith™ on March 19, 2004, 09:29:57 AM
Quote from: Tim Riley
The only thing that's goes haywire with the text whilst mirroring a block is the justification.


I'd like to have a copy of the version of AutoCAD you use because in every block I have ever had.. in any version of AutoCAD I have ever used the text is mirrored (i.e. reversed, upside down, etc..) when the block is mirrored.
If you have something different PLEASE share it with us....
All text, even attributes will be affected by mirroring (with regards to the justification point except "MiddleCenter")
Title: Blocks ??
Post by: param on March 19, 2004, 09:47:59 AM
Keith,

It is an AutoCad 2000 dwg. I just sent the block to you.

Thanks a lot
 :lol:
Title: Blocks ??
Post by: Keith™ on March 19, 2004, 09:54:15 AM
Ok..... sent it to where?
Title: Blocks ??
Post by: daron on March 19, 2004, 10:22:07 AM
Quote from: Tim Riley
The only thing that's goes haywire with the text whilst mirroring a block is the justification. Attributes, however, will mirror regardless of your mirrtext variable.

Tim, I think you have it backwards. Attributes can be updated and even changed as I pointed out in the link that CAB posted.
Title: Blocks ??
Post by: TR on March 19, 2004, 06:57:56 PM
You guys are correct. I was drinking kind of heavily before I posted that. Sorry.