Repository navigation
0.3.135 - one curve, and saying so
Two reports on 0.3.134, the second correcting the first. The first said "MCP has
no way to turn an imported 110-line outline into one curve, so a PDF can only
become a plate". The second found that catia_gsd_spline(element=, closed=true) had always done it, and lofted to 4838.70 mm3. Both were
right about the defect: THE CAPABILITY EXISTED AND NOTHING SAID SO - not the
LOFT_REJECTED hint, not the import reply, not read_drawing, whose
closed:true / free_ends:0 promised a pad and said nothing about a loft.
R1 / R5 - THE QUESTION IS NOW ASKED AT EVERY STEP THAT ANSWERS IT
read_drawing each contour carries curves and loft_ready: 110 lines is
curves=110, loft_ready=false; a circle is 1/true. The page-wide
curve statistics moved to page_level_stats, because "775 arcs
fitted" beside "the profile is 110 lines" read like a bug twice.
import_drawing(profile_mode="segments"|"spline")
"spline" draws each multi-element contour as ONE closed spline
at import time. Measured on B30 2026-11-15 on the report's own
sheet: one spline through 111 control points, two sections loft
to 4838.39 mm3 - catia_solid_loft took the sketch directly. A
circle or ellipse is left EXACT (it is already one curve) and
the reply says how many of each. The reply also names the
sharpest turn and how many corners are sharper than 20 degrees,
because a spline is interpolating: a 20x12 rectangle became
24.04 x 21.46 mm when lofted (measured 2026-11-03).
import reply "1 curve(s): pad/pocket OK and a loft section needs one" or
"N curve(s) ... this outline cannot be one as it is", plus the
two ways to make it one.
LOFT_REJECTED quotes the paste-able call, with the offending sketch's real
name in it: catia_gsd_spline(element='', closed=true).
C2 - import_drawing.plane ACCEPTS THE FRAME OBJECT create_sketch TAKES. The
description had promised "the same values catia_create_sketch takes" since
0.3.128 while the schema answered "received object; expected string". A frame is
how two orthographic views are placed on a shared datum. Measured:
{"type":"frame","origin":[0,0,33],"u":[0,1,0],"v":[0,0,1]} creates the sketch on
that datum.
R3 - A NAME A PLAN CAN RELY ON. catia_create_sketch(name=...) pins the sketch
name, and a name already in use is REFUSED (SKETCH_NAME_TAKEN, with the names in
use) instead of being silently suffixed to 草图.1#2 - which is invisible while
writing a run_plan, whose args are static strings. A loft section that does not
exist now lists what the part actually holds.
C4 - catia_set_parameter on a name that is not there answers PARAMETER_NOT_FOUND
with the closest matches, like the formula-driven branch has since 0.3.128.
C6 - catia_get_inertia SAYS WHICH BODY IT MEASURED. Measured: the same part gives
2000 mm3 with SideView in work and 24000 mm3 with 零件几何体 in work, and the
reply said only volume_mm3. It now carries scope (active_body|main_body) and body,
and run_plan passes both through with a note when the number is one body.
C3 / C7 - MEASURED, NOT FAKED. Dimension VALUES cannot be read off that drawing:
text_runs = 0, because every callout was converted to curves before export - the
numbers are geometry, not text. Recorded as UNAVAILABLE_ON_B30, a new status
word: the data is missing, so no wrapper could help. And clean hides the
sketches inside bodies but not geometrical sets, so a visible GSD element
overlays the solid - the report's "black curve" sits on a part whose own reply
listed GSD_Set with one SHOWN element.
A MEASUREMENT THAT CORRECTED THE REPORT: the spline import leaves its control
points in the sketch (111 point elements beside the one spline). That is CATIA's
2D spline, not a leak - a 4-point closed spline leaves 5 - and
GeometricElements has no Remove (".Remove", measured). Both counts are
now stated, instead of letting 113 elements look like the import ran three times.
VERIFIED ON B30: scripts/b30_v0436_audit.py 12/12 (curves/loft_ready, one curve
imported, loft accepted at 4838.39 mm3, frame plane, pinned and refused sketch
names, the section list in the error, PARAMETER_NOT_FOUND, scope+body, and the
paste-able hint inside a real LOFT_REJECTED).
2153 tests. 153 tools. 435 files, 2284319 bytes.