Skip to content

Instantly share code, notes, and snippets.

View thekaushikls's full-sized avatar
🤖
machina automatica

Kaushik thekaushikls

🤖
machina automatica
View GitHub Profile
@thekaushikls
thekaushikls / gh_autoload.py
Last active April 13, 2022 07:01
open gh file on startup
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Usage: gh_autoloaded.py
This script attempts to load a grasshopper(.gh) file if it shares the same name as the current
rhino(.3dm)file, and is placed in the same directory.
Note:
This script uses the RhinoCommon library to locate the current ActiveDocument.
@thekaushikls
thekaushikls / build_module.py
Last active March 8, 2024 05:02
compile .py to .dll
#!/usr/bin/env ipy
# -*- coding: utf-8 -*-
"""
This script collects all python scripts (.py) from the project (including sub-folders) and compiles them into a dynamic link library (.dll) file. File will be placed inside the 'bin' folder. Place this file in the root directory of a project, prior to execution.
Note:
This script uses the Common Language Runtime Library (CLR). Use IronPython for execution.
Download IronPython 2.7.9 from https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.9