Hey Dynamo community. I’m new to the Dynamo and python scene but have been working hard to improve. I’m hoping someone can help guide me here. I wrote a script in python that takes keynote numbers from a given civil 3D sheet view and returns an excel file with the corresponding notes.
I have pulled this excel file into dynamo, created lists, and generated the blocks and mtext as intended. However, I am having trouble formatting it. When I decrease the width of the mtext, the text is no longer evenly spaced and the keynote blocks no longer line up with the text.
It seems I need to conduct some sort of transformation command that references the bounding box width of each mtext item and sets spacing this way. THEN, grab the midpoint coordinate of each mtext object and place each keynote horizontally offset. Typically in CAD this operation would be done with the “Text Align” command and setting a spacing, but I am unable to find an equivalent operation in Dynamo.