Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By MPwuzhere

Thread: My add-in application (VB .net) doesn't appear on addins>external tools

  1. #1
    Junior Member
    Join Date
    September 14, 2018
    Location
    Lisbon
    Posts
    13
    Current Local Time
    05:16 PM

    My add-in application (VB .net) doesn't appear on addins>external tools

    My add-in application (VB .net) doesn't appear on addins>external tools







    I just started creating a simple add-in application in VB .net for Revit 2019 by following the tutorial:
    https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2014/EN... (from Apr 18 2014).

    I have completed all steps successfully, however, my add-in application doesn't appear on addins>external tools.

    I took a look at:
    https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/my-fi...
    only to realize it's for C# and cannot help me.

    Here I found possible reasons to why this may be hapening:
    Help


    "However, in some cases, an add-in application may fail to load without any message. Possible causes include:

    • The add-in application is compiled with a different RevitAPI version
    • The manifest file is not found
    • There is a formatting error in the .addin manifest file"


    I still don't understand what might be the problem. I tried to check all 3:

    • I don't think the first point is the issue, but I don't know how to check which RevitAPI version I am using ? I pretty sure I used the correct RevitAPI.dll and RevitAPIUI.dll from the correct path: C:\Program Files\Autodesk\Revit 2019
    • How do I know if the manifest file has not been found? I saved it on the path that the tutorial says to save it: C:\ProgramData\Autodesk\Revit\Addins\2019
    • I cannot be sure if there is a formatting error in the .addin, but i copy and pasted it carefully to be sure, just changed the path of the .dll and the Class name (see attached printscreen)


    Any help would be appretiated.


    Revit Version: Full Version of Autodesk Revit 2019
    Windows version: 10 Pro
    Processor: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
    RAM: 32GB

    Attached Thumbnails Attached Thumbnails My add-in application (VB .net) doesn't appear on addins>external tools-references.png   My add-in application (VB .net) doesn't appear on addins>external tools-external-tools.png   My add-in application (VB .net) doesn't appear on addins>external tools-hello-world.png  

  2. #2
    The Moderator with No Imagination MPwuzhere's Avatar
    Join Date
    December 14, 2010
    Location
    Coeur d Alene, ID
    Posts
    4,484
    Current Local Time
    08:16 AM
    When you compile your dll, be sure it is using .NET 4.7

    2015/16 uses .NET 4.5, 2017/18 uses .NET 4.6 as an FYI...
    ritaaguiar likes this.

  3. #3
    Junior Member
    Join Date
    September 14, 2018
    Location
    Lisbon
    Posts
    13
    Current Local Time
    05:16 PM
    Quote Originally Posted by MPwuzhere View Post
    When you compile your dll, be sure it is using .NET 4.7

    2015/16 uses .NET 4.5, 2017/18 uses .NET 4.6 as an FYI...
    Thank you. I am sure I am using the correct .NET 4.7

  4. #4
    Junior Member
    Join Date
    September 14, 2018
    Location
    Lisbon
    Posts
    13
    Current Local Time
    05:16 PM
    It's working! Thank you for your help.

  5. #5
    The Moderator with No Imagination MPwuzhere's Avatar
    Join Date
    December 14, 2010
    Location
    Coeur d Alene, ID
    Posts
    4,484
    Current Local Time
    08:16 AM
    Also check the security tab of your dll's properties....Windows likes to flag them as a security risk and you have to manually allow it to work.

    I'm not the greatest for how to create an add-in...but I stayed at a Holiday Inn Express last night.... (kidding)

    Troy Gates had a great class at BiLT NA last month and his class was how to create an add-in. I was comparing what you did to his handout.

  6. #6
    Junior Member
    Join Date
    September 14, 2018
    Location
    Lisbon
    Posts
    13
    Current Local Time
    05:16 PM
    However, now I'm getting another error:

    Failed to initialize the add-in "HelloWorld" becvause the class "HelloWorld" cannot be found in the add-in assembly.
    The FullCassName provides the entry point for Revit to call the add.in application. For Revit to run the add-in, you must ensure this class implements the "Atuodesk. Revit.UI.IExternalCommand" interface.

    I am sure I am implementing the IExternalCommand. What I am not sure is about the FullClassName. I think I might not have it right. What should I write? (See the attached file "Hello World.png" where you can see the manifest).

  7. #7
    Member feio's Avatar
    Join Date
    December 13, 2010
    Location
    Decadent Lisbon
    Posts
    443
    Current Local Time
    04:16 PM
    If you have somethig like this

    Code:
    namespace MyNamespace.Revit
    {
        public class MyClass
        {
    
        }
    }
    your class fullname should be "MyNamespace.Revit.MyClass".

  8. #8
    Junior Member
    Join Date
    September 14, 2018
    Location
    Lisbon
    Posts
    13
    Current Local Time
    05:16 PM
    Thank you. I have checked the .dll's properties and it has not been flagged by windows. I have tried with a namespace, without a namespace, with a different class name, with the .dll in the same folder as the addin, and tried doing it all from scratch without renaming the .vb file. Unfortunately it still did not work. It keeps on showing this message, no matter what class name I write:

    Failed to initialize the add-in "HelloWorld" because the class "HelloWorld" cannot be found in the add-in assembly.
    The FullCassName provides the entry point for Revit to call the add.in application. For Revit to run the add-in, you must ensure this class implements the "Atuodesk. Revit.UI.IExternalCommand" interface.

    I think the problem is that it is not finding the class in the assembly.

  9. #9
    Member feio's Avatar
    Join Date
    December 13, 2010
    Location
    Decadent Lisbon
    Posts
    443
    Current Local Time
    04:16 PM
    Not the problem but you shouldn't toggle the copy local option for the revit API dlls. That's messy.
    Where did you get your command Guid from?
    Have you tried using the Add In Manager?

Similar Threads

  1. Replies: 0
    Last Post: November 1st, 2013, 10:15 AM
  2. Add-in not registering in External Tools tab but everything looks ok?
    By MagnetoHydroDynamics in forum Third party Add-Ins, API and R&D
    Replies: 8
    Last Post: June 18th, 2013, 04:26 AM
  3. Replies: 0
    Last Post: June 5th, 2012, 05:45 AM
  4. Replies: 0
    Last Post: May 30th, 2012, 04:15 AM
  5. External Application TaskDialog
    By Patrick in forum Third party Add-Ins, API and R&D
    Replies: 13
    Last Post: March 20th, 2012, 02:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •