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 / 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 July 28, 2026 02:43
ALIBRE FORUM POSTS
[
{
"id": "1",
"title": "ALIBRE FORUM POSTS",
"children": [
{
"id": "92535",
"title": "AlibrePosts",
"children": [
{
@stephensmitchell
stephensmitchell / get_treat_as_part_in_BOM_status.py
Created November 28, 2025 00:28
Get TreatAsPartInBOM status
import AlibreScript
def get_treat_as_part_in_BOM_status(assembled_item):
"""Get the TreatAsPartInBOM status of an AssembledItem.
Args:
assembled_item: The AssembledPart or AssembledSubAssembly object
Returns:
True/False for the TreatAsPartInBOM status, or None on error
"""
try:
Root = AlibreScript.API.Global.Root
@stephensmitchell
stephensmitchell / _test-if-suppressed-simplified.py
Last active November 26, 2025 05:21
Is a component suppressed? Suppression Status Report
import AlibreScript
from AlibreScript.API import *
Asm = Assembly(CurrentAssembly().Name, False)
Session = AlibreScript.API.Global.Root.TopmostSession
print "Suppression Status: %s\n" % Asm.Name
for item in list(Asm.Parts) + list(Asm.SubAssemblies):
occ = item.GetMappedOccurrence(Session)