|
发表于 2022-7-5 18:10:09
|
显示全部楼层
Hey, Gile... I've just found this new information and I want to share it with you....
You know. I found your edit_bloc really amazing for some tasks... specially transforming blocks to unitless.. but.. For some reason it worked in about 70 or 80% of my blocks... converting them to unitless... but it didn´t fix the rest and I had to transform them one by one by copying each one of them in a new "good" drawing file with correct units... and saving it as the original name (overwriting it)...
and well... I think that it is because there are more than one variables affecting units as you can read below... Is it possible to add them to your lisp at least for the none-units option... it may help me a lot to finish my block compilation task in the most perfect way.
http://www.cadplan.co.za/tips_tricks.html
Why does AutoCAD insert my blocks in wrong scale?
Blocks and Xrefs contain their insertion unit settings, which are used for automatic scale conversion when they are inserted/attached to a drawing using other units. These units are defined in the INSUNITS (default units), INSUNITSDEFSOURCE (source units) and INSUNITSDEFTARGET (target units) variables.
In older AutoCAD versions, these variables were used only for the block inserts/drags from DesignCenter. AutoCAD 2006 (and higher) uses them for all methods of insertion of blocks, xrefs and images.
If your blocks are inserted in an improper scale (e.g. 0.254, 10 or 1000), you have probably wrong (different) settings of your block insertion units. Set INSUNITS e.g. to 0 (unitless) - then both the INSUNITSDEFxxxx variables will apply - set them also to 0 (other settings apply when dealing with AEC drawings). |
|