Announcement

Collapse
No announcement yet.

Live Revit help, inside of Revit!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Live Revit help, inside of Revit!

    Well.. kinda. I mean, it's technically still a browser window, but it shows up as a Revit 2012 window on the taskbar. This is not a way around sneaky IT or anything like that, but it is fun to play with! This is pretty much verbatin from my site: RevitTotD Chat.. INSIDE OF REVIT! Obviously minus the inline images. However, I have tried to attach the images in an order in which they are referenced. Here goes! For a little RFO bonus, be sure you read all the way to the bottom.



    Well, kinda. It uses a webInterface which is basically a .net wrapper for Internet Explorer. This bit of code was made by joseguia over at RevitForum.org and I am eternally thankful for it! Here's a quick tutorial on how to set it up. The advantage of this is that it is actually a Revit window, so it is one step closer to actually working instead of having Internet Explorer open (although technically you still have IE open by running this macro).

    http://revittotd.com/revit/video/RevittotdIRCMacro.swf
    1. In Revit, go to the Manage Ribbon > Macro Panel > Manage Macros
      Image1
    2. Click Application tab at the top. This ensures you have the Macro anytime you open Revit.
    3. On the right of the Macro Manager, under Create, click Module.
      Image2
    4. Name this new module appropriately, I named it RevitChat, and choose VB.NET for the language. Give it a good description like a responsible programmer.
      Image3
    5. You could just edit this and call it a day, but I'll have another tutorial later this week for another chat room that you can do the same thing with! So instead, select the Module you just created and then choose Create > Macro on the right. This time you are creating one little program for our Module.
      Image4
    6. Name this something like the following, and be sure you have "Macro In:" set to the module you just created.
      Image5
    7. Clicking OK will launch the VSTA interface. DON'T PANIC! It gets easier from here.
    8. Add a Window Form. (Project > Windows Form)
      Image6
    9. Name it frmRevitTotDChat, click Add.
      Image7
    10. From the Toolbox on the left, add a Toolbox > All Windows Forms > Web Browser. (If the toolbox isn't showing, click View > Toolbox) Do this by simply dragging the Web Browser into the form you just made. You know it has added if you see a scroll bar in your form now and a white instead of a grey .
      Image8 Image9
    11. Double click the Title bar that says "frmRevitTotDChat" and the code view will open. Make you code look like this:
      Code:
      Public Class frmRevitTotDChat
        Private Sub frmRevitTotDChat_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          WebBrowser1.Navigate("http://gibsonhh.info:9090/?nick=YOURNICKHERE&channels=Revit")
        End Sub
      End Class
      Image10
    12. Go to the ThisApplication.vb tab and find the line that start with "Public Sub RevitTotDChat()" and make it look like this:
      Code:
      Public Sub RevitChat()
      Dim myFrm As New frmRevitChat
      myFrm.Show()
      End Sub
      Image11
    13. Run the Macro, Hit Stop, Close VSTA.
      Image12
    14. Double click your new macro. See you in chat!
      Image13


    Now, there are a couple of issues with this. Any command key (ie: shift, tab, delete, etc) that you have set up as a Shortcut Key will not work in the text input but instead will try to start the revit command it is tied to. This includes Ctrl+C and Ctrl+V for copy pasting, but you can still use right click copy/paste method. Enjoy!



    Now, if you want some additional fun, change the URL to point to Revit Forum - Revit, BIM, Architecture & Engineering. and browse RFO from within Revit! Especially fun when you switch to Mobile Style! Enjoy and let me know if you have any questions!
    Attached Files
    .Carl - Architect, BIM Manager, Father, Husband, Coach, Player, Disc Tosser, Driver... not necessarily in that order.

    Free Revit Chat | Cre8iveThings Blog | Live Architecture! | Past Live Architecture!

    #2
    Yep, Ive used this its kinda cool to have. +rep
    -Alex Cunningham

    Comment


      #3
      In regards to the RFO forum inside this browser window. It looks like popups do not work and that there are some scripting errors as well, most likely in result to how the browser is identifying itself to the server through this .NET window.
      .Carl - Architect, BIM Manager, Father, Husband, Coach, Player, Disc Tosser, Driver... not necessarily in that order.

      Free Revit Chat | Cre8iveThings Blog | Live Architecture! | Past Live Architecture!

      Comment

      Related Topics

      Collapse

      Working...
      X