×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Scale ALL Blocks Simultaneously By Insertion Point

Scale ALL Blocks Simultaneously By Insertion Point

Scale ALL Blocks Simultaneously By Insertion Point

(OP)
Does anyone know how to scale ALL the blocks in a drawing simultaneously by their insertion points.  I want to change the size of all of the blocks without losing having to move them back into position when I'm done.  This shouldn't be too hard in LISP right? (I'm just learning LISP right now)

RE: Scale ALL Blocks Simultaneously By Insertion Point

Something like this may work for you:

(DEFUN C:SC1 (/ s2) ; Scale by factor about INS of object
 (Setq s2 (GetReal "Scale factor: "))
 (if (= s2 0.0) (setq s2 2.0))
 (While (<= 0.0 s2)
  (COMMAND "SCALE" "SI" "INS" PAUSE "@0,0" s1)
 )
)

RE: Scale ALL Blocks Simultaneously By Insertion Point

How would this work if I want to scale a particular block ie. "PC ID" by a scale factor I input?

Thanks

Matt

RE: Scale ALL Blocks Simultaneously By Insertion Point

When you run the macro it asks for the scale factor.
Then you pick a block and it scales it by that scale factor about the insertion point.  Keep picking blocks and it scales each the same way.

It would be relatively easy to add to the macro the ability for you to select one of the blocks and have it scale all the blocks of that name by the same scale factor about their insertion points.

RE: Scale ALL Blocks Simultaneously By Insertion Point

Go into Quick Select (Tools Drop Down or QSelect)
Set APPLY TO - Entire Drawing
    OBJECT TYPE - Block Reference
    PROPERTY - Name
    OPERATOR - Equals
    VALUE - Select Required Block
    HOW TO APPLY - Include In New Selection Set
Click OK
Go into Properties (ctrl+1)
Change X, Y and Z values to whatever you want.

RE: Scale ALL Blocks Simultaneously By Insertion Point

You can also do a quick select, and select all of the block references in the drawing.  Then through the properties pallette, simply change the scale.

RE: Scale ALL Blocks Simultaneously By Insertion Point

That works great.  Thanks a lot.

Matt

RE: Scale ALL Blocks Simultaneously By Insertion Point

(OP)
paddymac and CDH,
Of course!  Using quickselect - quite a simple solution that I had overlooked.  I didn't remember you could scale something that way.

An even faster method would be to just the right-click menu on one block and choose "Select Similar".  I'm using CAD 2005, so I don't know if the feature is supported in other versions, but I use it a lot.

Dan

RE: Scale ALL Blocks Simultaneously By Insertion Point

Thunderchunkydan,  Under what condition would you need to scale all block references on a drawing?

RE: Scale ALL Blocks Simultaneously By Insertion Point

Paddymac, I didn't even notice you already posted that! Sorry! (maybe we posted at the same time, although it shows two different times.)

RE: Scale ALL Blocks Simultaneously By Insertion Point

(OP)
Chicopee - well lots of times I create drawings that are scaled differently in paperspace.  In model space, however, I always draw things 1:1.  Unfortunately, I don't always know what the paperspace scale will be before I start drawing.  So, I have to scale all of my blocks after I am finished scaling the whole drawing in paperspace to get them to be the right size.

RE: Scale ALL Blocks Simultaneously By Insertion Point

Thunderchankydan-if I understand your reply correctly,there is no need to scale your block references in MS. Scaling is only necessary in PS after you have opened multiple viewports w/ different scale factors in one layout,then turn off you viewport layers so as not to print them out.

RE: Scale ALL Blocks Simultaneously By Insertion Point

(OP)
Chicopee - I'm not trying to change the scale of the whole drawing - just certain blocks.  I sometimes draw very large drawings in which I use the largest scale in PS possible (these are not detailed plans - just residential layouts and such).  These blocks are not part of the drawing per se - they are there to describe the drawing (like text or dimension lines).

RE: Scale ALL Blocks Simultaneously By Insertion Point

Can you just change the viewport scale instead of scaling the block?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources