def runcmd(cmd, msg, recallCL=False): if cmd == 'about': #from neocl__funcs import ShowFile #ShowFile("about.txt") import about about.Main() elif cmd == 'atte': from lib.xl import neo_xl_selected_instances as xlinst xlinst.Export(False) elif cmd == 'attep': from lib.xl import neo_xl_selected_instances as xlinst xlinst.Export(True) elif cmd == 'atti': from lib.xl import neo_xl_selected_instances as xlinst xlinst.Import() elif cmd == 'attoxl': from lib.xl import neo_xl_selected_instances_export as xlinst xlinst.GetWb() elif cmd == 'awss': from lib.workset import neo_ws_awss_main elif cmd == 'awssxl': from lib.xl import neo_xl_awss as awss awss.LOG_Worksets() awss.LOAD_Worksets() elif cmd == 'awssuc': from lib.xl import neo_xl_awss as awss awss.UPLOAD_Worksets() elif cmd == 'awssa': from lib.workset import neo_ws_awss_testmode else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'q': pass else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'i++': from lib.incpv import neo_increment_main as ic ic.Main() else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'help': from neocl__funcs import ShowFile ShowFile("readme.txt") else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'backup': from neocl__backup import BackupMyUserFiles BackupMyUserFiles() elif cmd == 'backupr': from neocl__backup import RestoreBackups RestoreBackups() else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'os': from lib.views import neocl_open_schedule_xl as os os.ExportActiveScheduleViewToExcel() elif cmd == 'ov': from lib.views import neocl_views_open as ov ov.OpenSelectedViews() else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'p': from rpw.ui.forms import Alert Alert('Check next versions.', title="neoCL | Printer", header="Not available yet...") #from lib.printer import neo_print_main as printer #printer.Main() else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'ver': import neocl__config as g from neocl__funcs import neoAlert version = 'neoCL version\n' version += g.version + ' ' + g.beta + '\n' + g.date mg = 'Tools :\n\n' mg += '' + g.GetAllToolsstr(' : ', '\n', True) neoAlert(mg, "neoCL", version) else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == '?': from neocl import AlertAllCmds AlertAllCmds() elif cmd == '@': from webbrowser import open_new_tab open_new_tab(r"https://github.com/0neo/pyRevit.neoCL") elif cmd == '#pm.rnc': from neocl__user_options import SetOption_RecallneoCL SetOption_RecallneoCL() else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'cl': from neocl__main import Main Main(True) elif cmd == 'cl.f': from neocl__main import Main Main(False, True) elif cmd == 'cl.m': # Not listed : from neocl__main import Main Main(False) else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'ras': from lib.select import neo_selection_funcs as sel sel.RemoveAnnotationFromSelection() elif cmd == 'rev': from lib.revisions.neo_revisions_main import Export Export() elif cmd == 'revh': from lib.revisions.neo_revisions_main import OpenHowTo OpenHowTo() elif cmd == 'revi': from lib.revisions.neo_revisions_main import Import Import() else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'f': from lib.find import neo_findreplace_main as find find.Main() elif cmd == 'froxl': from lib.xl import neo_xl_type_replacer as tyrep tyrep.GetWb() elif cmd == 'frp': from lib.xl import neo_xl_type_replacer as tyrep tyrep.ImportXl("Project") elif cmd == 'frv': from lib.xl import neo_xl_type_replacer as tyrep tyrep.ImportXl("ActiveView") else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): import imp ipath = GetMainDir() ipath += r"\neoCL.tab\pyRevit Scripts (non-neoCL).panel" if cmd == '_pysv': from rpw.ui.forms import Alert mg = "Can't call it from neoCL, you need to call this script from ribbon." Alert(mg, "non-neoCL Scripts", "pyRevit Sync Views") elif cmd == '_pyst': ipath += r"\SyncViewSum.stack\Sum.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pydh': ipath += r"\smartalign.stack\Distribute.pulldown\Horizontal.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pydv': ipath += r"\smartalign.stack\Distribute.pulldown\Vertical.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pyahc': ipath += r"\smartalign.stack\Horizontal.pulldown\Align Center.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pyahl': ipath += r"\smartalign.stack\Horizontal.pulldown\Align Left.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pyahr': ipath += r"\smartalign.stack\Horizontal.pulldown\Align Right.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pyavc': ipath += r"\smartalign.stack\Vertical.pulldown\Align Center.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pyavb': ipath += r"\smartalign.stack\Vertical.pulldown\Align Bottom.pushbutton\script.py" imp.load_source("py", ipath) elif cmd == '_pyavt': ipath += r"\smartalign.stack\Vertical.pulldown\Align Top.pushbutton\script.py" imp.load_source("py", ipath) else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())
def runcmd(cmd, msg, recallCL=False): if cmd == 'sav': from lib.select import neo_selection_funcs as sel sel.SelectAllInView(['Model', 'Annotation']) elif cmd == 'samv': from lib.select import neo_selection_funcs as sel sel.SelectAllInView(['Model']) elif cmd == 'ssv': from lib.select import neo_selection_funcs as sel sel.SelectSimilar('ActiveView') elif cmd == 'sap': from lib.select import neo_selection_funcs as sel sel.SelectAllInProject(['Model', 'Annotation']) elif cmd == 'samp': from lib.select import neo_selection_funcs as sel sel.SelectAllInProject(['Model']) elif cmd == 'ssp': from lib.select import neo_selection_funcs as sel sel.SelectSimilar('Project') else: from neocl import unknowncmd unknowncmd(cmd, recallCL, getcmdlist())