Create and register SolidWoks C# and VB.NET AddIns in 3 Steps

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • More information: www.codestack....
    SwEx framework for simplified development of add-ins in .NET: www.codestack....
    Video is a the detailed instruction of how to create and properly register the SolidWorks add-in. These techniques may be used for creation the new add-ins and troubleshooting the registration problems of the existing add-ins.
    In order to properly create and register the SolidWorks .NET add-in (C# or VB.NET) you need to follow these simple steps:
    1) Implement the ISwAddin interface in the class library type of project
    2) Add the COM class attributes and add the add-in information to the HKLM\Software\SolidWorks\Addins\{Add-In GUID} registry
    3) Register the add-in dll with the RegAsm utility using the /tlb and /codebase switches:
    C:\Windows\Microsoft.NET\Framework[64]\[Version]\RegAsm.exe ["Path to add-in dll"] /tlb /codebase

КОМЕНТАРІ • 14

  • @CADSharp
    @CADSharp 10 років тому +2

    That's a cool idea to have VB.NET and C# shown at the same time. Good job, Artem.

  • @leogsantos5
    @leogsantos5 2 роки тому

    you are a freaking god omg the things i would do to you rn

  • @johnpelitidis6297
    @johnpelitidis6297 7 років тому

    Thank you Artem... that was beautiful

  • @CodeStackDev
    @CodeStackDev  10 років тому +1

    Hi Teyfik,
    You need to specify the valid GUID not an empty string. You can use the Guid generation tool available in Visual Studio under Tools->Create GUID or use online generator like www.guidgen.com/ so in your VB.NET it should look like
    Thanks,
    Artem

  • @khalidabdelaziz829
    @khalidabdelaziz829 9 років тому

    Great video, thank you!

  • @mathieubilodeau7622
    @mathieubilodeau7622 7 років тому

    Thank you very much ; this video saved me hours of work and research. It is a very good complement to AngelSix's book

  • @mathieuberte1378
    @mathieuberte1378 10 років тому

    Great video ! I'm currently developping a solidworks add-In and I would like to automate the creation of the Reg.bat file with an installShield project. Do you think it is possible ?

  • @johnpelitidis6297
    @johnpelitidis6297 7 років тому

    Artem, Where is you example showing how to use the CSharp addin template? Did you end up making such a video? if not, can you please make one showing how to use this template, ensuring it works in Solidworks 2017 (mine doesn't for some reason). Thanking you in advance...

  • @CodeStackDev
    @CodeStackDev  10 років тому

    Hi Mathieu,
    Yes, it is possible to do as the custom action in InstallShield. Please also check this article which shows another approaches to register the dll: www.installationdeveloper.com/3028/com-extractionregistration-in-an-installshield-project/.
    Thanks,
    Artem

  • @TeyfikErenEREZ
    @TeyfikErenEREZ 10 років тому

    Hi, Can I ask a question? I try to this for vba.net. But I a have a errors. I find it where problem is. When I write a guid("") and comvisible command, vba give a errors. Don't accept code. I use visual studio 2010. And I try different frameworks 3.5, 4.0 and result don't change. Where I make a mistake? Could you help me please.

  • @TusharSondhi
    @TusharSondhi 8 років тому

    I am facing an issue while building the program. It says :-
    type 'isldworks' is not defined
    in line 11.
    What is the issue here?
    Help Plz

  • @FJProject
    @FJProject 7 років тому

    Can you provide the same in C++ ?

  • @javiervidoza2316
    @javiervidoza2316 9 років тому

    Hi. I am new using API and I would like to install VB.net instead VBA. How do I install VB.net to create applications with solidworks?
    Thank you

    • @CodeStackDev
      @CodeStackDev  9 років тому

      Hi Javier,
      You can download the free express version of visual studio here: www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx. Despite it is express studio it is quite comprehensive IDE and has everything you need to build your applications. You can also buy the standard or professional studio.
      Thanks,
      Artem