Ciolio
Guest
Good morning to all,
I have a scratch to solve: I haven't come to terms with it for days, so I ask for help!
I created a dynamic block in autocad mechnical in which a circle is drawn with a "constraint"
I would like to pass the value of the diameter "d" by fishing it from a file excel via vba
I tried in vain with:
object_blocco_reference set = acad_document.modelspace. insertblock(point_insertion, name_block, 1#, 1#, 1#, 0) → I create a copy of the parametric block
list_parameters = object_blocco_reference.getdynamicblockproperties
list_parameters(0).value = 200
istrizione .value seems not to work for "constraints"
p.s: in the final version the value "200" must be a variable that I will read from an excel file.
Does anyone have an idea?
Thank you so much to those who will help me!
I have a scratch to solve: I haven't come to terms with it for days, so I ask for help!
I created a dynamic block in autocad mechnical in which a circle is drawn with a "constraint"
I would like to pass the value of the diameter "d" by fishing it from a file excel via vbaI tried in vain with:
object_blocco_reference set = acad_document.modelspace. insertblock(point_insertion, name_block, 1#, 1#, 1#, 0) → I create a copy of the parametric block
list_parameters = object_blocco_reference.getdynamicblockproperties
list_parameters(0).value = 200
istrizione .value seems not to work for "constraints"
p.s: in the final version the value "200" must be a variable that I will read from an excel file.
Does anyone have an idea?
Thank you so much to those who will help me!