einfügen von einem eigennamen für die Blöcke
This commit is contained in:
+8
-1
@@ -179,9 +179,16 @@ def create_block_library(input_dir, output_file, config, logger=None):
|
||||
error_files.append((filename, error_msg))
|
||||
|
||||
# Platzierung in Reihen und Spalten
|
||||
# Attribut-Definition (ATTDEF) hinzufügen
|
||||
blk.add_attdef(
|
||||
tag="NAME",
|
||||
insert=(0.2, 0.2), # Position relativ zum Blockursprung
|
||||
height=0.25,
|
||||
text="Default Text"
|
||||
)
|
||||
msp.add_blockref(name, insert=(x_offset, y_offset))
|
||||
# Text mit Blocknamen über dem Block
|
||||
|
||||
|
||||
# Werte aus Config holen (Block: [dxf2lib])
|
||||
section = "dxf2lib"
|
||||
text_height = get_cfg_value(section, "text_height", DEFAULTS["text_height"])
|
||||
|
||||
Reference in New Issue
Block a user