MastroLube Posted December 21, 2015 Posted December 21, 2015 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! Thanks Quote
satishrajdev Posted December 21, 2015 Posted December 21, 2015 Have checked out the drawing units of both... Are they same? Quote
MastroLube Posted December 21, 2015 Author Posted December 21, 2015 Yeah.. I've tried with different values but it seems to haven't effect.. (setvar 'InsUnits 0) (setvar 'InsUnitsDefSource 0) (setvar 'InsUnitsDefTarget 0) Quote
satishrajdev Posted December 21, 2015 Posted December 21, 2015 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. Quote
satishrajdev Posted December 21, 2015 Posted December 21, 2015 Select block and go to properties or ctrl+1 Quote
MastroLube Posted December 21, 2015 Author Posted December 21, 2015 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 Quote
rlx Posted December 21, 2015 Posted December 21, 2015 (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 December 21, 2015 by rlx Quote
Recommended Posts
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.