@Anonymous wrote:
Ok I have an update. I found an error in AutoCAD Text Window that could be related to the whole problem:
Unit-scaling inserted database...Duplicate definition of block _ClosedBlank ignored.
This has nothing to do with your scaling issue. This is an information message which just means that the source file contains a block definiton name "_ClosedBlank" which already exists in the target block table that it will be ignored.
@Anonymous wrote:
I did a search on this an it mentions that (Just had Gilles had mentioned) INSUNITS should match. I checked the source and destination and both have it set to 0. These are the settings for both files:
INSUNITS 0
INSUNITSDEFTARGET 1
INSUNITSDEFSOURCE 1
MEASUREINIT 0
MEASUREMENT 0
As said iupper and in the provided links to the AutoCAD documentation, the INSUNITS system variable is used to automatically scale the inserted files (as external references or block references) if both values in source and target files are different from 0 (No units).
The INSUNITSDEFSOURCE and INSUNITSDEFTARGET are to be used (in the target file) to emulate the INSUNITS values in respectiveley source and target files.
So, if INSUNITS equals 0 in source file, you can set, in the target file, the INSUNITSDEFSOURCE to the expected value for the source file, this won't change the source file INSUNITS system variable value but let the insertion process act if it was.
If INSUNITS equals 0 in the target file, you could also set the INSUNITSDEFTARGET to the expected value, but it should be better to directly set the INSUNITS value.
It looks like you're missing some AutoCAD basics which are absolutely required if you want to be able to customize AutoCAD by programming.