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.. .
attached the block.
Annex 42714
thanks, dennis
[MENTION=44432]Dr. Lube[/MENTION]
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
"
)
Annex 42714
thanks, dennis
[MENTION=44432]Dr. Lube[/MENTION]
Last edited by a moderator: