You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a nice time.
I saw that you are working on adding multi-line text in the upcoming release
Version 1.3.5 - dev
NEW: support for multi-line attributes for Insert.add_auto_attribs() method
contributed by #gswifort
I have a question: when is version 1.3.5 planned to be released?
There, the addition of Mtext and its configuration will be carried out when creating a block and an attribute inside it? and then during the work in msp it will be possible to add a text value by accessing the INSERT entity and the attribute tag?
Now, following your example, you can get Mtext only by working with INSERT and modifying it. So what we get is not quite what we need.
excerpt from your example:
msp=doc.modelspace()
# create a block reference in modelspace:insert=msp.add_blockref("TEST", (0, 0))
# add a single line attribute to the block reference:attrib=insert.add_attrib("ATT0", "dummy")
# create a MTEXT entity:m_text=msp.add_mtext("test1\ntest2\ntest3")
m_text.set_location((5, 5))
# embed the MTEXT entity into the attribute:attrib.embed_mtext(m_text)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Have a nice time.
I saw that you are working on adding multi-line text in the upcoming release
Version 1.3.5 - dev
Insert.add_auto_attribs()
methodI have a question: when is version 1.3.5 planned to be released?
There, the addition of Mtext and its configuration will be carried out when creating a block and an attribute inside it? and then during the work in msp it will be possible to add a text value by accessing the INSERT entity and the attribute tag?
Now, following your example, you can get Mtext only by working with INSERT and modifying it. So what we get is not quite what we need.
excerpt from your example:
Beta Was this translation helpful? Give feedback.
All reactions