Commit Graph
69 Commits
Author SHA1 Message Date
ajandClaude cbfb9190c5 refactor: update application startup flow
Modified Program.cs to display DrawingSelectionForm at startup before launching MainForm. The selected drawing ID and number are now passed to MainForm constructor.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 06:46:43 -05:00
ajandClaude 9b1fbd9fad feat(ui): add drawing selection form
Added DrawingSelectionForm to allow users to select equipment and drawing at application startup, replacing the previous workflow where drawing selection happened within the main form.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 06:46:32 -05:00
ajandClaude 51bf3b00dd feat(api): add BOM items and cut templates endpoints
Added GetBomItemsForDrawingAsync and GetCutTemplatesAsync methods to fetch BOM items with sheet metal properties and cut template data from the API.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 06:46:22 -05:00
ajandClaude a32bbfa5d9 feat: add BomItem and LogEvent models
Added BomItem model with sheet metal properties (thickness, k-factor, bend radius) and LogEvent model for structured logging with action tracking.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 06:46:11 -05:00
ajandClaude 84f0196c97 refactor: remove Excel export functionality
Removed BomExcelExporter service, BomExcelSettings class, BomTemplate.xlsx template, and EPPlus package dependency. This functionality is being replaced with direct API integration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 06:45:58 -05:00
ajandClaude 5cf7e1f1e5 chore: add Claude Code configuration and documentation
- Add /organize-commits slash command for logical commit organization
- Add AGENTS.md with repository guidelines and workflows

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 17:30:06 -04:00
ajandClaude 35ac0fb3f8 feat(api): add sheet metal properties to DXF upload
- Add defaultBendRadius and material parameters to UploadDxfZipAsync
- Pass bend radius and material from BOM items to API
- Enables more complete sheet metal specification in CutFab

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 17:29:56 -04:00
ajandClaude cc34fb43b6 refactor(ui): rename controls and improve drawing selection
- Rename form controls from generic names to descriptive ones:
  - button1 → runButton
  - richTextBox1 → logTextBox
  - comboBox1 → viewFlipDeciderBox
  - comboBox2 → drawingNoBox
- Preserve drawing selection when switching equipment
- Auto-populate drawing number from active document

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 17:29:47 -04:00
ajandClaude d29d9a0e06 Feature: send sheet metal properties and upload all BOM items
Enhanced DXF export to send thickness and kfactor properties from SolidWorks
to the CutFab API, and ensures all BOM items are uploaded regardless of whether
they have DXF files.

Changes:
- Modified UploadDxfZipAsync to accept and send thickness/kfactor parameters
- Updated DxfExportService to extract thickness/kfactor from Item and pass to API
- Refactored BOM item creation to happen for all items, not just those with DXF files
- This ensures purchased parts, hardware, and other non-sheet-metal items are uploaded

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 00:17:37 -04:00
aj c7f2a51823 Submodule EtchBendLines updated
Submodule EtchBendLines:
    > 89d987f - Refactor Main method to separate responsibilities and improve readability
    > 78ae737 - Refactor Etcher.AddEtchLines into discrete steps and helpers
    > 2391eb7 - Format Bend.ToString() with 2dp and “?” placeholders for nulls
    > dd7443d - Moved GetEtchLines to Etcher class
    > e5daf74 - Extract IsBendLine helper to clean up BendLineExtractor
    > 7740120 - bendNoteRegex tweaks
    > 214cc94 - Culture-safe parsing
2025-10-28 17:35:14 -04:00
aj 5b996be91e refactor(model): rename JobNo to EquipmentNo in DrawingInfo
- Update regex group and ToString to use EquipmentNo

- Prepare for equipment-centric drawing identification
2025-10-28 17:24:27 -04:00
aj 6bddbff08e feat(naming): update DXF filename format to include drawing number and PT##
- Use prefix as drawing number and format as {DrawingNo} PT{ItemNo}

- Default to PT{ItemNo} when no prefix provided
2025-10-28 17:24:21 -04:00
aj 1ec72bc98f feat(export): integrate CutFab API in export flow
- Export to temp directory and auto-upload PDF/DXF

- Resolve or create drawing via API using selected Equipment ID

- Upload DXFs per-part and create BOM items

- Attempt auto-linking of templates after export

- Add EquipmentId to ExportContext
2025-10-28 17:24:16 -04:00
aj b122b88435 feat(ui): add equipment and drawing selectors powered by API\n\n- Inject ICutFabApiClient into MainForm\n- Populate equipment and drawings on load\n- Hook selection changes and pass into export context\n- Resize layout and replace prefix textbox with selectors 2025-10-28 17:24:00 -04:00
aj b677ac8ec9 feat(api): add CutFab API client and configuration\n\n- Add ICutFabApiClient + CutFabApiClient HTTP client\n- Wire base URL via appSettings (CutFab.ApiBaseUrl)\n- Register client in Program and inject into services\n- Add required System.Net.Http and compression references 2025-10-28 17:23:56 -04:00
aj c9a8442a29 Refactored ExportContext 2025-10-01 09:44:07 -04:00
aj a2b89318e1 Changed mm to inches in sheet metal properties 2025-10-01 09:42:22 -04:00
aj f1fc105a1b Set minimum width for BOM description column 2025-10-01 09:42:01 -04:00
aj 58269f9761 Changed BomExcelSettings defaults 2025-10-01 09:40:54 -04:00
aj 4053038632 Fixed unit scales 2025-10-01 09:40:16 -04:00
aj 2d5ffdf5c0 Refactored MainForm 2025-09-29 13:29:50 -04:00
aj 6b37f0f6f7 Refactored BomToExcel 2024-12-23 14:10:12 -05:00
aj c1aaaf07ee Set flat pattern suppression state to fully resolved. 2023-07-22 08:23:53 -04:00
aj 63b96e1451 Remove xml tags from BOM items. 2023-07-22 08:21:59 -04:00
aj 97f45b2fcc Set SimplifyBends to true
When set to false, some bend reliefs are made of splines
2023-03-02 09:19:14 -05:00
aj 2e6ecd11a1 Uncheck flat pattern corner treatment 2023-03-01 08:07:06 -05:00
aj db481baa89 Changed target framework to version 4.8 2023-03-01 08:06:34 -05:00
aj 636818ed33 Submodule EtchBendLines updated
Submodule EtchBendLines:
    > 04031a7 - Changed target framework to version 4.8
    > 3e4ab60 - Allow multiple paths passed through args
    > 2b30498 - Wrap main in try catch
2023-03-01 08:05:48 -05:00
aj 979067db21 Save drawing pdf in same directory as DXF files. 2022-06-23 12:44:44 -04:00
aj a0080c8a68 Print errors when getting BOM items. 2022-06-23 11:06:23 -04:00
aj aeec611f78 Include 5000 range in drawing numbers. 2022-06-23 10:47:30 -04:00
aj d3f6791b53 UpdatePrefix() 2021-10-12 20:51:40 -04:00
aj 15edbf6fec Reset prefix if no drawing info is found. 2021-10-11 06:25:01 -04:00
aj 0d1fd67b8d Updated publish settings 2021-04-14 07:15:23 -04:00
aj d7e4eb7e87 Specify savepath for ExportDrawingToPDF 2021-03-21 23:46:57 -04:00
aj 60bd4ff645 Moved HasSupressedBends to ViewHelper class. 2021-03-21 22:21:40 -04:00
aj e9a7b51d24 Moved HideModelSketches to ViewHelper class. 2021-03-21 22:19:58 -04:00
aj 016e32c2e3 Moved ViewFlipDeciders to separate namespace. 2021-03-21 22:19:25 -04:00
aj 16c9d97e22 Moved ItemExtractors to separate namespace. 2021-03-21 22:09:31 -04:00
aj b693d8a092 Updated submodule EtchBendLines 2021-03-08 22:39:23 -05:00
aj 96e54a686b Renamed ExportBomToExcel to BomToExcel 2021-03-05 20:42:20 -05:00
aj 0b4173014f ExportDrawingToPDF 2021-03-04 21:47:25 -05:00
aj eee6bfdff3 ExportBomToExcel 2021-03-04 21:30:10 -05:00
aj 3f24020576 Added ItemExtractor 2019-11-24 20:04:54 -05:00
aj 5f5dcabff0 Cleanup in MainForm 2019-11-24 20:02:06 -05:00
aj 0762049b8e Moved GetBomTables to SolidWorksExtensions 2019-11-24 19:58:35 -05:00
aj b207d4c319 Changed drawing regex to static 2019-11-24 19:54:24 -05:00
aj 8224e11afa Notify user if part was not drawn as sheet metal. 2019-09-27 22:32:06 -04:00
aj 1f9dd002be Check for suppressed bends 2019-09-27 22:08:09 -04:00
aj ad8fd08dcf Disable input while running 2018-06-10 19:17:25 -04:00
aj bc2ac5b782 Save file name in excel file. 2018-06-10 19:05:05 -04:00
aj a578af87a3 Changed drawing number pattern to include things like rebuild number following the job number. 2018-06-10 11:49:08 -04:00
aj 1753f75305 Added PreferUpViewFlipDecider 2018-06-10 11:43:13 -04:00
aj 3a313d2409 User selection of viewFlipDecider 2018-06-09 22:37:10 -04:00
aj d2de737ffb Recognize drawing numbers with dash symbol and letters on end. 2018-06-09 21:16:04 -04:00
aj f9fca98fe6 Update file prefix when active document changes. 2018-04-26 20:45:52 -04:00
aj 6888d763b6 Fixed null reference exception when model is null 2018-04-24 21:31:15 -04:00
aj 5c77d376a3 Cleanup 2017-10-16 22:06:24 -04:00
aj 0dbdd4d978 Fixed a mix-up on horizontal and vertical bends. 2017-10-16 22:00:14 -04:00
aj def7c380ee Improved should flip decision. 2017-10-16 21:27:17 -04:00
aj 29677eb705 Updated solidworks blank file. 2017-04-18 14:47:22 -04:00
aj 320e43762a Improved flip view decider. 2017-04-03 09:28:26 -04:00
aj 3622a3a205 Disable solidworks user input while running. 2017-01-25 12:26:29 -05:00
aj a011c61eaf Refactor methods that handle connecting to solidworks. 2017-01-25 12:18:46 -05:00
aj 40a502d829 Find item number column using solidworks columntype property. 2017-01-25 09:36:55 -05:00
aj 3b0af13689 Exclude pfx file. 2017-01-25 09:28:10 -05:00
aj 637caf1fca Fixed file extensions in export solidworks part. 2017-01-23 09:19:34 -05:00
aj 843f6ef1be Add project files. 2017-01-19 22:24:29 -05:00
aj c2a81d0fbd Add .gitignore and .gitattributes. 2017-01-19 22:11:07 -05:00