Jump to content

Insert block in different autocad versions: scale problem


Recommended Posts

Posted

Hello guys!

I've done a little application but i have a problem using it on older autocad(s).

 

Currently I'm using the last version (2016) but if i try to insert the same block using autocad 2009 it gets different dimension!

 

The only way I found to keep it in scale is change the insert scale from 10 (autocad 2016) to 10000!!!!

 

(VL-CMDF "_.-insert"
          (STRCAT percorso nome ".dwg")
          punto_inserimento
          10000 ;scale
          10000 ;scale
          ""
)
      

The block has "no units" and the insert scale in the dwg still be "meters"

S-100_315.dwg

 

Please help me, I'm getting mad! :cry:

 

Thanks

Posted

Have checked out the drawing units of both... Are they same?

Posted

Yeah.. I've tried with different values but it seems to haven't effect..

 

(setvar 'InsUnits 0)

(setvar 'InsUnitsDefSource 0)

(setvar 'InsUnitsDefTarget 0)

Posted

Strange !!! I haven't notice such problems till now.

 

What is X factor scale of inserted blocks in both drawings?

If they are not same that means your drawing units are different for sure.

Posted

Select block and go to properties or ctrl+1

Posted

It's 1 ... How it's possibile that change from centimeters to meters doesn't effect the dimension?

I've played with -dwgunits and now it has always the same size on 2016 :(

Posted (edited)

Had the same problems once with xrefs. Put some code in my xref app :

 

 

(setvar "insunits" 4) ;insert blocks in millimeters

(setvar "INSUNITSDEFSOURCE" 4) ;blocks in millimeters

(setvar "INSUNITSDEFTARGET" 4) ;blocks in millimeters

 

 

but that didn't alway helped so I added :

 

 

;;; - dwgunits : 3=mm, 2=decimal, 4=precision, scale upon insert = no , match insunits = yes

(command "-dwgunits" 3 2 4 "no" "yes")(while (= 1 (logand (getvar "cmdactive") 1))(command "No"))

 

 

Forgotten why exactly I needed the dwgunits to run after the setvars but it did the trick

 

 

upd. see also this link https://forums.autodesk.com/t5/autocad-2007-2008-2009/dwgunits-documentation/td-p/2527820

 

 

 

gr. Rlx

Edited by rlx

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...