๐Ÿ“š Macro Reference

Blade Generation System โ€” Project Plan

๐Ÿ“š Macro Reference

Last Updated: 09 January 2026 | Full Reference Documentation โ†’

๐ŸŽฏ Primary Entry Points

Macro Type Purpose
fxCreateBladeFromIntersect PRODUCTION PRIMARY - Creates complete blade solid from part body
fxBladeProfileVector PRODUCTION Generates blade profile kurve(s) using vector-based positioning
fxReadBladeJSON PRODUCTION Parses blade parameters from JSON config file
fxMakeWatertight PRODUCTION Heals holes in solid bodies using sld fac rem

๐Ÿงช Test Harness Macros

Macro Location Purpose
fxTestBladeFromIntersect modeling\blade\testing\ PRIMARY TEST - Tests 5 blade orientations (modes 0-4)
fxIntegrationTest io\json\testing\ JSON โ†’ Profile โ†’ Blade Solid (with progress)
fxTestBladeProfileVectorFull modeling\blade\testing\ Tests profile generation on multiple parts
fxTestJSONParsing io\json\ Validates JSON parsing against example files
fxTestGravityOffset modeling\blade\testing\ Tests gravity-aware offset in multiple directions

๐Ÿ”ง Quick Usage Guide

'*** PRODUCTION: Create blade from part
call fxCreateBladeFromIntersect i_partBody w_centerX w_centerY w_centerZ \
                                 w_normX w_normY w_normZ w_thickness w_stockMargin
i_bladeBody = i_return

'*** TEST: Run 5-orientation blade test
call fxTestBladeFromIntersect 0 0 80   ' Mode 0 (X-normal), no win control, body 80
call fxTestBladeFromIntersect 1 0 80   ' Mode 1 (Y-normal)
call fxTestBladeFromIntersect 2 0 80   ' Mode 2 (Z-normal)
call fxTestBladeFromIntersect 3 0 80   ' Mode 3 (45ยฐ XY compound)
call fxTestBladeFromIntersect 4 0 80   ' Mode 4 (3D diagonal)

'*** JSON WORKFLOW: Load config and create blade
call fxIntegrationTest 0 80  ' Full test with progress visualization