Announcement

Collapse
No announcement yet.

VID - really explode in REVIT

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

    VID - really explode in REVIT

    .. so I posted about a prank about making the explode command in CAD play a sound through lisp and someone joked about doing it in revit .. I figured I'd give it a shot!

    I can wrap it into a plugin if anyone is even remotely interested, .. otherwise .. here is the code to make it tick .. and a sample video as proof LOL!



    you gotta know the API (vb.net style)..

    add a handler on startup:
    Code:
    AddHandler Me.Application.DocumentChanged, AddressOf ThisApplication_DocumentChanged
    and shut down to keep things tidy:
    Code:
    RemoveHandler Me.Application.DocumentChanged, AddressOf ThisApplication_DocumentChanged
    and the code:
    Code:
        Private Sub ThisApplication_DocumentChanged(ByVal sender As Object, ByVal args As Autodesk.Revit.DB.Events.DocumentChangedEventArgs)
            If args.GetTransactionNames(0) = "Explode Import Instance" Then
                My.Computer.Audio.Play("C:\Temp\explode1.wav")
            End If
        End Sub
    Last edited by joseguia; May 27, 2011, 04:21 PM.
    bim cad tech com

    #2
    Good stuff LMAO!!! Rep for you.
    -Alex Cunningham

    Comment


      #3
      Bloody brilliant. Gonna propose we implement under the auspices of the QA Committee. Now if only there was a way to get Revit to say "Wahnt waaaaahhh" when someone drafts when they should be modeling. Or perhaps "Are you sure that's a good idea?" in a really condescending voice.

      Gordon
      Pragmatic Praxis

      Comment


        #4
        LOL .. "I'm sorry Dave, .. I can't do that"
        bim cad tech com

        Comment


          #5
          Is that all there is to it? *rubs chin thoughtfully* how hard would it be to get the code to randomly choose between 3 .wav 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!

          Comment


            #6
            Originally posted by revittotd View Post
            Is that all there is to it? *rubs chin thoughtfully* how hard would it be to get the code to randomly choose between 3 .wav files?
            The code is simple in and of itself, however you still have to wire it up.

            Random file access is doable, but not as easy as one would think.
            bim cad tech com

            Comment


              #7
              Could you have it send a e-mail to the CAD Manager telling them they this person just exploded somthing in the model?
              -Alex Cunningham

              Comment


                #8
                yup.. LOL. the skys the limit.
                bim cad tech com

                Comment


                  #9
                  People would buy a e-mail notification app for sure!!!
                  -Alex Cunningham

                  Comment


                    #10
                    Alex, can I just say that your signature has been making my OCD go nuts since I saw it...

                    http://en.wikipedia.org/wiki/Baz_Luhrmann
                    http://en.wikipedia.org/w/index.php?...ch=baz+luthman

                    xD
                    .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