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

Start button confirmed to make a comeback in Windows 8.1

We first  heard rumors  about a possible comeback of the Start menu button in Windows 8.1 last week, but now sources speaking to  The Verge  have confirmed that this will indeed be the case, only it’s probably not what most detractors were hoping for. The newly reintroduced button will reportedly sit on the traditional bottom left corner, and will look near-identical to the existing Windows flag used in the Charm bar, but clicking on it will simply bring up the tile-based Start screen rather than the old Start menu. Read Full Article

Barcode Reader for Motorola MC3000 Device (Windows Mobile 6)

You can simply click the button and read the barcode. Create the User interface as you wish and add following codes to the scan button and Scanning.cs class.