ToolTip and LongDescription is only available when initialized as a Startup script as far as I know. But this also enables a host of other Ribbon upgrades aswell - here is our current suite, all built on RPS and initialized via a Startup script:
--
You received this message because you are subscribed to a topic in the Google Groups "RevitPythonShell" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/revitpythonshell/tzTbmNRQicg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to revitpythonshe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/revitpythonshell/8c0c454d-7f4d-40ff-8feb-94aab643197c%40googlegroups.com.
Callum, thanks for the reply. All the stuff you suggested I’ve been through and through. Here was the problem:
I wanted to make my own Tab using the startup script, not have it go into the Addins tab. Every example just had this:
panel = __uiControlledApplication__.CreateRibbonPanel("New Ribbon Panel")
After digging in the Revit API docs, I fumbled through it and finally got it to work like this:
def create_ribbon_panel():
mytab = __uiControlledApplication__.CreateRibbontab("New Tab")
panel = __uiControlledApplication__.CreateRibbonPanel(“New Tab”, "New Ribbon Panel")
Note: the highlighted line above being the key to what I was looking for. Was that documented somewhere that I missed?
That’s what I was asking, is that how you did yours (to get it into its own tab)? Are you installing RPS on each computer and pointing to a startup script, or are you creating an installer (Exe file) that has an RPSAddIn Manifest file that points to the startup script?
Just trying to figure out which is the common/best practice (if any).
Thanks once again,
Dave
--
You received this message because you are subscribed to a topic in the Google Groups "RevitPythonShell" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/revitpythonshell/tzTbmNRQicg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to revitpythonshe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/revitpythonshell/f9bf6339-a4f9-4237-b6ef-5c6c4fc5f491o%40googlegroups.com.
Callum,
I have an addin that works fine. I also have a startup script that creates my own menu tab (defined in Configure RevitPythonShell, under Startup Script) and that works great also.
What I’m trying to do, with no success, is create an Executable file (using Inno Setup Compiler, similar to the way I made the addin) that references a Startup Script to define of my buttons.
I think that is what this portion is saying, correct?
I can’t seem to understand what he wants the contents of Helloworld.py and good_morning_world.py to be. I assume the good_morning_world.py is the file that defines all of my buttons (startup script), and the Helloworld.py is what is defined to create the Class in the DLL. Do you know, or have an example, of how these two files relate and what their contents are? I think that’s where I’m getting stuck, unless I’m misunderstanding what it can actually do.
Any help pushing me forward would be greatly appreciated. My end goal is to have an EXE to load on all end users computers that will give them the menu tab without installing RPS on their computers.
Am I making any sense??? Thanks again!!!
From: <revitpyt...@googlegroups.com> on behalf of Callum <his...@gmail.com>
Reply-To: <revitpyt...@googlegroups.com>
Date: Sunday, June 21, 2020 at 5:20 PM
To: RevitPythonShell <revitpyt...@googlegroups.com>
Subject: [revitpythonshell] Re: External application on PC without RPS
Hi David, Im keen to help.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/revitpythonshell/48935293-CE83-48F8-B053-D1709265D26A%40gmail.com.
Callum, good morning to you – but wherever you are, it may be goodnight!
I’ll process this info (which most of it makes perfect sense and is the direction I’m going) and let you know how it goes. Some of the stuff you’ve done to automate is interesting, and to be honest, probably above my pay grade right now. Baby steps!
Thanks again for all of your help, it’s greatly appreciated!
Dave
To view this discussion on the web visit https://groups.google.com/d/msgid/revitpythonshell/CAEgOeOwzwMd9VS3JxUYhRPORGxnsB4r3tSKo%3DR%2ButKZP2WiOXg%40mail.gmail.com.