U225X PUBLIC-SAFE CONVERSATION NOTE RECORD: CHAT-0186 TOPIC: FreeCAD Anchor Plate Macro IMPORTED: 2026.03.08 This note was generated from a matching conversation in the supplied ChatGPT export. EXTRACTED REQUEST: write me a macro for FreeCAD 1.0.2 that creates a plate like an anchor plate but I want a dialog box that prompts me to put in the length, width, thickness, hole size, and edge spacing. typically I want the part to have 4 holes near each corner spaced whatever I have as the edge distance RECOVERED CONVERSATION EXCERPTS USER MESSAGES: 1. write me a macro for FreeCAD 1.0.2 that creates a plate like an anchor plate but I want a dialog box that prompts me to put in the length, width, thickness, hole size, and edge spacing. typically I want the part to have 4 holes near each corner spaced whatever I have as the edge distance 2. I forgot I also want it to create a save and use the length, width, thickness and hole size as the filename. example filename would be BP6.000X6.000X.250X.5625 i need it to also export an stl. the save directory should be this C:\AI\FCstd and the export directory should be this C:\AI\STL ASSISTANT RESPONSES: 1. Here’s a FreeCAD macro for FreeCAD 1.0.2 that opens a dialog and asks for: - length - width - thickness - hole diameter - edge spacing Then it creates a rectangular plate with 4 corner holes offset by your edge distance. FreeCAD 1.0 is the current major release line, and macros can use Python with Qt dialogs and standard document objects, which is what this script does. [embedded media omitted] [code excerpt omitted] How to use it In FreeCAD: 1. Open Macro → Macros 2. Click Create 3. Name it something like `AnchorPlateMaker` 4. Paste the code 5. Save 6. Run the macro What it makes - Plate is centered on X/Y origin - Thickness extrudes upward in +Z - Holes are placed at: - `edge spacing` from the left/right edg… 2. Yep — here’s the revised macro. It now does all of this: - prompts for Length, Width, Thickness, Hole Diameter, Edge Spacing - creates the plate with 4 corner holes - builds the filename like `BP6.000X6.000X.250X.5625` - saves the FreeCAD file to `C:\AI\FCstd` - exports the STL to `C:\AI\STL` I also made the filename formatting behave the way you showed: - numbers under 1 drop the leading zero - `0.250` → `.250` - `0.5625` → `.5625` - whole numbers stay like `6.000`. [code excerpt omitted] What the filenames will look like Examples: - `6 x 6 x .25 with .5625 hole` → `BP6.000X6.000X.250X.5625` - `8 x 10 x .375 with .75 hole` → `BP8.000X10.000X.375X.750` Where the files go - FreeCAD file: `C:\AI\FCstd\BP6.000X6.… EXTRACTED KNOWLEDGE / HOW-TO - length - width - thickness - hole diameter - edge spacing - Open Macro → Macros - Click Create - Name it something like `AnchorPlateMaker` CONVERSATION SHAPE: 2 user turns / 2 assistant turns ATTACHMENTS DETECTED: 4 Raw transcripts, private details, exact locations, account information, employer/customer-confidential material, and restricted software references are not published in this note. PROPERTY OF U225X / PUBLIC-SAFE IMPORT