Pyrevit: button to turn on/off PyRevit loading at the start

Created on 8 Apr 2020  路  3Comments  路  Source: eirannejad/pyRevit

I am using RTVXporter to publish multiple documents from multiple different files. RTVxporter is capable to launch multiple Revit sessions and run batch process during the night.

During that process all sessions are launching a PyRevit plugin that take an extra 15 seconds to load, after the 3rd consecutive Revit opening PyRevit crashes or got confused generating error messages...
Can be possible to Activate/deactivate PyRevit trough the toolbar to close Revit and not have PyRevit loaded for every session?

Thanks Mate, I admire your work.
AV

Question

All 3 comments

Have you tried something like this?
Do the following to disable add-ins:

  1. Close Revit.
  2. Locate the addin in one of these folders:
    C:\ProgramData\Autodesk\Revit\Addins\
    %appdata%\Autodesk\Revit\Addins\
  3. Temporarily rename the .addin.
    Example:
    Old Name: pyRevit.addin
    New Name: pyRevit.addinoff
  4. Launch Revit. A

Alternate locations that add-ins could be loaded from:
C:\ProgramData\Autodesk\ApplicationPlugins. This location can be used for add-ins that span multiple products/versions.
C:\Program Files\Autodesk\Revit [Version]\AddIns. This location is generally used for Internal Add-ins, but some older add-ins may still try to load into this location.

Borrowed and modified from https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-Disable-Add-Ins-for-Revit-Products.html

Make a batch script, PS script, or a Windows shortcut to the commands below:

Detach (Disable) pyRevit:
pyrevit detach --all

Attach (Enable) pyRevit:
pyrevit attached master 277 --installed

Thanks, That will work... I can add it as start macro at the start of RTVexporter

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pmcmm picture pmcmm  路  3Comments

Arsany123 picture Arsany123  路  4Comments

pihglez picture pihglez  路  4Comments

thumDer picture thumDer  路  4Comments

jmcouffin picture jmcouffin  路  5Comments