Block Atrribute not reading current value

Hi, i am trying to make adynamo script to get a list of current construction details on the drawing. The details are set as blocks with 2 attributes, the name of the detail and the detail number. The name is set as constant since the name won’t need to change but the detail number is not so can be updated as required. The details displays correctly in cad but when the dynamo script runs its capturing the default value of the detail number and not the current value. Not sure whats wrong. Any ideas?


Hi @csanchez-jmc,

Looks like you are using the BlockReference.AttributeDefaultValueByTag node. I would use BlockReference.AttributeByTag instead.

Thank you Zachri. THe BlockReference.AttributeByTag won’t help me because i need to extract the current value of the tag not the name. I don’t see other node that provides the value stored under the tag.

BlockReference.AttributeByTag returns the current value of the attribute with the given tag.

Thank you Zachri. It works on the attribute thats not set as constant. I think i need to change the detail name to be setup the same way as the detail number to work property.

1 Like