示例#1
0
def get_system():
    if "RV2.system" not in compas_rhino.sc.sticky:
        form = TextForm('Initialise the plugin first!', 'RV2')
        form.show()
        return None
    return compas_rhino.sc.sticky["RV2.system"]
示例#2
0
def get_proxy():
    if "RV2.proxy" not in sc.sticky:
        form = TextForm('Initialise the plugin first!', 'RV2')
        form.show()
        return None
    return sc.sticky["RV2.proxy"]
示例#3
0
文件: misc.py 项目: compas-dev/compas
def display_text(text, title='Text', width=800, height=600):
    if isinstance(text, (list, tuple)):
        text = '{0}'.format(System.Environment.NewLine).join(text)
    form = TextForm(text, title, width, height)
    return form.show()
示例#4
0
def get_system():
    if "3GS.system" not in sc.sticky:
        form = TextForm('Initialise the plugin first!', '3GS')
        form.show()
        return None
    return sc.sticky["3GS.system"]