![]() ![]() add_circle (( MAX_X_COORD * random (), MAX_Y_COORD * random ()), radius = 2 ) In-memory structures: from random import random from ezdxf.addons import r12writer MAX_X_COORD = 1000 MAX_Y_COORD = 1000 with r12writer ( "many_circles.dxf" ) as doc : for _ in range ( 100000 ): doc. saveas ( "test.dxf" )Įxample for the r12writer, which writes a simple DXF R12 file without set_placement (( 0, 0.2 ), align = TextEntityAlignment. modelspace () # Add entities to a layout by factory methods: layout.add_.() msp. ) reside in a layout (modelspace, # paperspace layout or block definition). new ( dxfversion = "R2010" ) # Create new table entries (layers, linetypes, text styles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |