vla-InsertBlock always re-scale my blocks

vla-InsertBlock always re-scale my blocks

jtm2020hyo
Collaborator Collaborator
374 Views
3 Replies
Message 1 of 4

vla-InsertBlock always re-scale my blocks

jtm2020hyo
Collaborator
Collaborator

I have no idea why, but vla-InsertBlock always re-scale my block per 1000 units.

I mean, I have my block in millimeters, I want to insert in a model space with meters units, then the block is inserted and re-scaled per 1000 units.

Here is the code:

 

  (setq blockRefObj (vla-InsertBlock modelSpace insertionPnt VarBlockName1 1 1 1 VarBlockRotation1))

 

Any idea how to fix this?

 

PD: attached block

0 Likes
375 Views
3 Replies
Replies (3)
Message 2 of 4

Sea-Haven
Mentor
Mentor

If you mix dwg units expect that to happen, set a dwg to feet and see what happens.

 

Try resetting "insunit" to suit . 

Message 3 of 4

paullimapa
Mentor
Mentor

if you don't want to rescale but forced x y z scale as 1 then use command line insert like this:

(command"-insert" VarBlockName1 insertionPnt "1" "1" VarBlockRotation1)


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 4

Sea-Haven
Mentor
Mentor

If you insert a block/dwg into another dwg one has units set to mm and the other m then the insert is a factor of 0.001 even at scale = 1.

 

Yes have checked the dwg provided, 2 dwgs in mm and metre.

 

Worse is where a dwg has units set to feet and other is set to say metric m. Scale factor is 3.2808

0 Likes