Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scale ALL Blocks Simultaneously By Insertion Point 1

Status
Not open for further replies.

thunderchunkydan

Civil/Environmental
Mar 30, 2005
19
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)
 
Replies continue below

Recommended for you

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)
)
)

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

Thanks

Matt
 
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.
 
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.
 
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.
 
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
 
Thunderchunkydan, Under what condition would you need to scale all block references on a drawing?
 
Paddymac, I didn't even notice you already posted that! Sorry! (maybe we posted at the same time, although it shows two different times.)
 
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.
 
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.
 
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).
 
Can you just change the viewport scale instead of scaling the block?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor