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
I am trying to add text with the add_text function which might overlap a hatch previously created with add_hatch but without any success.
Is it possible or not ?
Indeed, either the text is on a side of the hatch but without overlap or only the text is visible.
I have tried to set the text and the hatch on the same or on different layers but I get the same behaviour:
This discussion was converted from issue #718 on August 03, 2022 08:30.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
Hi,
I am trying to add text with the add_text function which might overlap a hatch previously created with add_hatch but without any success.
Is it possible or not ?
Indeed, either the text is on a side of the hatch but without overlap or only the text is visible.
I have tried to set the text and the hatch on the same or on different layers but I get the same behaviour:
hatch = modelspace.add_hatch(dxfattribs={'layer': 'my_layer'})
#string_text, poly, x1, y1, x2, y2 are defined somwhere else
hatch.paths.add_polyline_path(poly, is_closed=1)
modelspace.add_text(string_text, dxfattribs={'layer':'my_layer'}).set_pos((x1,y1), (x2,y2), align = 'ALIGNED')
Thanks in advance,
yojvr
Beta Was this translation helpful? Give feedback.
All reactions