RevitPythonShell installer for Revit 2020

118 views
Skip to first unread message

Coen Claus

unread,
Jan 22, 2020, 4:34:34 AM1/22/20
to RevitPythonShell
Will there be an installer for Revit 2020?

Daren Thomas

unread,
Jan 22, 2020, 7:20:11 AM1/22/20
to RevitPythonShell

Coen Claus

unread,
Mar 2, 2020, 7:42:46 AM3/2/20
to RevitPythonShell
Thanks, I've created a simple script which opens the file location folder,

When I deploy the add-in with the RpsAddin, it all works. By start-up on Revit I get this message: See attached image.
Which is strange, because the tool works fine...Also when I check the message-box 'Do not show this message again'. It pops up the next time.

It's an extremely simple python script

import clr
import os


clr
.AddReference("RevitServices")


import RevitServices
from RevitServices.Persistence import DocumentManager




#app = __revit__.Application
doc
= __revit__.ActiveUIDocument.Document
view
= doc.ActiveView


print doc.PathName


#print doc.GetCloudModelPath()
#print doc.GetWorksharingCentralModelPath()


head
, tail = os.path.split(doc.PathName)


os
.startfile(head)

Googling it give me this
I am completely clueless about C#.
So in short my question is, how to get rid of this message Revit gives?

Op woensdag 22 januari 2020 13:20:11 UTC+1 schreef Daren Thomas:
external_tool_failure.png

Coen Claus

unread,
Mar 2, 2020, 8:03:41 AM3/2/20
to RevitPythonShell
And here is what the .addin looks like :

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<RevitAddIns>
<AddIn Type="Application">
   
<Name>Basic BIM Checker Open Folder</Name>
 
<Assembly>path\openfolder_deployment.dll</Assembly>
   
<FullClassName>openfolder_deployment</FullClassName>
   
<Text>openfolder_deployment</Text>
   
<Description>openfolder_deployment</Description>
   
<VisibilityMode>AlwaysVisible</VisibilityMode>
   
<AddInId>a694f098-20d5-42c2-a8a0-ac7ae6857c25</AddInId>
   
<VendorId>Basic BIM Checker Open Folder</VendorId>
   
<VendorDescription>Basic BIM Checker Open Folder</VendorDescription>
 
<LongDescription>
 Basic BIM Checker Open Folder
 
</LongDescription>
 
</AddIn>
</RevitAddIns>


Op maandag 2 maart 2020 13:42:46 UTC+1 schreef Coen Claus:

Callum

unread,
Jun 21, 2020, 5:24:02 PM6/21/20
to RevitPythonShell
Hi Coen, Im late to the party - did you manage to get this working?
Reply all
Reply to author
Forward
0 new messages