• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

inserting blocks: problems with scale

  • Thread starter Thread starter Sandra_ME30
  • Start date Start date

Sandra_ME30

Guest
Dr.lube 21.12.15 15:46

Well found boys!

I'd need help with blocking.
I wrote an application that among the various things also makes insert sections that are designed automatically except for the central part that consists of a block.

the insertion of this block was calibrated to be inserted with autocad 2016 and it was good.. going to test the program on autocad 2009, the block is inserted very small! to buy it right I had to multiply the scale of insertion of a thousand!

I could play with the (if (= version_acad 2016) .. etc but it would be stupid.

the blocks I designed are without units and my program allows you to change the units of measurement from cm to m and consequently insert the scaled block of 100.

I'm trying to change these variables, but it seems to have no effect:
(setvar 'insunits 5)
(setvar 'insunitsdefsource 0)
(setvar 'insunitsdeftarget 5)

Can someone give me a tip? I think I have a big gap with the use of blocks.. .


Code:
(vl-cmdf "_.-insert"
(strcat path name ".dwg")
insertion
1 ; scale
1 ; scale
"

)
attached the block.
Annex 42714
thanks, dennis
[MENTION=44432]Dr. Lube[/MENTION]
 
Last edited by a moderator:
I have not been able to see the annex, but I believe that the problem is not related to the autocad version, but to the units used for the creation of the block and to those used in the design in which you tried to insert it.
I try to explain myself better: if the block has been built with "meters" units, and insert it in a design for which the "mm" units have been set, the block is automatically scaled by autocad by 1000 times, since a line of 2 meters is equivalent to 2000 mm etc.
check the block units properties with the lock editor, then check the units set on your design and see if the problem is what I tried to carry out.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top