I would like to link the value of a custom property to the contend of a specific Mtext.
Here's what I got so far:
i = 0
while(i<len(Cpro)):
doc.header.custom_vars.append(Cpro[i][0],Cpro[i][1]) # creating new custom properties list
i = i+1
Number = doc.header.custom_vars.__iter__()
for e in Number:
print(e)
I can get the whole list printed and even used to fill an MText(but the text is not linked to the Property value, it's only a copied string). But the goal is to set it in a way that the user of the dxf generated could change the Mtext contend by only changing the custom property value.
On BrisCAD you can use the "Field" command to choose one the custom properties to fill the text.