architecture-building-systems / revitpythonshell

An IronPython scripting environment for Autodesk Revit and Vasari
MIT License
517 stars 118 forks source link

Revit Python Shell - Doesn't showup on revit ribbon #79

Closed rahulchowdhary closed 6 years ago

rahulchowdhary commented 6 years ago

Hello, i have installed RPS for revit 2018 but it Doesn't shows up on my revit ribbon. Any ideas?? unbenannt

eirannejad commented 6 years ago

Look under Add-ins tab. There should be a Revit Python Shell panel.

PMoureu commented 6 years ago

Hi We need more details to help you out (windows version, what you did exactly...)

Have you multiple accounts on your Windows ? Like an administrator and other simple users ? In this case, check this comment (just replace 2017 by 2018 in the different paths)

rahulchowdhary commented 6 years ago

Hello, I am using Windows 10 pro, Version: 1709 and yes i have multiple accounts as an Administrator and as simple user but i can Access both accounts. So, My RPS is downloaded in _C:\Program Files (x86)\RevitPythonShell2018 and Revit 2018 is in _C:\Program Files\Autodesk\Revit 2018

i tried to copy it in addins located inside revit 2018 Folder but its not working either

Following are all the files extracted after Installation of RPS unbenannt

eirannejad commented 6 years ago

Hmmm. Let me look into this. It might be a path issue since there is no ‘program files’ and it is ‘programme’

rahulchowdhary commented 6 years ago

i think the Problem might be that i am using different Versions of revit?? Do we have RPS Setup for the following revit versions (See pic)

2017 2018

eirannejad commented 6 years ago

Good question. But I think since you already have pyRevit, the Revit LT is capable of loading addons. A quick fix would be to go under %programdata%\Autodesk\Revit\Addins or %appdata%\Autodesk\Revit\Addins, find the RPS.addin file, open in a text editor and correct the DLL path to point to the correct path on your machine.

eirannejad commented 6 years ago

I'll take a look at this over this weekend.

rahulchowdhary commented 6 years ago

Hello, Well it somehow workedout, i copied all the files related to RPS from my %temp% and pasted it into same Directory of my office System in which i couldn't install it properly.

Cheers

jgunstone commented 5 years ago

Hi there,

I'm trying to make the pythonrevitshell work also but nothing relating to pythonrevitshell is appearing in the add-ins tab (as shown here: https://www.youtube.com/watch?v=gC_Vpb527B8)

My Setup: Windows7 Revit2018 installed pyRevit installed

After running the installer (as administrator) a RevitPythonShell2018 folder appeared here: C:\Program Files (x86)\RevitPythonShell2018 image

but nothing got added to the Addins folder: C:\ProgramData\Autodesk\Revit\Addins\2018 image

i also checked the admin installer path: C:\Users\jg.installer\AppData\Roaming\Autodesk\Revit\Addins as suggested by @daren-thomas here https://github.com/architecture-building-systems/revitpythonshell/issues/63 but there was also nothing relating to pythonrevitshell in there either.

any help / guidance greatly appreciated!

cheers

CyrilWaechter commented 5 years ago

@gunstonej So strange to see my 5 years old video again XD.

It looks like for some reason the addin file was not created during the installation. Follow these steps for a quick fix :

  1. Create a file called RevitPythonShell2018.addin
  2. Add following code in it and save it :
    <?xml version="1.0" encoding="utf-16" standalone="no"?>
    <RevitAddIns>
    <AddIn Type="Application">
    <Name>RevitPythonShell</Name>
    <Assembly>C:\Program Files (x86)\RevitPythonShell2018\RevitPythonShell.dll</Assembly>
    <AddInId>3a7a1d24-51ed-462b-949f-1ddcca12008d</AddInId>
    <FullClassName>RevitPythonShell.RevitPythonShellApplication</FullClassName>
    <VendorId>RIPS</VendorId>
    </AddIn>
    </RevitAddIns>
  3. Copy the addin file in your %APPDATA%\Roaming\Autodesk\Revit\Addins\2018. Revit should ask you to load RPS.
jgunstone commented 5 years ago

Hi @CyrilWaechter , its clearly a timeless classic ;)! Thanks very much for the speedy response.

I added the RevitPythonShell2018.addin file: image

Upon opening Revit i was asked if i wanted to load RevitPythonShell to which i said "Always Load".

I then got the following error: image

I naively tried just changing the extension of the code you shared above from .addin to .xml and put it in the location that Revit was pointing at and got the following error: image

.....

CyrilWaechter commented 5 years ago

Please try to place the addin file in %APPDATA%\Roaming\Autodesk\Revit\Addins\2018 rather than in %ProgramData%\Autodesk\Revit\Addins\2018.

AndreyArduino86 commented 4 years ago

What needs to be downloaded, so that RPS2019 appears in the add-in? After installing the RPS2019.exe file, nothing appears in the add-in input.

SergeyBre commented 4 years ago

@CyrilWaechter I'm sure you figured it out already a year ago, but it might be useful for others. I went through the same thing, a colleague of mine helped me to solve it.

  1. Go to C:\Users\username\AppData\Roaming and check if the folder RevitPythonShell2018 is there. If not - create one.
  2. go to: https://github.com/architecture-building-systems/revitpythonshell/tree/master/RevitPythonShell/DefaultConfig and create files with the same name in the folder that you just created (copy everything which is inside of those files).
  3. Run revit - RevitPythonShell should appear under Add-ins tab on the ribbon DefaultConfig
davidvadkerti commented 3 years ago

Thanks, the new path for 2022 version is with one additional subfolder for the version %AppData%\RevitPythonShell\2022