Announcement

Collapse
No announcement yet.

External command works on one pc and not on other

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

    External command works on one pc and not on other

    Hi Guys,

    I am in a very strange scenario. I have developed a plugin using Revit2012 API + 64bit + Win7 and works fine on my pc and others in our studio.
    When I share the same plugin with someone outside of our company it doesn't work. They can see in the External Tool drop down and the .dll is registered too (meaning they can't delete it while Revit is running).

    To investigate this, I compiled OOTB "Hello Revit" on my pc tested on my pc. It worked fine. I sent the same .dll and .addin to them and "Hello Revit" doesn't work either.

    Any idea why this would happen?

    Thanks in anticipaiton.

    R
    Pfaulder | London, UK

    #2
    DO they get any error messages at all?

    Are you sure in the process of the DLL being sent to them that it hasn't become locked?

    Just a thought?
    Phillip Miller
    Kiwi Codes Solutions Ltd
    Makers of "Family Browser" and "Project Browser" for Revit.

    Comment


      #3
      Are you compiling for .NET3 or .NET4?
      .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


        #4
        Thanks Phillip and Revittotd for your quick responses.

        There is no error message so difficult to investigate. to help investigate I added some Show.messages at IExternalcommand entry point and each key loops. I can see them when I run it on my pc but when they run it it doesn't even show IExternalCommand entry point Show.message..but there is no error message either so hard to investigate. Never came across this type of issue. DLL being locked is a good point..didn't think about it. I will check with them. But how would that happen? I am sending via .zip file.


        Revittotd,
        I compiled .NET 3.5 and 4.0 both and check with them that they have .NET 4.0 installed etc..and they have exactly same setup i.e. Revit 2012 WU2/64bit/Win7.

        R
        Pfaulder | London, UK

        Comment


          #5
          Phillip,

          Your spot on. It was blocked. Unblocking resolved it. Thanks very much.
          Pfaulder | London, UK

          Comment


            #6
            Originally posted by pfaudler View Post
            Phillip,

            Your spot on. It was blocked. Unblocking resolved it. Thanks very much.
            I'm glad I could help. It is a little strange that they didn't get any error messages on Revit startup though??

            Cheers

            Phillip
            Phillip Miller
            Kiwi Codes Solutions Ltd
            Makers of "Family Browser" and "Project Browser" for Revit.

            Comment


              #7
              Originally posted by KiwiCodes View Post
              I'm glad I could help. It is a little strange that they didn't get any error messages on Revit startup though??

              Cheers

              Phillip
              FWIW this is the correct behaviour: it never gives an error message... (got me :banghead: a few days once before figuring it out)
              Basically the solution to prevent this: zip before sending by email... It's actually blocked on download from your mail server.
              Martijn de Riet
              Professional Revit Consultant | Revit API Developer
              MdR Advies
              Planta1 Revit Online Consulting

              Comment


                #8
                Originally posted by mdradvies View Post
                Basically the solution to prevent this: zip before sending by email... .
                Are you sure about this. I'm pretty sure I have sent Zipped up DLLS to poeple and they are still locked.???
                Phillip Miller
                Kiwi Codes Solutions Ltd
                Makers of "Family Browser" and "Project Browser" for Revit.

                Comment


                  #9
                  Correct, Phillip. In fact the .dll in my case was zipped (using win7 ootb zip tool) before exchanging numerous times...and it never worked before figuring out this unblocking issue..strange.
                  Pfaulder | London, UK

                  Comment


                    #10
                    And explained in detail here:

                    The Building Coder: Revit Add-in File Load Exception
                    Phillip Miller
                    Kiwi Codes Solutions Ltd
                    Makers of "Family Browser" and "Project Browser" for Revit.

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X