first commit

This commit is contained in:
2026-07-17 17:45:56 +08:00
commit 04c487823b
5873 changed files with 12227228 additions and 0 deletions
@@ -0,0 +1,23 @@
{
"ok": true,
"message": "Listed drawing views from the current SolidWorks drawing.",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\00-current-view-list",
"started_at": "2026-07-05T12:53:57.8918663+08:00",
"completed_at": "2026-07-05T12:53:58.7270685+08:00",
"candidates": [],
"artifacts": {
"drawing_views": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\00-current-view-list\\drawing-views.json",
"drawing_view_count": "1"
},
"source_apis": [
"IDrawingDoc.GetFirstView",
"IView.GetName2",
"IView.GetOrientationName",
"IView.Position",
"IView.GetOutline"
]
}
@@ -0,0 +1,19 @@
[
{
"name": "\u56FE\u7EB81",
"orientation_name": "",
"type": 1,
"position_m": [
0,
0
],
"outline_m": [
0,
0,
0.594,
0.42
],
"scale_decimal": 1,
"use_sheet_scale": 1
}
]
@@ -0,0 +1,70 @@
{
"ok": true,
"message": "\u5DF2\u5728\u5F53\u524D SolidWorks \u5DE5\u7A0B\u56FE\u4E2D\u653E\u7F6E\u6700\u4F18\u4E3B\u89C6\u56FE\u3002",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\01-place-main-view",
"started_at": "2026-07-05T12:54:17.1398041+08:00",
"completed_at": "2026-07-05T12:54:18.2495335+08:00",
"candidates": [
{
"index": 4,
"name": "agent4_main_view_04_px_r270",
"direction_name": "px",
"roll_deg": 270,
"view_direction": [
1,
0,
0
],
"basis_u": [
0,
-1,
1.8369701987210297E-16
],
"basis_v": [
0,
-1.8369701987210297E-16,
-1
],
"basis_d": [
1,
0,
0
],
"inserted": true,
"insert_error": "",
"drawing_view_name": "\u5DE5\u7A0B\u56FE\u89C6\u56FE23",
"orientation_name": "agent4_main_view_04_px_r270",
"position": [
0.297,
0.21
],
"scale_decimal": 1,
"use_sheet_scale": 0,
"dwg_path": "",
"dwg_save_ok": false,
"dwg_save_errors": 0,
"dwg_save_warnings": 0,
"dwg_rebuild_attempts": 0,
"dwg_save_message": ""
}
],
"artifacts": {
"placed_main_view_name": "\u5DE5\u7A0B\u56FE\u89C6\u56FE23",
"placed_orientation_name": "agent4_main_view_04_px_r270",
"candidate_index": "4",
"direction_name": "px",
"roll_degrees": "270",
"scale_decimal": "1"
},
"source_apis": [
"IModelView.Orientation3",
"IModelDoc2.NameView",
"IDrawingDoc.CreateDrawViewFromModelView3",
"IModelDocExtension.SelectByID2",
"IModelDocExtension.DeleteSelection2"
]
}
@@ -0,0 +1,44 @@
[
{
"index": 4,
"name": "agent4_main_view_04_px_r270",
"direction_name": "px",
"roll_deg": 270,
"view_direction": [
1,
0,
0
],
"basis_u": [
0,
-1,
1.8369701987210297E-16
],
"basis_v": [
0,
-1.8369701987210297E-16,
-1
],
"basis_d": [
1,
0,
0
],
"inserted": true,
"insert_error": "",
"drawing_view_name": "\u5DE5\u7A0B\u56FE\u89C6\u56FE23",
"orientation_name": "agent4_main_view_04_px_r270",
"position": [
0.297,
0.21
],
"scale_decimal": 1,
"use_sheet_scale": 0,
"dwg_path": "",
"dwg_save_ok": false,
"dwg_save_errors": 0,
"dwg_save_warnings": 0,
"dwg_rebuild_attempts": 0,
"dwg_save_message": ""
}
]
@@ -0,0 +1,25 @@
{
"ok": true,
"message": "\u5DF2\u5BFC\u51FA\u5F53\u524D SolidWorks \u5DE5\u7A0B\u56FE DWG\u3002",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\02-sw-main-before-align",
"started_at": "2026-07-05T12:54:37.8838227+08:00",
"completed_at": "2026-07-05T12:55:10.4643316+08:00",
"candidates": [],
"artifacts": {
"dwg_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\02-sw-main-before-align.dwg",
"dwg_save_ok": "True",
"dwg_save_errors": "0",
"dwg_save_warnings": "0",
"dwg_rebuild_attempts": "5",
"dwg_rebuild_retry_limit": "unlimited"
},
"source_apis": [
"IModelDocExtension.SaveAs",
"IModelDoc2.SaveAs4",
"IModelDoc2.ForceRebuild3"
]
}
@@ -0,0 +1,72 @@
(vl-load-com)
(defun agent4-num (v) (if (numberp v) (rtos v 2 16) ""))
(defun agent4-ptx (p) (if (and p (listp p) (numberp (car p))) (rtos (car p) 2 16) ""))
(defun agent4-pty (p) (if (and p (listp p) (numberp (cadr p))) (rtos (cadr p) 2 16) ""))
(defun agent4-clean (s) (if s (vl-string-translate "\t\r\n" " " s) ""))
(defun agent4-bbox (obj / mn mx r)
(setq r (vl-catch-all-apply 'vla-GetBoundingBox (list obj 'mn 'mx)))
(if (vl-catch-all-error-p r)
(list "" "" "" "")
(progn
(setq mn (vlax-safearray->list mn))
(setq mx (vlax-safearray->list mx))
(list (agent4-ptx mn) (agent4-pty mn) (agent4-ptx mx) (agent4-pty mx))
)
)
)
(defun agent4-prop-point (obj prop / v)
(setq v (vl-catch-all-apply 'vlax-get-property (list obj prop)))
(if (or (null v) (vl-catch-all-error-p v)) nil (vlax-safearray->list (vlax-variant-value v)))
)
(defun agent4-prop-text (obj / s)
(setq s (vl-catch-all-apply 'vlax-get-property (list obj 'TextString)))
(if (vl-catch-all-error-p s) "" (agent4-clean s))
)
(defun agent4-write-child (f parent idx obj / typ txt sp ep ip bb layer)
(setq typ (vla-get-ObjectName obj))
(setq txt (agent4-prop-text obj))
(setq sp (agent4-prop-point obj 'StartPoint))
(setq ep (agent4-prop-point obj 'EndPoint))
(setq ip (agent4-prop-point obj 'InsertionPoint))
(setq bb (agent4-bbox obj))
(setq layer (vl-catch-all-apply 'vlax-get-property (list obj 'Layer)))
(if (vl-catch-all-error-p layer) (setq layer ""))
(write-line
(strcat parent "\t" (itoa idx) "\t" typ "\t" txt "\t"
(agent4-ptx sp) "\t" (agent4-pty sp) "\t"
(agent4-ptx ep) "\t" (agent4-pty ep) "\t"
(agent4-ptx ip) "\t" (agent4-pty ip) "\t"
(nth 0 bb) "\t" (nth 1 bb) "\t" (nth 2 bb) "\t" (nth 3 bb) "\t"
layer "\t" "vla-explode")
f)
)
(defun agent4-read-block-explosions (/ f ss i ent obj parent arr children child idx)
(setq f (open "D:/CSharpProjects/agent4/runtime/current-standard-flow/32-rebuild-after-format-fix/03-sw-main-before-align-extraction/block-explosions.tsv" "w"))
(setq ss (ssget "_X" '((0 . "INSERT"))))
(if ss
(progn
(setq i 0)
(while (< i (sslength ss))
(setq ent (ssname ss i))
(setq obj (vlax-ename->vla-object ent))
(setq parent (vla-get-Handle obj))
(setq arr (vl-catch-all-apply 'vla-Explode (list obj)))
(if (not (vl-catch-all-error-p arr))
(progn
(setq children (vlax-safearray->list (vlax-variant-value arr)))
(setq idx 0)
(foreach child children
(agent4-write-child f parent idx child)
(vl-catch-all-apply 'vla-Delete (list child))
(setq idx (1+ idx))
)
)
)
(setq i (1+ i))
)
)
)
(if f (close f))
(princ)
)
(agent4-read-block-explosions)
@@ -0,0 +1,48 @@
(vl-load-com)
(defun agent4-format-point (p)
(if (and p (listp p) (numberp (car p)) (numberp (cadr p)))
(strcat (rtos (car p) 2 16) "\t" (rtos (cadr p) 2 16))
"\t"
)
)
(defun agent4-start-point (obj / param point)
(setq param (vl-catch-all-apply 'vlax-curve-getStartParam (list obj)))
(if (not (vl-catch-all-error-p param))
(setq point (vl-catch-all-apply 'vlax-curve-getPointAtParam (list obj param)))
)
(if (or (null point) (vl-catch-all-error-p point))
(setq point (vl-catch-all-apply 'vlax-curve-getStartPoint (list obj)))
)
(if (vl-catch-all-error-p point) nil point)
)
(defun agent4-end-point (obj / param point)
(setq param (vl-catch-all-apply 'vlax-curve-getEndParam (list obj)))
(if (not (vl-catch-all-error-p param))
(setq point (vl-catch-all-apply 'vlax-curve-getPointAtParam (list obj param)))
)
(if (or (null point) (vl-catch-all-error-p point))
(setq point (vl-catch-all-apply 'vlax-curve-getEndPoint (list obj)))
)
(if (vl-catch-all-error-p point) nil point)
)
(defun agent4-write-spline-endpoints (/ f ss i ent obj h sp ep)
(setq f (open "D:/CSharpProjects/agent4/runtime/current-standard-flow/32-rebuild-after-format-fix/03-sw-main-before-align-extraction/spline-endpoints.tsv" "w"))
(setq ss (ssget "_X" '((0 . "SPLINE"))))
(if ss
(progn
(setq i 0)
(while (< i (sslength ss))
(setq ent (ssname ss i))
(setq obj (vlax-ename->vla-object ent))
(setq h (vla-get-Handle obj))
(setq sp (agent4-start-point obj))
(setq ep (agent4-end-point obj))
(write-line (strcat h "\t" (agent4-format-point sp) "\t" (agent4-format-point ep)) f)
(setq i (1+ i))
)
)
)
(if f (close f))
(princ)
)
(agent4-write-spline-endpoints)
@@ -0,0 +1,186 @@
{
"scope": "bottom_view_candidate",
"coordinate_policy": "relative_origin_from_leftmost_vertical_line_top_point",
"primitive_counts": {
"line": 1,
"circle": 0,
"arc": 0,
"spline": 0,
"total": 1
},
"line_direction_counts": {
"horizontal": 0,
"vertical": 1,
"diagonal": 0,
"unknown": 0
},
"relative_line_coordinates": {
"ok": true,
"origin_rule": "leftmost_vertical_line_top_point",
"origin": {
"x": 297,
"y": 15,
"source_handles": [
"8B"
],
"line": {
"start": [
297,
0
],
"end": [
297,
15
],
"length": 15,
"angle_deg": 90
}
},
"line_count": 2,
"bucket_size": 1,
"relative_midpoints": [
{
"index": 1,
"source_handles": [
"8B"
],
"x": 0,
"y": -7.5,
"x_bucket": 0,
"y_bucket": -8,
"midpoint_key": "X0|Y-8"
},
{
"index": 2,
"source_handles": [
"A5"
],
"x": 0,
"y": -10,
"x_bucket": 0,
"y_bucket": -10,
"midpoint_key": "X0|Y-10"
}
],
"relative_midpoint_histogram": {
"x0|y-10": 1,
"x0|y-8": 1
},
"lines": [
{
"index": 1,
"source_handles": [
"8B"
],
"direction_class": "vertical",
"angle_deg": 90,
"length": 15,
"length_bucket": 15,
"relative_start": [
0,
-15
],
"relative_end": [
0,
0
],
"relative_midpoint": [
0,
-7.5
],
"relative_mid_x": 0,
"relative_mid_y": -7.5,
"relative_mid_x_bucket": 0,
"relative_mid_y_bucket": -8,
"midpoint_key": "X0|Y-8",
"feature_key": "vertical|L15|X0|Y-8"
},
{
"index": 2,
"source_handles": [
"A5"
],
"direction_class": "vertical",
"angle_deg": 90,
"length": 10,
"length_bucket": 10,
"relative_start": [
0,
-5
],
"relative_end": [
0,
-15
],
"relative_midpoint": [
0,
-10
],
"relative_mid_x": 0,
"relative_mid_y": -10,
"relative_mid_x_bucket": 0,
"relative_mid_y_bucket": -10,
"midpoint_key": "X0|Y-10",
"feature_key": "vertical|L10|X0|Y-10"
}
],
"feature_histogram": {
"vertical|l10|x0|y-10": 1,
"vertical|l15|x0|y-8": 1
}
},
"line_length_histogram": {
"25": 1
},
"line_length_stats": {
"count": 1,
"min": 25,
"max": 25,
"sum": 25,
"avg": 25
},
"circle_radius_histogram": {},
"circle_radius_stats": {
"count": 0
},
"arc_radius_histogram": {},
"arc_radius_stats": {
"count": 0
},
"arc_sweep_angle_histogram": {},
"arc_length_histogram": {},
"matching_primary_fields": [
"kind",
"length",
"radius",
"diameter",
"arc_length",
"sweep_angle",
"direction_class",
"angle_deg",
"relative_start",
"relative_end",
"relative_midpoint"
],
"matching_excluded_primary_fields": [
"start",
"end",
"center",
"absolute_start",
"absolute_end"
],
"normalization_summary": {
"scope": "bottom_view_candidate",
"raw_geometry_count": 2,
"normalized_primitive_count": 2,
"normalized_line_count": 2,
"merged_line_count": 1,
"overlap_group_count": 0,
"angle_tolerance_deg": 1,
"collinear_distance_tolerance": 0.05,
"gap_tolerance": 0.05,
"merge_policy": "strong_only_same_style_collinear_interval_union"
},
"source_handle_count": 2,
"raw_geometry_count": 2
}
@@ -0,0 +1,40 @@
{
"ok": true,
"selection_rule": "solidworks_candidate_remove_frame_title_take_remaining_geometry",
"processing_order": "raw_geometry_expand_outer_edge_connected_frame_title_then_take_remaining_geometry",
"bbox": {
"min_x": 229.50000000000037,
"min_y": 154.9999999999991,
"max_x": 364.5000000000003,
"max_y": 265.00000000000057,
"center_x": 297.00000000000034,
"center_y": 209.99999999999983
},
"drawing_bbox": {
"min_x": 0,
"min_y": 0,
"max_x": 594,
"max_y": 420,
"center_x": 297,
"center_y": 210
},
"frame_seed_count": 40,
"frame_title_node_count": 73,
"bbox_internal_absorbed_node_count": 0,
"bbox_internal_missing_node_count": 0,
"bbox_internal_missing_handles": [],
"selected_node_count": 98,
"selected_source_handle_count": 98,
"main_view_geometry_count": 98,
"excluded": "annotations_dimensions_text_hatch_frame_border_solidworks_title_block",
"normalization_scope": "main_view",
"normalization_raw_geometry_count": 98,
"normalization_normalized_primitive_count": 178,
"normalization_normalized_line_count": 124,
"normalization_merged_line_count": 120,
"normalization_overlap_group_count": 0,
"normalization_angle_tolerance_deg": 1,
"normalization_collinear_distance_tolerance": 0.05,
"normalization_gap_tolerance": 0.05,
"normalization_merge_policy": "strong_only_same_style_collinear_interval_union"
}
@@ -0,0 +1,176 @@
{
"ok": true,
"schema": "agent4.dwg-draft.extraction.v1",
"source": "AutoCAD COM external extractor",
"prog_id": "AutoCAD.Application.23.1",
"started_auto_cad": false,
"drawing_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\02-sw-main-before-align.dwg",
"exported_at_utc": "2026-07-05T04:58:10.3051311Z",
"model_space_count": 237,
"paper_space_count": 0,
"entity_count": 237,
"type_counts": {
"ac_db_line": 104,
"ac_db_m_text": 66,
"ac_db_arc": 28,
"ac_db_polyline": 13,
"ac_db_circle": 10,
"ac_db_spline": 16
},
"category_files": [
{
"category": "entities-common",
"file": "entities-common.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\entities-common.json",
"item_count": 237,
"exists": true
},
{
"category": "geometry",
"file": "geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\geometry.json",
"item_count": 171,
"exists": true
},
{
"category": "normalized-geometry",
"file": "normalized-geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\normalized-geometry.json",
"item_count": 251,
"exists": true
},
{
"category": "merged-lines",
"file": "merged-lines.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\merged-lines.json",
"item_count": 190,
"exists": true
},
{
"category": "geometry-overlaps",
"file": "geometry-overlaps.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\geometry-overlaps.json",
"item_count": 0,
"exists": true
},
{
"category": "normalization-summary",
"file": "normalization-summary.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\normalization-summary.json",
"item_count": 10,
"exists": true
},
{
"category": "main-view-geometry",
"file": "main-view-geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\main-view-geometry.json",
"item_count": 98,
"exists": true
},
{
"category": "main-view-normalized-geometry",
"file": "main-view-normalized-geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\main-view-normalized-geometry.json",
"item_count": 178,
"exists": true
},
{
"category": "main-view-merged-lines",
"file": "main-view-merged-lines.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\main-view-merged-lines.json",
"item_count": 120,
"exists": true
},
{
"category": "main-view-overlaps",
"file": "main-view-overlaps.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\main-view-overlaps.json",
"item_count": 0,
"exists": true
},
{
"category": "main-view-signature",
"file": "main-view-signature.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\main-view-signature.json",
"item_count": 15,
"exists": true
},
{
"category": "bottom-view-signature",
"file": "bottom-view-signature.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\bottom-view-signature.json",
"item_count": 18,
"exists": true
},
{
"category": "section-cut-symbols",
"file": "section-cut-symbols.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\section-cut-symbols.json",
"item_count": 0,
"exists": true
},
{
"category": "main-view-selection",
"file": "main-view-selection.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\main-view-selection.json",
"item_count": 24,
"exists": true
},
{
"category": "view-regions",
"file": "view-regions.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\view-regions.json",
"item_count": 12,
"exists": true
},
{
"category": "annotations",
"file": "annotations.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\annotations.json",
"item_count": 66,
"exists": true
},
{
"category": "dimensions",
"file": "dimensions.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\dimensions.json",
"item_count": 0,
"exists": true
},
{
"category": "dimensional-tolerances",
"file": "dimensional-tolerances.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\dimensional-tolerances.json",
"item_count": 0,
"exists": true
},
{
"category": "roughness",
"file": "roughness.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\roughness.json",
"item_count": 0,
"exists": true
},
{
"category": "geometric-tolerances",
"file": "geometric-tolerances.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\geometric-tolerances.json",
"item_count": 0,
"exists": true
},
{
"category": "datums",
"file": "datums.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\datums.json",
"item_count": 0,
"exists": true
},
{
"category": "unknown-entities",
"file": "unknown-entities.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\unknown-entities.json",
"item_count": 0,
"exists": true
}
]
}
@@ -0,0 +1,12 @@
{
"scope": "full_drawing",
"raw_geometry_count": 171,
"normalized_primitive_count": 251,
"normalized_line_count": 197,
"merged_line_count": 190,
"overlap_group_count": 0,
"angle_tolerance_deg": 1,
"collinear_distance_tolerance": 0.05,
"gap_tolerance": 0.05,
"merge_policy": "strong_only_same_style_collinear_interval_union"
}
@@ -0,0 +1,16 @@
154 282.5000000000004 244.2928563989652 289.5000000000004 245.0000000000006
14F 289.5000000000004 175.0000000000006 282.5000000000003 175.7071436010360
14C 236.5000000000004 210.0000000000006 236.5000000000004 210.0000000000006
14A 236.5000000000004 160.0000000000006 242.4631043060432 160.0021918972065
149 242.5000000000004 260.0000000000006 236.5368956939576 259.9978081027946
143 289.5000000000004 258.0000000000006 323.0857112474936 244.2928563989651
141 289.5000000000004 245.0000000000006 296.5000000000004 244.2928563989651
13F 323.0857112474936 175.7071436010357 289.5000000000004 162.0000000000005
13D 296.5000000000004 175.7071436010357 289.5000000000004 175.0000000000002
132 301.4999999999997 215.4999999999998 301.4999999999997 215.4999999999998
131 289.4999999999994 227.4999999999995 289.4999999999994 227.4999999999995
130 289.4999999999996 203.4999999999989 289.4999999999996 203.4999999999989
12F 277.4999999999991 215.4999999999993 277.4999999999991 215.4999999999993
12A 282.2914538986115 241.6232787147508 282.2914538986116 178.3767212852473
129 354.5000000000006 166.4756494877213 354.5000000000006 166.4756494877213
128 354.5000000000003 243.6248555756654 354.5000000000003 243.6248555756653
1 154 282.5000000000004 244.2928563989652 289.5000000000004 245.0000000000006
2 14F 289.5000000000004 175.0000000000006 282.5000000000003 175.7071436010360
3 14C 236.5000000000004 210.0000000000006 236.5000000000004 210.0000000000006
4 14A 236.5000000000004 160.0000000000006 242.4631043060432 160.0021918972065
5 149 242.5000000000004 260.0000000000006 236.5368956939576 259.9978081027946
6 143 289.5000000000004 258.0000000000006 323.0857112474936 244.2928563989651
7 141 289.5000000000004 245.0000000000006 296.5000000000004 244.2928563989651
8 13F 323.0857112474936 175.7071436010357 289.5000000000004 162.0000000000005
9 13D 296.5000000000004 175.7071436010357 289.5000000000004 175.0000000000002
10 132 301.4999999999997 215.4999999999998 301.4999999999997 215.4999999999998
11 131 289.4999999999994 227.4999999999995 289.4999999999994 227.4999999999995
12 130 289.4999999999996 203.4999999999989 289.4999999999996 203.4999999999989
13 12F 277.4999999999991 215.4999999999993 277.4999999999991 215.4999999999993
14 12A 282.2914538986115 241.6232787147508 282.2914538986116 178.3767212852473
15 129 354.5000000000006 166.4756494877213 354.5000000000006 166.4756494877213
16 128 354.5000000000003 243.6248555756654 354.5000000000003 243.6248555756653
@@ -0,0 +1,367 @@
{
"ok": true,
"rule": "section_symbols_expand_down_then_probe_orthographic_down_right_from_main_bbox_center",
"main_view_bbox": {
"min_x": 229.50000000000037,
"min_y": 154.9999999999991,
"max_x": 364.5000000000003,
"max_y": 265.00000000000057,
"center_x": 297.00000000000034,
"center_y": 209.99999999999983
},
"drawing_bbox": {
"min_x": 0,
"min_y": 0,
"max_x": 594,
"max_y": 420,
"center_x": 297,
"center_y": 210
},
"section_symbol_count": 0,
"section_view_count": 0,
"section_views": [],
"section_cut_symbol_count": 0,
"section_cut_symbols": [],
"orthographic_probe_directions": [
"down",
"right"
],
"orthographic_views": [
{
"ok": true,
"kind": "bottom_view_candidate",
"direction": "down",
"seed": {
"kind": "line",
"bbox": {
"min_x": 297,
"min_y": 0,
"max_x": 297,
"max_y": 15,
"center_x": 297,
"center_y": 7.5
},
"source_handles": [
"8B"
],
"object_name": "AcDbLine",
"layer": "0",
"linetype": "Continuous"
},
"bbox": {
"min_x": 297,
"min_y": 0,
"max_x": 297,
"max_y": 15,
"center_x": 297,
"center_y": 7.5
},
"geometry_node_count": 2,
"source_handle_count": 2,
"source_handles": [
"8B",
"A5"
],
"signature": {
"scope": "bottom_view_candidate",
"coordinate_policy": "relative_origin_from_leftmost_vertical_line_top_point",
"primitive_counts": {
"line": 1,
"circle": 0,
"arc": 0,
"spline": 0,
"total": 1
},
"line_direction_counts": {
"horizontal": 0,
"vertical": 1,
"diagonal": 0,
"unknown": 0
},
"relative_line_coordinates": {
"ok": true,
"origin_rule": "leftmost_vertical_line_top_point",
"origin": {
"x": 297,
"y": 15,
"source_handles": [
"8B"
],
"line": {
"start": [
297,
0
],
"end": [
297,
15
],
"length": 15,
"angle_deg": 90
}
},
"line_count": 2,
"bucket_size": 1,
"relative_midpoints": [
{
"index": 1,
"source_handles": [
"8B"
],
"x": 0,
"y": -7.5,
"x_bucket": 0,
"y_bucket": -8,
"midpoint_key": "X0|Y-8"
},
{
"index": 2,
"source_handles": [
"A5"
],
"x": 0,
"y": -10,
"x_bucket": 0,
"y_bucket": -10,
"midpoint_key": "X0|Y-10"
}
],
"relative_midpoint_histogram": {
"x0|y-10": 1,
"x0|y-8": 1
},
"lines": [
{
"index": 1,
"source_handles": [
"8B"
],
"direction_class": "vertical",
"angle_deg": 90,
"length": 15,
"length_bucket": 15,
"relative_start": [
0,
-15
],
"relative_end": [
0,
0
],
"relative_midpoint": [
0,
-7.5
],
"relative_mid_x": 0,
"relative_mid_y": -7.5,
"relative_mid_x_bucket": 0,
"relative_mid_y_bucket": -8,
"midpoint_key": "X0|Y-8",
"feature_key": "vertical|L15|X0|Y-8"
},
{
"index": 2,
"source_handles": [
"A5"
],
"direction_class": "vertical",
"angle_deg": 90,
"length": 10,
"length_bucket": 10,
"relative_start": [
0,
-5
],
"relative_end": [
0,
-15
],
"relative_midpoint": [
0,
-10
],
"relative_mid_x": 0,
"relative_mid_y": -10,
"relative_mid_x_bucket": 0,
"relative_mid_y_bucket": -10,
"midpoint_key": "X0|Y-10",
"feature_key": "vertical|L10|X0|Y-10"
}
],
"feature_histogram": {
"vertical|l10|x0|y-10": 1,
"vertical|l15|x0|y-8": 1
}
},
"line_length_histogram": {
"25": 1
},
"line_length_stats": {
"count": 1,
"min": 25,
"max": 25,
"sum": 25,
"avg": 25
},
"circle_radius_histogram": {},
"circle_radius_stats": {
"count": 0
},
"arc_radius_histogram": {},
"arc_radius_stats": {
"count": 0
},
"arc_sweep_angle_histogram": {},
"arc_length_histogram": {},
"matching_primary_fields": [
"kind",
"length",
"radius",
"diameter",
"arc_length",
"sweep_angle",
"direction_class",
"angle_deg",
"relative_start",
"relative_end",
"relative_midpoint"
],
"matching_excluded_primary_fields": [
"start",
"end",
"center",
"absolute_start",
"absolute_end"
],
"normalization_summary": {
"scope": "bottom_view_candidate",
"raw_geometry_count": 2,
"normalized_primitive_count": 2,
"normalized_line_count": 2,
"merged_line_count": 1,
"overlap_group_count": 0,
"angle_tolerance_deg": 1,
"collinear_distance_tolerance": 0.05,
"gap_tolerance": 0.05,
"merge_policy": "strong_only_same_style_collinear_interval_union"
},
"source_handle_count": 2,
"raw_geometry_count": 2
}
},
{
"ok": true,
"kind": "right_of_main_view_candidate",
"direction": "right",
"seed": {
"kind": "line",
"bbox": {
"min_x": 579,
"min_y": 210,
"max_x": 594,
"max_y": 210,
"center_x": 586.5,
"center_y": 210
},
"source_handles": [
"8A"
],
"object_name": "AcDbLine",
"layer": "0",
"linetype": "Continuous"
},
"bbox": {
"min_x": 579,
"min_y": 210,
"max_x": 594,
"max_y": 210,
"center_x": 586.5,
"center_y": 210
},
"geometry_node_count": 2,
"source_handle_count": 2,
"source_handles": [
"8A",
"93"
],
"signature": {
"scope": "right_of_main_view_candidate",
"coordinate_policy": "relative_origin_from_leftmost_vertical_line_top_point",
"primitive_counts": {
"line": 2,
"circle": 0,
"arc": 0,
"spline": 0,
"total": 2
},
"line_direction_counts": {
"horizontal": 2,
"vertical": 0,
"diagonal": 0,
"unknown": 0
},
"relative_line_coordinates": {
"ok": false,
"reason": "no_vertical_line_available",
"origin_rule": "leftmost_vertical_line_top_point"
},
"line_length_histogram": {
"10": 1,
"15": 1
},
"line_length_stats": {
"count": 2,
"min": 10,
"max": 15,
"sum": 25,
"avg": 12.5
},
"circle_radius_histogram": {},
"circle_radius_stats": {
"count": 0
},
"arc_radius_histogram": {},
"arc_radius_stats": {
"count": 0
},
"arc_sweep_angle_histogram": {},
"arc_length_histogram": {},
"matching_primary_fields": [
"kind",
"length",
"radius",
"diameter",
"arc_length",
"sweep_angle",
"direction_class",
"angle_deg",
"relative_start",
"relative_end",
"relative_midpoint"
],
"matching_excluded_primary_fields": [
"start",
"end",
"center",
"absolute_start",
"absolute_end"
],
"normalization_summary": {
"scope": "right_of_main_view_candidate",
"raw_geometry_count": 2,
"normalized_primitive_count": 2,
"normalized_line_count": 2,
"merged_line_count": 2,
"overlap_group_count": 0,
"angle_tolerance_deg": 1,
"collinear_distance_tolerance": 0.05,
"gap_tolerance": 0.05,
"merge_policy": "strong_only_same_style_collinear_interval_union"
},
"source_handle_count": 2,
"raw_geometry_count": 2
}
}
],
"excluded_from_orthographic_probe": "main_view_handles_and_section_view_handles"
}
@@ -0,0 +1,31 @@
{
"ok": true,
"message": "\u5DF2\u6309\u5B66\u751F\u56FE\u5DE6\u4FA7\u7AD6\u76F4\u7EBF\u6700\u4E0A\u70B9\u6574\u4F53\u5E73\u79FB SolidWorks \u4E3B\u89C6\u56FE\u3002",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\04-align-main-view",
"started_at": "2026-07-05T12:58:28.7111856+08:00",
"completed_at": "2026-07-05T12:58:29.720878+08:00",
"candidates": [],
"artifacts": {
"main_view_name": "\u5DE5\u7A0B\u56FE\u89C6\u56FE23",
"main_view_orientation_name": "agent4_main_view_04_px_r270",
"student_origin_mm": "45.990114407105125,338.275336225917",
"reference_origin_mm": "229.50000000000037,260.00000000000057",
"reference_origin_source": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\03-sw-main-before-align-extraction\\main-view-signature.json",
"delta_mm": "-183.50988559289524,78.27533622591642",
"alignment_axis": "xy",
"applied_delta_mm": "-183.50988559289524,78.27533622591642",
"delta_m": "-0.18350988559289524,0.07827533622591643",
"position_before_m": "0.297,0.21",
"position_after_m": "0.11349011440710474,0.2882753362259164"
},
"source_apis": [
"IView.Position",
"IView.GetOrientationName",
"IView.GetName2",
"IModelDoc2.ForceRebuild3"
]
}
@@ -0,0 +1,30 @@
{
"ok": true,
"message": "Created a projected drawing view from the current main view.",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\05-place-bottom-view",
"started_at": "2026-07-05T12:59:02.6035015+08:00",
"completed_at": "2026-07-05T12:59:03.413684+08:00",
"candidates": [],
"artifacts": {
"parent_view_name": "\u5DE5\u7A0B\u56FE\u89C6\u56FE23",
"parent_view_orientation_name": "agent4_main_view_04_px_r270",
"parent_view_position_m": "0.11349011440710474,0.2882753362259164",
"projected_view_name": "agent4_bottom_projected_view",
"projected_view_orientation_name": "",
"projected_view_type": "4",
"projected_view_position_m": "0.11349011440710474,0.16864885752149514",
"requested_position_m": "0.11349011440710474,0.16864885752149514",
"projection_direction": "down"
},
"source_apis": [
"IModelDocExtension.SelectByID2",
"IDrawingDoc.CreateUnfoldedViewAt3",
"IView.SetName2",
"IView.Position",
"IModelDoc2.ForceRebuild3"
]
}
@@ -0,0 +1,25 @@
{
"ok": true,
"message": "\u5DF2\u5BFC\u51FA\u5F53\u524D SolidWorks \u5DE5\u7A0B\u56FE DWG\u3002",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\06-sw-after-bottom-before-align",
"started_at": "2026-07-05T12:59:23.0726019+08:00",
"completed_at": "2026-07-05T13:01:49.6470392+08:00",
"candidates": [],
"artifacts": {
"dwg_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\06-sw-after-bottom-before-align.dwg",
"dwg_save_ok": "True",
"dwg_save_errors": "0",
"dwg_save_warnings": "0",
"dwg_rebuild_attempts": "21",
"dwg_rebuild_retry_limit": "unlimited"
},
"source_apis": [
"IModelDocExtension.SaveAs",
"IModelDoc2.SaveAs4",
"IModelDoc2.ForceRebuild3"
]
}
@@ -0,0 +1,72 @@
(vl-load-com)
(defun agent4-num (v) (if (numberp v) (rtos v 2 16) ""))
(defun agent4-ptx (p) (if (and p (listp p) (numberp (car p))) (rtos (car p) 2 16) ""))
(defun agent4-pty (p) (if (and p (listp p) (numberp (cadr p))) (rtos (cadr p) 2 16) ""))
(defun agent4-clean (s) (if s (vl-string-translate "\t\r\n" " " s) ""))
(defun agent4-bbox (obj / mn mx r)
(setq r (vl-catch-all-apply 'vla-GetBoundingBox (list obj 'mn 'mx)))
(if (vl-catch-all-error-p r)
(list "" "" "" "")
(progn
(setq mn (vlax-safearray->list mn))
(setq mx (vlax-safearray->list mx))
(list (agent4-ptx mn) (agent4-pty mn) (agent4-ptx mx) (agent4-pty mx))
)
)
)
(defun agent4-prop-point (obj prop / v)
(setq v (vl-catch-all-apply 'vlax-get-property (list obj prop)))
(if (or (null v) (vl-catch-all-error-p v)) nil (vlax-safearray->list (vlax-variant-value v)))
)
(defun agent4-prop-text (obj / s)
(setq s (vl-catch-all-apply 'vlax-get-property (list obj 'TextString)))
(if (vl-catch-all-error-p s) "" (agent4-clean s))
)
(defun agent4-write-child (f parent idx obj / typ txt sp ep ip bb layer)
(setq typ (vla-get-ObjectName obj))
(setq txt (agent4-prop-text obj))
(setq sp (agent4-prop-point obj 'StartPoint))
(setq ep (agent4-prop-point obj 'EndPoint))
(setq ip (agent4-prop-point obj 'InsertionPoint))
(setq bb (agent4-bbox obj))
(setq layer (vl-catch-all-apply 'vlax-get-property (list obj 'Layer)))
(if (vl-catch-all-error-p layer) (setq layer ""))
(write-line
(strcat parent "\t" (itoa idx) "\t" typ "\t" txt "\t"
(agent4-ptx sp) "\t" (agent4-pty sp) "\t"
(agent4-ptx ep) "\t" (agent4-pty ep) "\t"
(agent4-ptx ip) "\t" (agent4-pty ip) "\t"
(nth 0 bb) "\t" (nth 1 bb) "\t" (nth 2 bb) "\t" (nth 3 bb) "\t"
layer "\t" "vla-explode")
f)
)
(defun agent4-read-block-explosions (/ f ss i ent obj parent arr children child idx)
(setq f (open "D:/CSharpProjects/agent4/runtime/current-standard-flow/32-rebuild-after-format-fix/07-sw-after-bottom-before-align-extraction/block-explosions.tsv" "w"))
(setq ss (ssget "_X" '((0 . "INSERT"))))
(if ss
(progn
(setq i 0)
(while (< i (sslength ss))
(setq ent (ssname ss i))
(setq obj (vlax-ename->vla-object ent))
(setq parent (vla-get-Handle obj))
(setq arr (vl-catch-all-apply 'vla-Explode (list obj)))
(if (not (vl-catch-all-error-p arr))
(progn
(setq children (vlax-safearray->list (vlax-variant-value arr)))
(setq idx 0)
(foreach child children
(agent4-write-child f parent idx child)
(vl-catch-all-apply 'vla-Delete (list child))
(setq idx (1+ idx))
)
)
)
(setq i (1+ i))
)
)
)
(if f (close f))
(princ)
)
(agent4-read-block-explosions)
@@ -0,0 +1,48 @@
(vl-load-com)
(defun agent4-format-point (p)
(if (and p (listp p) (numberp (car p)) (numberp (cadr p)))
(strcat (rtos (car p) 2 16) "\t" (rtos (cadr p) 2 16))
"\t"
)
)
(defun agent4-start-point (obj / param point)
(setq param (vl-catch-all-apply 'vlax-curve-getStartParam (list obj)))
(if (not (vl-catch-all-error-p param))
(setq point (vl-catch-all-apply 'vlax-curve-getPointAtParam (list obj param)))
)
(if (or (null point) (vl-catch-all-error-p point))
(setq point (vl-catch-all-apply 'vlax-curve-getStartPoint (list obj)))
)
(if (vl-catch-all-error-p point) nil point)
)
(defun agent4-end-point (obj / param point)
(setq param (vl-catch-all-apply 'vlax-curve-getEndParam (list obj)))
(if (not (vl-catch-all-error-p param))
(setq point (vl-catch-all-apply 'vlax-curve-getPointAtParam (list obj param)))
)
(if (or (null point) (vl-catch-all-error-p point))
(setq point (vl-catch-all-apply 'vlax-curve-getEndPoint (list obj)))
)
(if (vl-catch-all-error-p point) nil point)
)
(defun agent4-write-spline-endpoints (/ f ss i ent obj h sp ep)
(setq f (open "D:/CSharpProjects/agent4/runtime/current-standard-flow/32-rebuild-after-format-fix/07-sw-after-bottom-before-align-extraction/spline-endpoints.tsv" "w"))
(setq ss (ssget "_X" '((0 . "SPLINE"))))
(if ss
(progn
(setq i 0)
(while (< i (sslength ss))
(setq ent (ssname ss i))
(setq obj (vlax-ename->vla-object ent))
(setq h (vla-get-Handle obj))
(setq sp (agent4-start-point obj))
(setq ep (agent4-end-point obj))
(write-line (strcat h "\t" (agent4-format-point sp) "\t" (agent4-format-point ep)) f)
(setq i (1+ i))
)
)
)
(if f (close f))
(princ)
)
(agent4-write-spline-endpoints)
@@ -0,0 +1,47 @@
{
"ok": true,
"selection_rule": "solidworks_multiview_reference_main_bbox",
"processing_order": "remove_outer_edge_connected_frame_title_then_select_geometry_inside_previous_main_view_bbox",
"bbox": {
"min_x": 45.99011440710514,
"min_y": 233.27533622591548,
"max_x": 180.99011440710498,
"max_y": 343.275336225917,
"center_x": 113.49011440710507,
"center_y": 288.27533622591625
},
"reference_bbox": {
"min_x": 33.35857583157691,
"min_y": 233.27533622591574,
"max_x": 191.5433584402722,
"max_y": 343.275336225917,
"center_x": 112.45096713592454,
"center_y": 288.27533622591636
},
"reference_selection_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\26-student-section-cut-symbols-corner-center\\main-view-selection.json",
"drawing_bbox": {
"min_x": 0,
"min_y": 0,
"max_x": 594,
"max_y": 420,
"center_x": 297,
"center_y": 210
},
"frame_seed_count": 40,
"frame_title_node_count": 73,
"bbox_internal_absorbed_node_count": 0,
"selected_node_count": 98,
"selected_source_handle_count": 98,
"main_view_geometry_count": 98,
"excluded": "annotations_dimensions_text_hatch_frame_border_solidworks_title_block_other_projected_views",
"normalization_scope": "main_view",
"normalization_raw_geometry_count": 98,
"normalization_normalized_primitive_count": 178,
"normalization_normalized_line_count": 124,
"normalization_merged_line_count": 120,
"normalization_overlap_group_count": 0,
"normalization_angle_tolerance_deg": 1,
"normalization_collinear_distance_tolerance": 0.05,
"normalization_gap_tolerance": 0.05,
"normalization_merge_policy": "strong_only_same_style_collinear_interval_union"
}
@@ -0,0 +1,176 @@
{
"ok": true,
"schema": "agent4.dwg-draft.extraction.v1",
"source": "AutoCAD COM external extractor",
"prog_id": "AutoCAD.Application.23.1",
"started_auto_cad": false,
"drawing_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\06-sw-after-bottom-before-align.dwg",
"exported_at_utc": "2026-07-05T05:03:09.5451157Z",
"model_space_count": 306,
"paper_space_count": 0,
"entity_count": 306,
"type_counts": {
"ac_db_line": 148,
"ac_db_m_text": 66,
"ac_db_arc": 29,
"ac_db_polyline": 18,
"ac_db_circle": 10,
"ac_db_spline": 35
},
"category_files": [
{
"category": "entities-common",
"file": "entities-common.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\entities-common.json",
"item_count": 306,
"exists": true
},
{
"category": "geometry",
"file": "geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\geometry.json",
"item_count": 240,
"exists": true
},
{
"category": "normalized-geometry",
"file": "normalized-geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\normalized-geometry.json",
"item_count": 400,
"exists": true
},
{
"category": "merged-lines",
"file": "merged-lines.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\merged-lines.json",
"item_count": 313,
"exists": true
},
{
"category": "geometry-overlaps",
"file": "geometry-overlaps.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\geometry-overlaps.json",
"item_count": 0,
"exists": true
},
{
"category": "normalization-summary",
"file": "normalization-summary.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\normalization-summary.json",
"item_count": 10,
"exists": true
},
{
"category": "main-view-geometry",
"file": "main-view-geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\main-view-geometry.json",
"item_count": 98,
"exists": true
},
{
"category": "main-view-normalized-geometry",
"file": "main-view-normalized-geometry.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\main-view-normalized-geometry.json",
"item_count": 178,
"exists": true
},
{
"category": "main-view-merged-lines",
"file": "main-view-merged-lines.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\main-view-merged-lines.json",
"item_count": 120,
"exists": true
},
{
"category": "main-view-overlaps",
"file": "main-view-overlaps.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\main-view-overlaps.json",
"item_count": 0,
"exists": true
},
{
"category": "main-view-signature",
"file": "main-view-signature.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\main-view-signature.json",
"item_count": 15,
"exists": true
},
{
"category": "bottom-view-signature",
"file": "bottom-view-signature.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\bottom-view-signature.json",
"item_count": 18,
"exists": true
},
{
"category": "section-cut-symbols",
"file": "section-cut-symbols.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\section-cut-symbols.json",
"item_count": 0,
"exists": true
},
{
"category": "main-view-selection",
"file": "main-view-selection.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\main-view-selection.json",
"item_count": 24,
"exists": true
},
{
"category": "view-regions",
"file": "view-regions.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\view-regions.json",
"item_count": 12,
"exists": true
},
{
"category": "annotations",
"file": "annotations.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\annotations.json",
"item_count": 66,
"exists": true
},
{
"category": "dimensions",
"file": "dimensions.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\dimensions.json",
"item_count": 0,
"exists": true
},
{
"category": "dimensional-tolerances",
"file": "dimensional-tolerances.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\dimensional-tolerances.json",
"item_count": 0,
"exists": true
},
{
"category": "roughness",
"file": "roughness.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\roughness.json",
"item_count": 0,
"exists": true
},
{
"category": "geometric-tolerances",
"file": "geometric-tolerances.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\geometric-tolerances.json",
"item_count": 0,
"exists": true
},
{
"category": "datums",
"file": "datums.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\datums.json",
"item_count": 0,
"exists": true
},
{
"category": "unknown-entities",
"file": "unknown-entities.json",
"full_path": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\unknown-entities.json",
"item_count": 0,
"exists": true
}
]
}
@@ -0,0 +1,12 @@
{
"scope": "full_drawing",
"raw_geometry_count": 240,
"normalized_primitive_count": 400,
"normalized_line_count": 326,
"merged_line_count": 313,
"overlap_group_count": 0,
"angle_tolerance_deg": 1,
"collinear_distance_tolerance": 0.05,
"gap_tolerance": 0.05,
"merge_policy": "strong_only_same_style_collinear_interval_union"
}
@@ -0,0 +1,35 @@
19C 52.99011440710515 118.6492103747772 58.95321871314796 118.6514022719831
19B 58.99011440710514 168.6492103747772 58.99011440710514 168.6492103747772
194 98.99011440710514 125.6492103747771 105.9901144071051 126.2228035035843
18E 105.9901144071051 126.2228035035843 112.9901144071051 125.6492103747771
188 105.9901144071051 141.7977672105820 139.5758256545984 125.6492103747771
185 139.5758256545984 211.6492103747772 105.9901144071051 195.5006535389722
183 115.9901144071051 162.9271242012071 115.9901144071051 174.3712965483472
17B 112.4914571602385 113.6489908734297 117.9901144071044 113.9245484806310
17A 117.9901144071044 113.9245484806310 123.4722133846492 113.6506433363385
179 105.9901144071041 116.5072234849599 105.9901144071041 116.5072234849599
178 88.49145716023784 113.6489908734297 93.99011440710379 113.9245484806313
177 93.99011440710379 113.9245484806313 99.47221338464885 113.6506433363386
176 102.4901144071043 223.6488575214951 89.50962164816644 223.6465574737878
174 102.3739101207816 221.4485046682133 109.6063186934273 221.4485046682133
173 122.4901144071044 223.6488575214951 109.5096216481666 223.6465574737878
172 81.02055294751423 223.6283576177608 98.78156830571626 213.6485046682134
16E 98.78156830571628 123.6492103747772 81.02055294751414 113.6693574252297
16D 170.9901144071050 125.1245070092174 170.9901144071050 125.1245070092174
16C 170.9901144071046 202.2737130971615 170.9901144071046 202.2737130971615
154 98.99011440710514 322.5681926248815 105.9901144071051 323.2753362259170
14F 105.9901144071051 253.2753362259170 98.99011440710514 253.9824798269525
14C 52.99011440710515 288.2753362259170 52.99011440710515 288.2753362259170
14A 52.99011440710515 238.2753362259170 58.95321871314795 238.2775281231229
149 58.99011440710514 338.2753362259170 53.02701010106233 338.2731443287111
143 105.9901144071051 336.2753362259170 139.5758256545984 322.5681926248815
141 105.9901144071051 323.2753362259170 112.9901144071051 322.5681926248814
13F 139.5758256545984 253.9824798269521 105.9901144071051 240.2753362259169
13D 112.9901144071051 253.9824798269521 105.9901144071051 253.2753362259167
132 117.9901144071044 293.7753362259162 117.9901144071044 293.7753362259162
131 105.9901144071041 305.7753362259159 105.9901144071041 305.7753362259159
130 105.9901144071043 281.7753362259153 105.9901144071043 281.7753362259153
12F 93.99011440710379 293.7753362259156 93.99011440710379 293.7753362259156
12A 98.78156830571628 319.8986149406673 98.78156830571626 256.6520575111638
129 170.9901144071053 244.7509857136377 170.9901144071053 244.7509857136377
128 170.9901144071050 321.9001918015818 170.9901144071049 321.9001918015818
1 19C 52.99011440710515 118.6492103747772 58.95321871314796 118.6514022719831
2 19B 58.99011440710514 168.6492103747772 58.99011440710514 168.6492103747772
3 194 98.99011440710514 125.6492103747771 105.9901144071051 126.2228035035843
4 18E 105.9901144071051 126.2228035035843 112.9901144071051 125.6492103747771
5 188 105.9901144071051 141.7977672105820 139.5758256545984 125.6492103747771
6 185 139.5758256545984 211.6492103747772 105.9901144071051 195.5006535389722
7 183 115.9901144071051 162.9271242012071 115.9901144071051 174.3712965483472
8 17B 112.4914571602385 113.6489908734297 117.9901144071044 113.9245484806310
9 17A 117.9901144071044 113.9245484806310 123.4722133846492 113.6506433363385
10 179 105.9901144071041 116.5072234849599 105.9901144071041 116.5072234849599
11 178 88.49145716023784 113.6489908734297 93.99011440710379 113.9245484806313
12 177 93.99011440710379 113.9245484806313 99.47221338464885 113.6506433363386
13 176 102.4901144071043 223.6488575214951 89.50962164816644 223.6465574737878
14 174 102.3739101207816 221.4485046682133 109.6063186934273 221.4485046682133
15 173 122.4901144071044 223.6488575214951 109.5096216481666 223.6465574737878
16 172 81.02055294751423 223.6283576177608 98.78156830571626 213.6485046682134
17 16E 98.78156830571628 123.6492103747772 81.02055294751414 113.6693574252297
18 16D 170.9901144071050 125.1245070092174 170.9901144071050 125.1245070092174
19 16C 170.9901144071046 202.2737130971615 170.9901144071046 202.2737130971615
20 154 98.99011440710514 322.5681926248815 105.9901144071051 323.2753362259170
21 14F 105.9901144071051 253.2753362259170 98.99011440710514 253.9824798269525
22 14C 52.99011440710515 288.2753362259170 52.99011440710515 288.2753362259170
23 14A 52.99011440710515 238.2753362259170 58.95321871314795 238.2775281231229
24 149 58.99011440710514 338.2753362259170 53.02701010106233 338.2731443287111
25 143 105.9901144071051 336.2753362259170 139.5758256545984 322.5681926248815
26 141 105.9901144071051 323.2753362259170 112.9901144071051 322.5681926248814
27 13F 139.5758256545984 253.9824798269521 105.9901144071051 240.2753362259169
28 13D 112.9901144071051 253.9824798269521 105.9901144071051 253.2753362259167
29 132 117.9901144071044 293.7753362259162 117.9901144071044 293.7753362259162
30 131 105.9901144071041 305.7753362259159 105.9901144071041 305.7753362259159
31 130 105.9901144071043 281.7753362259153 105.9901144071043 281.7753362259153
32 12F 93.99011440710379 293.7753362259156 93.99011440710379 293.7753362259156
33 12A 98.78156830571628 319.8986149406673 98.78156830571626 256.6520575111638
34 129 170.9901144071053 244.7509857136377 170.9901144071053 244.7509857136377
35 128 170.9901144071050 321.9001918015818 170.9901144071049 321.9001918015818
@@ -0,0 +1,31 @@
{
"ok": true,
"message": "\u5DF2\u6309\u5B66\u751F\u56FE\u5DE6\u4FA7\u7AD6\u76F4\u7EBF\u6700\u4E0A\u70B9\u6574\u4F53\u5E73\u79FB SolidWorks \u4E3B\u89C6\u56FE\u3002",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\08-align-bottom-view-y",
"started_at": "2026-07-05T13:03:31.2604642+08:00",
"completed_at": "2026-07-05T13:03:32.2730165+08:00",
"candidates": [],
"artifacts": {
"main_view_name": "agent4_bottom_projected_view",
"main_view_orientation_name": "",
"student_origin_mm": "49.861038320147486,162.927864076586",
"reference_origin_mm": "45.99011440710514,218.6492103747772",
"reference_origin_source": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\07-sw-after-bottom-before-align-extraction\\bottom-view-signature.json",
"delta_mm": "3.870923913042347,-55.72134629819121",
"alignment_axis": "y",
"applied_delta_mm": "0,-55.72134629819121",
"delta_m": "0,-0.055721346298191206",
"position_before_m": "0.11349011440710474,0.16864885752149514",
"position_after_m": "0.11349011440710474,0.11292751122330394"
},
"source_apis": [
"IView.Position",
"IView.GetOrientationName",
"IView.GetName2",
"IModelDoc2.ForceRebuild3"
]
}
@@ -0,0 +1,25 @@
{
"ok": true,
"message": "Created SolidWorks section views from extracted student DWG section cut symbols.",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\09-place-section-views",
"started_at": "2026-07-05T13:03:55.2644019+08:00",
"completed_at": "2026-07-05T13:03:58.8353166+08:00",
"candidates": [],
"artifacts": {
"section_cut_symbols": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\26-student-section-cut-symbols-corner-center\\section-cut-symbols.json",
"section_count": "2",
"placed_section_views": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\09-place-section-views\\placed-section-views.json"
},
"source_apis": [
"IDrawingDoc.ActivateView",
"ISketchManager.CreateLine",
"ISketchSegment.Select2",
"IDrawingDoc.CreateSectionViewAt5",
"IView.SetName2",
"IModelDoc2.ForceRebuild3"
]
}
@@ -0,0 +1,134 @@
[
{
"label": "A",
"source_parent_handle": "A94",
"view_kind": "main_view",
"parent_view_name": "\u5DE5\u7A0B\u56FE\u89C6\u56FE23",
"parent_view_orientation_name": "agent4_main_view_04_px_r270",
"section_view_name": "\u5256\u9762\u89C6\u56FE A-A",
"cut_line_mm": {
"start": [
105.8062765533484,
351.675336225917
],
"end": [
105.8062765533484,
224.8753362259158
],
"center": [
105.8062765533484,
289.9298769097263
],
"direction": "vertical",
"source": "cut_line_center_through_parent_view_outline_parent_local"
},
"cut_line_m": {
"start": [
0.1058062765533484,
0.351675336225917
],
"end": [
0.1058062765533484,
0.2248753362259158
],
"center": [
0.1058062765533484,
0.2899298769097263
]
},
"sketch_line_m": {
"start": [
-0.007683837853756342,
0.06340000000000062
],
"end": [
-0.007683837853756342,
-0.0634000000000006
],
"center": [
-0.007683837853756342,
0.0016545406838099352
],
"coordinate_system": "active_parent_drawing_view"
},
"arrow_direction": [
1,
0
],
"requested_position_m": [
0.2258062765533484,
0.2899298769097263
],
"actual_position_m": [
0.2258062765533484,
0.2899298769097263
],
"options": 9
},
{
"label": "B",
"source_parent_handle": "AA0",
"view_kind": "bottom_view_candidate",
"parent_view_name": "agent4_bottom_projected_view",
"parent_view_orientation_name": "",
"section_view_name": "\u5256\u9762\u89C6\u56FE B-B",
"cut_line_mm": {
"start": [
109.8610383201475,
176.32751122330413
],
"end": [
109.8610383201475,
49.52751122330374
],
"center": [
109.8610383201475,
112.92821692986769
],
"direction": "vertical",
"source": "cut_line_center_through_parent_view_outline_parent_local"
},
"cut_line_m": {
"start": [
0.1098610383201475,
0.17632751122330412
],
"end": [
0.1098610383201475,
0.04952751122330374
],
"center": [
0.1098610383201475,
0.11292821692986768
]
},
"sketch_line_m": {
"start": [
-0.003629076086957242,
0.06340000000000018
],
"end": [
-0.003629076086957242,
-0.0634000000000002
],
"center": [
-0.003629076086957242,
7.057065637416926E-07
],
"coordinate_system": "active_parent_drawing_view"
},
"arrow_direction": [
-1,
0
],
"requested_position_m": [
-0.010138961679852496,
0.11292821692986768
],
"actual_position_m": [
-0.010138961679852496,
0.11292821692986768
],
"options": 13
}
]
@@ -0,0 +1,23 @@
{
"ok": true,
"message": "Listed drawing views from the current SolidWorks drawing.",
"model_path": "D:\\Desktop\\\u65B0\u5EFA\u6587\u4EF6\u5939\\\u6BD5\u8BBE\\\u5EFA\u6A21\\\u5C0F\u81C2\u8098\u5173\u8282\u88C5\u914D\\\u5C0F\u81C2\u8098\u5173\u8282.SLDASM",
"drawing_template_path": "",
"drawing_path": "D:\\Desktop\\\u5C0F\u81C2\u8098\u5173\u8282.SLDDRW",
"used_active_drawing": true,
"output_dir": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\10-final-view-list",
"started_at": "2026-07-05T13:04:18.2637626+08:00",
"completed_at": "2026-07-05T13:04:18.9307441+08:00",
"candidates": [],
"artifacts": {
"drawing_views": "D:\\CSharpProjects\\agent4\\runtime\\current-standard-flow\\32-rebuild-after-format-fix\\10-final-view-list\\drawing-views.json",
"drawing_view_count": "5"
},
"source_apis": [
"IDrawingDoc.GetFirstView",
"IView.GetName2",
"IView.GetOrientationName",
"IView.Position",
"IView.GetOutline"
]
}
@@ -0,0 +1,87 @@
[
{
"name": "\u56FE\u7EB81",
"orientation_name": "",
"type": 1,
"position_m": [
0,
0
],
"outline_m": [
0,
0,
0.594,
0.42
],
"scale_decimal": 0.5,
"use_sheet_scale": 1
},
{
"name": "\u5DE5\u7A0B\u56FE\u89C6\u56FE23",
"orientation_name": "agent4_main_view_04_px_r270",
"type": 7,
"position_m": [
0.11349011440710474,
0.2882753362259164
],
"outline_m": [
0.03759011440710513,
0.2248753362259158,
0.18939011440710435,
0.351675336225917
],
"scale_decimal": 1,
"use_sheet_scale": 0
},
{
"name": "agent4_bottom_projected_view",
"orientation_name": "",
"type": 4,
"position_m": [
0.11349011440710474,
0.11292751122330394
],
"outline_m": [
0.03759011440710513,
0.04952751122330374,
0.18939011440710435,
0.17632751122330412
],
"scale_decimal": 1,
"use_sheet_scale": 0
},
{
"name": "\u5256\u9762\u89C6\u56FE A-A",
"orientation_name": "",
"type": 2,
"position_m": [
0.2258062765533484,
0.2899298769097263
],
"outline_m": [
0.16240627655334824,
0.22652987690972634,
0.28920627655334863,
0.35332987690972634
],
"scale_decimal": 1,
"use_sheet_scale": 0
},
{
"name": "\u5256\u9762\u89C6\u56FE B-B",
"orientation_name": "",
"type": 2,
"position_m": [
-0.010138961679852496,
0.11292821692986768
],
"outline_m": [
-0.07353896167985478,
0.049528216929867495,
0.05326103832014723,
0.1763282169298679
],
"scale_decimal": 1,
"use_sheet_scale": 0
}
]