Exemplo n.º 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"]
Exemplo n.º 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"]
Exemplo n.º 3
0
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()
Exemplo n.º 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"]