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

170 lines
4.9 KiB
JSON

{
"row_height": 8.0,
"column_definitions": [
{
"name": "件号",
"relative_x_start": 0.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [
5.82,
1.46
],
"alignment": "BOTTOM_LEFT",
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 3
}
]
},
{
"name": "图号或标准号",
"relative_x_start": 15.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [
14.77,
1.15
],
"alignment": "BOTTOM_CENTER",
"height": 3.0,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "名称",
"relative_x_start": 45.0,
"text_definitions": [
{
"data_key": "chinese_name",
"relative_pos": [
1.76,
3.88
],
"height": 3.5,
"style": "HZTXT",
"layer": "6文字层",
"color": 3
},
{
"data_key": "english_name",
"relative_pos": [
1.79,
1.0
],
"height": 2.0,
"style": "HZTXT",
"layer": "2",
"color": 256
},
{
"data_key": "specification",
"relative_pos": [
18.68,
3.9
],
"height": 3.0,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "数量",
"relative_x_start": 100.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [
4.97,
1.37
],
"alignment": "BOTTOM_CENTER",
"height": 3.0,
"style": "HZTXT",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "材料",
"relative_x_start": 110.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [
15.16,
1.12
],
"alignment": "BOTTOM_CENTER",
"height": 3.5,
"style": "HZ",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "单",
"relative_x_start": 140.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [
5.06,
1.42
],
"alignment": "BOTTOM_CENTER",
"height": 3.0,
"style": "HZ",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "总",
"relative_x_start": 150.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [
5.06,
1.42
],
"alignment": "BOTTOM_CENTER",
"height": 3.0,
"style": "HZ",
"layer": "6文字层",
"color": 256
}
]
},
{
"name": "备注",
"relative_x_start": 160.0,
"text_definitions": [
{
"data_key": "main",
"relative_pos": [
12.06,
1.42
],
"alignment": "BOTTOM_CENTER",
"height": 3.0,
"style": "HZ",
"layer": "6文字层",
"color": 256
}
]
}
]
}