This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
import sys | |
import re | |
import System | |
clr.AddReference('ProtoGeometry') | |
from Autodesk.DesignScript.Geometry import * | |
import Autodesk.DesignScript.Geometry as DS | |
#import Revit API | |
clr.AddReference('RevitAPI') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from . import music_importer | |
sys.meta_path.append(music_importer.MusicImporter) | |
# このモジュールでimport sysされているため、必ずsys.modulesにsysはある | |
sys.modules['sys'] = sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventHook(object): | |
def __init__(self): | |
self.__handlers = [] | |
def addHandler(self, handler): | |
self.__handlers.append(handler) | |
def removeHandler(self, handler): | |
self.__handlers.remove(handler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
clr.AddReference("PresentationFramework") | |
clr.AddReference("PresentationCore") | |
from System.Windows import Window, Application | |
from System.Windows.Markup import XamlReader | |
from System.IO import File, Path | |
class XamlWindow(Window): | |
def __init__(self, name): |