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

change dynamic block ("contraint") via vba

  • Thread starter Thread starter Ciolio
  • Start date Start date

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"1587622541614.webpI 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!
 

Forum statistics

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

Members online

No members online now.
ciao
Back
Top