dxfedit/03_Python_OpenSource_DXF/模板/二级料表模板/columns_template.json
puzzlesion 5e87bd7c33 refactor(dxf): optimize table drawing and add diagnostic scripts
This commit includes several updates to the Python_OpenSource_DXF project:

- The core script draw_table_from_template.py has been refactored for better logic and clarity.

- New utility scripts such as diagnose_blocks.py, export_dxf.py, and plot_by_block_name.py have been added to enhance diagnostic and plotting capabilities.

- The convert_dxf_to_pdf.py script was removed as its functionality is now covered by other modules.

- README.md and .specstory documentation have been updated to reflect these changes.
2025-09-12 17:21:08 +08:00

146 lines
3.6 KiB
JSON

{
"row_height": 8.0,
"column_definitions": [
{
"name": "件号",
"relative_x_start": 0.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [7.5, 2.17],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "名称",
"relative_x_start": 20.0,
"text_definitions": [
{
"data_key": "chinese_name",
"relative_pos": [2.0, 3.58],
"alignment": "BOTTOM_LEFT",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
},
{
"data_key": "english_name",
"relative_pos": [2.0, 1.0],
"alignment": "BOTTOM_LEFT",
"height": 2.0,
"style": "HZTXT",
"layer": "2",
"color": 256
},
{
"data_key": "specification",
"relative_pos": [20.0, 4.1],
"alignment": "BOTTOM_LEFT",
"height": 3.0,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "材料",
"relative_x_start": 65.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [15.0, 2.17],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
},
{
"data_key": "chinese_name",
"relative_pos": [15.0, 3.58],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
},
{
"data_key": "english_name",
"relative_pos": [15.0, 1.0],
"alignment": "BOTTOM_CENTER",
"height": 2.0,
"style": "HZTXT",
"layer": "2",
"color": 256
}
]
},
{
"name": "质量",
"relative_x_start": 95.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [10.0, 2.17],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "比例",
"relative_x_start": 115.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [7.5, 2.17],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "所在图号",
"relative_x_start": 130.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [12.5, 2.17],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "装配图号",
"relative_x_start": 155.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [12.5, 2.17],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
}
]
}