Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install to Revit 2018.3.1.2 #82

Open
dmscholten87 opened this issue Jul 17, 2018 · 16 comments
Open

Can't install to Revit 2018.3.1.2 #82

dmscholten87 opened this issue Jul 17, 2018 · 16 comments

Comments

@dmscholten87
Copy link

Hello,

I've download the RevitPythonShell Package and install it on my computer.
Now there are files on my "AppData\Roaming\RevitPythonShell2018"

  • init.py
  • startup.py
  • RevitPythonShell.xml

And there is a folder on "C:\Program Files (x86)\RevitPythonShell2018" with multiple *dll files.

Now i missing de *addin files and can't find them anywhere. What i'm doing wrong?

I use W10 and Revit 2018.3.1.2.
I had installed 2017.07.24_Setup_RevitPythonShell_2018.msi.

@CyrilWaechter
Copy link
Contributor

Hello,

I don't know why you don't have addin files installed but if you want to make addin file yourself manually. A typical addin file for RPS looks like this :
RevitPythonShell2018.addin

<?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>

This addin file is placed in :

  • For a all user install : %ProgramData%\Autodesk\Revit\Addins\2018
  • For user install : %AppData%\Autodesk\Revit\Addins\2018

@dmscholten87
Copy link
Author

Thx now it will show the button on the ribbon.

But when i add the script with the configure mode and restart Revit i get the next error.

image

I don't know what i doing wrong.

@dmscholten87
Copy link
Author

I've pyRevit on my computer but the systemmanager blocked some in and outcomming data.
So i can't install RevitMEP direct from the 'extension' button.
Is there an another method to install it to pyRevit if RevitPythonShell doesnt work?

@CyrilWaechter
Copy link
Contributor

CyrilWaechter commented Jul 18, 2018

pyRevit and RevitPythonShell (RPS) are completely independent. As I see it, RPS is a very good way to test, explore Revit and its API, I was using it to deploy my script before pyRevit became so great for this use.

To manually install pyRevit check Manual Installation on pyRevit section on this page : https://eirannejad.github.io/pyRevit/installation/
Video inside from @eirannejad explains well how to proceed with a manual install.

@dmscholten87
Copy link
Author

I know that it is completely independent but maybe you know a how to :)

I have pyRevit installed but i want the addin RevitMep on pyRevit manual installed.

@CyrilWaechter
Copy link
Contributor

For pyRevitMEP process is the same (as explained in pyRevit link from my previous comment) . If you struggle at some point, tell me, but you may open a separate issue on pyRevitMEP repo to not pollute RPS bug tracker on subject not related to it.

@dmscholten87
Copy link
Author

Oke thank you i'm gonna look to the link...

@mdengusiak
Copy link

@CyrilWaechter
I think I might solve this problem I got feeling that we share the same issue.
Here are my steps..
I installed :
2017.07.24_Setup_RevitPythonShell_2018.exe
but this is applicable to any version.

I am using company laptop and do not have admin rights so to install I need run as admin and need to type my admin login which is different from my normal user.
I noticed that I was missing all python and nothing was loaded in Revit.
I realized that some files were installed under "admin" account but even for this account not all was correct bacause folder structure was missing.
I only had this:
Admin %AppData%\Roaming\Autodesk

So here we have steps:

  1. add Revit, Addins, 2018 folders so final structure is like this under you admin account
    Admin %AppData%\Roaming\Autodesk\Revit\Addins\2018

  2. then I installed again Run As Amin...
    2017.07.24_Setup_RevitPythonShell_2018.exe

and now could see in
Admin %AppData%\Roaming\Autodesk\Revit\Addins\2018
my RevitPythonShell2018.addin

  1. I copy this RevitPythonShell2018.addin back to my user folder:
    %AppData%\Roaming\Autodesk\Revit\Addins\2018

  2. I also copied whole folder from:
    Admin AppData\Roaming\RevitPythonShell2018
    into my user AppData\Roaming\RevitPythonShell2018

ok all transferred to my standard user account and now can open Revit:

the only warning I have with this method is this:
image

please let me know if this worked? it took me a while to figure it our

@VBScab
Copy link

VBScab commented Mar 29, 2019

I don't know why you don't have addin files installed

For anyone coming here in frustration like I did...

The reason is that the brain-dead installer doesn't copy in the .addin file unless the target folder is present so, for each version, before running the installer, just create "%AppData%\Autodesk\Revit\Addins\201[x]" (where [x] is the last digit of the Revit version) then be sure to run the installation as admin, even if you're logged in with an account which has Administrator-level privileges.

That gets you the .addin file which you can then move/install to "%ProgramData%\Autodesk\Revit\Addins\201[x]" which pretty much every other add-in under the sun uses.

I need to experiment to see if the folder containing the 2 .py files and the .XML file can be moved to %ProgramData% too but, again, most add-ins are happy there.

@daren-thomas
Copy link
Member

@VBScab you're right, the installer is brain-dead! Do you have experience writing installers? Would you like to help improve the situation? We could also move to another installer technology (NSIS is one i've started liking recently in another project)...

@VBScab
Copy link

VBScab commented Apr 3, 2019

There's no need to change installer technology, although as an application packager of too many years, I'd recommend avoiding NSIS: corporates don't like it much. Use Windows Installer/MSI. For your purposes, there's no need for sophisticated MSI authoring tools - use the Wix toolset.

All you need to do is add some detection of the installed Revit version (documented on Autodesk's site) and have the installer you have create the target folder.

@daren-thomas
Copy link
Member

@VBScab would you like to help?

@VBScab
Copy link

VBScab commented Apr 3, 2019

Tricky, as I don't use Wix myself nor do I know which installer technology you currently use.

@daren-thomas
Copy link
Member

I think we're currently using InnoSetup. I've used WiX before, but if I remember correctly, it has a steep learning curve...

@VBScab
Copy link

VBScab commented Apr 3, 2019

steep learning curve

Yup. That's why I don't use it! :-) I seem to recall that someone put together a GUI for it, though.

Inno Setup

I come across quite a few packages which use this. You can write scripts for this, right? In VCL, is it? I can't remember - it's years since I looked at these.

@eirannejad
Copy link
Contributor

@daren-thomas @VBScab I'm using AdvancedInstaller for pyRevit and the GUI is really helpful. I have not tested it for automatic builds tho. They give out free licenses for open-source projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants