Skip to main content

Load an Addin into DraftSight


These days i am developing two plugins for Autocad 2012 & DraftSight 2013.so when i was developing the plugin i got in to big trouble.Normally in the Autocad , we can load the .dll file simply typing the command "NETLOAD" but in the Draftsight i could not able to do that. It said 
" D:\c \projects\c projects\DSAddinCSharp1\DSAddinCSharp1\bin\Debug\DSAddinCSharp1.dll is not a valid add-in"



Finally i got the solution ... :)
You need to register the addin to your Windows system. For example, if the system is .NET 4 framework of 64 bit.
Please refer below for the steps to register the add-in:
1)      Open a Windows Command Prompt.(Run as an Administrator)
2)      Change directory to folder C:\Windows\Microsoft.NET\Framework64\v4.0.30319 (or the .NET current version)
3)      Type this command with those options:
               regasm /codebase /tlb "<Windows path\adding name>.DLL" 
4)      If the addin DLL was registered successfully, the Windows Command will return this message:
 "Types registered successfully. Assembly exported to 'C:\<addin name>\.tlb', and the type library was registered successfully"
5)      Load the addin in DraftSight.

Note: If you are trying to register Release version.dll please run Windows command prompt as an Administrator. For this select select 'Run as an Administrator' from right click menu.


Hope this helps!


Comments

Popular posts from this blog

Imagine Cup 2014

Hi guys .. Get ready for imagine cup 2014 In NewZealand .In the next few days imagine cup 2013 finals will happen in Russia. So It is time to wear your thinking hat.You have one year to develop your marvelous ideas.  The Microsoft Imagine Cup is the world’s most prestigious student technology competition, bringing together student innovators from all over the world. If you have a great idea for a new app, bring it to life through Imagine Cup. Over the past 10 years, more than 1.65 million students from 190 countries have participated in the Imagine Cup. 

Visual Studio 2013 New Editor Features

In Visual Studio 2013, we have introduced new features that boost productivity and save time when working inside the Editor. Some of these are new features and some are the most popular extensions from  Productivity Power Tools . These features are a result of the feedback you gave us through  User Voice  requests, forum posts and Connect bugs. The MVP community also helped us pick some of these experiences. Our primary focus for the Editor in this version is to keep the developer in context as much as possible. This blog post describes capabilities that bring information to your fingertips and allow you to do as much as possible without leaving your place in code.