piratabobo
Guest
hello to all
I'm trying to create an automation that will lighten my work, but I can't ride "rain from the hole", I use autocad 2008 I have several dynamic blocks to insert into my design, all these different blocks have in common "the length" so as I insert them I have to type the length, at this point I thought something in vba that allows me to insert these blocks in my design and in automatic form to change the "longness solved"
I make an example of what I would like to do:
I have several dynamic blocks that have rectangular shapes where the length is variable, I insert these blocks into my design, depending on the type of block, I have to vary the length, and this is exactly what I wanted to automate change of length as the block I can insert but I can not edit in vba form the dynamic attribute of the block.
this is the code I use to insert the block
Thanks in advance to anyone who can help me, and I hope I've been quite clear in exposing my problem.
I'm trying to create an automation that will lighten my work, but I can't ride "rain from the hole", I use autocad 2008 I have several dynamic blocks to insert into my design, all these different blocks have in common "the length" so as I insert them I have to type the length, at this point I thought something in vba that allows me to insert these blocks in my design and in automatic form to change the "longness solved"
I make an example of what I would like to do:
I have several dynamic blocks that have rectangular shapes where the length is variable, I insert these blocks into my design, depending on the type of block, I have to vary the length, and this is exactly what I wanted to automate change of length as the block I can insert but I can not edit in vba form the dynamic attribute of the block.
this is the code I use to insert the block
Code:
dim obkref as acadblockreference
center(0) = 1: center(1) = 1: center(2) = 0
set obkref = thisdrawing.modelspace.insertblock(center, "blocco", 1, 1, 1, 0)