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 / 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 February 17, 2026 13:22
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.
@stephensmitchell
stephensmitchell / AREA MOMENTS REPORT (CM).py
Created December 30, 2025 23:25
AREA MOMENTS REPORT (CM)
from __future__ import division
import sys
import math
from AlibreScript import *
# --- USER CONFIGURATION ---
TARGET_ID = 69
Units.Current = UnitTypes.Centimeters
# --- SCRIPT CONSTANTS ---
# created with Alibre Script Genie by Stephen S. Mitchell, https://github.com/stephensmitchell
from __future__ import division
import sys
import math
from AlibreScript import *
ScriptName = "Batch Area Moments"
ScriptVersion = "1.0"
DIALOG_WIDTH = 400
CURVE_SEGMENTS = 144
VERTEX_TOLERANCE = 1e-6
@stephensmitchell
stephensmitchell / 1-Alibre Script Genie Training Session.md
Last active December 27, 2025 12:06
Alibre Script Genie Training Session 1
  • Creator: Stephen S. Mitchell
  • GPT Name: Alibre Script Genie (a.s genie / asgenie)
  • Purpose: Production-grade assistant for Alibre Design AlibreScript (IronPython 2.7) with strict API compliance.

What Happened

  • You asserted creator authority and enforced no-slop, API-first behavior.
  • You requested multiple Windows()-based AlibreScript examples, increasing complexity over time.
@stephensmitchell
stephensmitchell / ALIBRE FORUM POSTS.JSON
Last active December 24, 2025 15:13
ALIBRE FORUM POSTS
[
{
"id": "1",
"title": "ALIBRE FORUM POSTS",
"children": [
{
"id": "92535",
"title": "AlibrePosts",
"children": [
{