Skip to content

Instantly share code, notes, and snippets.

View stephensmitchell's full-sized avatar
💭
NNODESS

Stephen S. Mitchell stephensmitchell

💭
NNODESS
  • NNODESS
  • Earth
View GitHub Profile
@stephensmitchell
stephensmitchell / OFFSET_SKETCH_Parametric .cs
Last active June 8, 2026 05:32
OFFSET SKETCH - Custom Parametric Offset PoC
// Created with AlibreX Genie by Stephen S. Mitchell, https://github.com/stephensmitchell
internal static class Program
{
private const double VertexTol = 0.0000001;
private const double MiterFactor = 8.0;
// =========================
// User inputs - edit these
// =========================
private const string SketchName = "Sketch<1>";

Blog Post Frontmatter Cheatsheet

A reference for everything The Tool Store recognizes at the top of a .md file. Drop a TEMPLATE.md next to this file for a copy-paste starting point.

How the frontmatter is parsed

A post is just a markdown file. The optional frontmatter block at the very top is a YAML-ish header delimited by two --- lines:

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

# created with Alibre Script Genie by Stephen S. Mitchell, https://github.com/stephensmitchell
import clr
import sys
clr.AddReference("System.Windows.Forms")
clr.AddReference("System.Drawing")
clr.AddReference("System.ComponentModel")
from System.Windows.Forms import *
from System.Drawing import *
@stephensmitchell
stephensmitchell / debug-parameters.py
Created February 22, 2026 06:09
Alibre Design parameter debugging
import sys
from AlibreScript.API import *
# Ensure we are using millimeters for script units
Units.Current = UnitTypes.Millimeters
# Create a new part
part = CurrentPart()
# Create parameters (C - Create)
def create_parameters():
# created with Alibre Script Genie by Stephen S. Mitchell, https://github.com/stephensmitchell
import sys
SCRIPT_NAME = "Fix Parameter Type Check (asgenie)"
def printTraceBack():
import traceback
print('\n--------------\n' + str(traceback.format_exc()) + '--------------\n')
@stephensmitchell
stephensmitchell / 1_Alibre Script demos and showcases.md
Last active February 14, 2026 13:52
Alibre Script demos and showcases

Alibre Script demos and showcases

2D Sketch Showcase 1785708902a0807b853cd77debf081ad.md

2DSKETCHPOLYGONTOSPLINETOOL 1885708902a080fdb6dff0567b4bf9c7.md

3D Sketch Showcase 1785708902a080abbf80de769e06e6d0.md

20 Circles 1785708902a080a3b802c178b3f80995.md

@stephensmitchell
stephensmitchell / AlibreObjectModel_Dev.cs
Last active April 21, 2026 10:16
AlibreObjectModel
void Main()
{
Console.WriteLine("=== AlibreObjectModel Version Info ===");
Console.WriteLine($"Assembly Version: {AlibreObjectModel.Version.AssemblyVersion}");
Console.WriteLine($"File Version: {AlibreObjectModel.Version.FileVersion}");
Console.WriteLine($"Informational Version: {AlibreObjectModel.Version.InformationalVersion}");
Console.WriteLine($"Build Timestamp: {AlibreObjectModel.Version.InternalBuildDateTimeStampVersion}");
Console.WriteLine();
{
"Uuid": "2a4c37a1-3206-4b01-bbd9-27229e4f34be",
"IsCustomNode": false,
"Description": "",
"Name": "BASIC-MATH-2",
"ElementResolver": {
"ResolutionMap": {}
},
"Inputs": [],
"Outputs": [],
@stephensmitchell
stephensmitchell / step_to_ifc.py
Created January 1, 2026 17:26
STEP to IFC Converter
#!/usr/bin/env python
"""
STEP to IFC Converter
Uses FreeCAD to convert STEP files to IFC format.
Usage:
step_to_ifc.py <input_step_file> [output_ifc_file]
If output_ifc_file is not specified, the IFC file will be created
in the same directory as the input STEP file with the same name.