Hi,
I’m trying to crawl a bunch of models, previous the following code would work in a Jupyter notebook, but now it doesn’t…?
for year in years:
command = f"""pyrevit run "X:/01_Python/pyrevit/model_crawl.py" --revit={year}"""
os.system(command)
Trying pyrevit run "X:/01_Python/pyrevit/model_crawl.py" --revit=2021 in CMD does not work either: Error: Model does not exist at "" Run with "--debug" option to see debug messages
Looking at the help pyrevit run --help the command should still be available?:
Usage:
pyrevit run (-h | --help)
pyrevit run commands
pyrevit run <script_or_command_name> [--revit=<revit_year>] [--purge] [--allowdialogs] [--import=<import_path>]
pyrevit run <script_or_command_name> --models=<model_list_file> --revit=<revit_year> [--purge] [--allowdialogs] [--import=<import_path>]
`
hi,
does the model_crawl.py takes care of providing a list of models or do the crawling itself?
Because if not, you seem to be missing the --models=<model_list_file> argument of the pyrevit run command
It does, it reads a CSV file with filepaths and loops through the filepaths starting with the OpenAndActivateDocument and extract data and metadata about the model… or it did about a year ago. :-/
okay … it was optional then … it should still be according to --help … pyrevit run <script_or_command_name> [--revit=<revit_year>] [--purge] [--allowdialogs] [--import=<import_path>]
Can you try to specify revit version move accurately? I mean --revit=2021.1.4 or sth like this. I think I had similar problem (not the same, but still worth tryin) Cli revit version bug or feature