Skip to content

Instantly share code, notes, and snippets.

View apsis0215's full-sized avatar

Ron apsis0215

View GitHub Profile
@giobel
giobel / *Dynamo Python snippets*
Last active January 18, 2024 20:44
Dynamo-Python
# collection of Dynamo Python functions.
# credits: archi-lab, MEPover, Bimorph, Clockwork, Rhythm and many more
@gtalarico
gtalarico / revitapidocs_RevitTransactionDecorator.py
Last active August 23, 2022 18:57
RevitAPI::Code Snippets::Revit Transaction Decorator
''' Example of a Transaction Decorator function.
This allows you to create functions that make changes to the revit document
without having to repeat the code to start/commit transactions.
Just add the revit_transaction decorator and a transaction will be started before
your function is called, and then commit after the call.'''
from functools import wraps
from Autodesk.Revit.Exceptions import InvalidOperationException
def revit_transaction(transaction_name):