Understanding and Using create_text_object_with_options: Examples and Explanation of text_options #214
Replies: 1 comment 1 reply
-
def create_text_option_data(text: str, element_type: cadwork.text_element_type):
text_options = cadwork.text_object_options()
text_options.set_color(5)
text_options.set_element_type(element_type)
text_options.set_text(text)
text_options.set_height(100.0)
text_options.set_thickness(5.0)
return text_options
options = create_text_option_data("hello world", cadwork.text_element_type.surface)
ec.create_text_object_with_options(#origin cadwork.point_3d(....),
#x_direction cadwork.point_3d(....),
#z_direction cadwork.point_3d(....),
options) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
WSBATMAN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone tried to use create_text_object_with_options(position, xl, zl, text_options)? I couldn't figure out how the text_options work. Are there any examples?
Beta Was this translation helpful? Give feedback.
All reactions