Author Topic: Blocks ??  (Read 7643 times)

0 Members and 1 Guest are viewing this topic.

param

  • Guest
Blocks ??
« 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:

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Blocks ??
« Reply #1 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
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Blocks ??
« Reply #2 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...
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Blocks ??
« Reply #3 on: March 17, 2004, 11:00:41 PM »
Daron's post here may be of some help.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Blocks ??
« Reply #4 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))))))

I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

param

  • Guest
Blocks ??
« Reply #5 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 .

TR

  • Guest
Blocks ??
« Reply #6 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.

param

  • Guest
Blocks ??
« Reply #7 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

param

  • Guest
Blocks ??
« Reply #8 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

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Blocks ??
« Reply #9 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.

Trev

  • Guest
Blocks ??
« Reply #10 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.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Blocks ??
« Reply #11 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.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

TR

  • Guest
Blocks ??
« Reply #12 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.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Blocks ??
« Reply #13 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")
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

param

  • Guest
Blocks ??
« Reply #14 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: