Insert blocks of uniform size scaled according to current drawing

Insert blocks of uniform size scaled according to current drawing

ss6153
Enthusiast Enthusiast
653 Views
3 Replies
Message 1 of 4

Insert blocks of uniform size scaled according to current drawing

ss6153
Enthusiast
Enthusiast

Hello Reader

I am new to AutoCAD as well as AutoLISP
I have extracted multiple blocks (along with attributes) from a dwg file. 
When i insert a few of them into a new drawing space, all of them seem to be of different sizes. I tried to use the same scale factor for all but that didn't work for obvious reasons. 

When i insert the blocks into the same file that i extracted them from, they are inserted in uniform size and scale.. 

I want a lisp routine that will insert these blocks in uniform size and scaled according to whatever drawing they are being inserted into.
Is this possible?? Please help me...

0 Likes
Accepted solutions (2)
654 Views
3 Replies
Replies (3)
Message 2 of 4

Shneuph
Collaborator
Collaborator
Accepted solution

It sounds like you should start by looking into the block's units.  If a block has it's units set to 'meters' for instance, and you insert it into a drawing with units set to 'inches', it can scale the blocks.

 

Look into the following system variables as well:

insunits

insunitsdefsource

insunitsdeftarget

 

Edit:

They may also be annotative objects?  I don't use but someone else may be able to help with that.

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Message 3 of 4

Sea-Haven
Mentor
Mentor
Accepted solution

The meters to feet with blocks externally inserted you will find the scale factor is 0.3048 so need a rescale of 1/0.3048.

 

Like Shneuph check the variables.

Message 4 of 4

ss6153
Enthusiast
Enthusiast

Hi @Shneuph @Sea-Haven 
Thankyou so much for your quick response. I had checked the variables earlier also but didn't look into it in detail because I didn't expect it to solve my problem. After you suggested.. I looked it up online and understood how to solve my issue. 
Thankyou for help.