• Skip to content
  • Skip to primary sidebar
  • Skip to footer

CadOasis

Ease Your CAD Software Experience !

  • Home
  • Training
  • Solutions
  • Support
  • Blog
  • Community
Home ยป How to Load DraftSight API Project templates ?

September 15, 2017 By CadOasis

How to Load DraftSight API Project templates ?

  • With the help of DraftSight API Project templates you can create add-in projects & load them into DraftSight.

Note:

1. If you click on this DraftSight Project Template and get an “Error: This template attempted to load component assembly… ” then Go to Tools > Extensions and Updates > uninstall “NuGet Package Manager for Visual Studio” now in Click on Online option on same dialog box > Search for Nuget Package Manager – download & install it. > Restart Visual Studio

  • When you build project using this template in Visual Studio then it creates an Add-in & adds it to DraftSight Menubar Tools > Add-ins manager.
  • This add-in will add new command for command window, Menu item in menu bar & toolbar button.

# DraftSight API Project template File :

DraftSight VB.Net & C# API Project templates Consists of following Files:

  • BitmapHandler – This file contains the class to handle the add-in’s images
  • DsAddin – This file contains the main add-in class.
  • DsAddinCommand – This file contains the DsAddinCommand class that handles events thrown when a command executes.
  • DsAddinDocument – This file contains the DsAddinDocument class that handles events thrown by open drawing documents
  • DsAddinUserCommand – This file contains the DsAddinUserCommand class, which you use to create commands for menu items and toolbar items, get command IDs, and validate commands.

Check all Files in Solution Explorer of Visual Studio.

Filed Under: DraftSight API Tagged With: DraftSight API



Reader Interactions

Primary Sidebar

Search on CadOasis !

Advertisement:




Categories

Tags

3D Mouse Activation Annotation API AutoLISP Blocks BOM Table Commands Customization Dimension DraftSight 2015 DraftSight 2017 DraftSight 2018 DraftSight API DraftSight C# DraftSight LISP DraftSight Script DraftSight V1R5.0 DraftSight VB.Net DraftSight VBA Draw Excel VBA Export file Format Inquiry LISP Macro Modify News Options Print Productivity Revision Table script Sketching SolidWorks API SolidWorks Macro SolidWorks VBA Toolbox Tools Troubleshooting User interface Whats New Window

Get more stuff

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

we respect your privacy and take protecting it seriously

Footer

  • About Us
  • Showcase
  • CAD Software
  • Guest Author
  • Contact Us
  • Links
  • Disclaimer
  • Privacy Policy
  • Terms and Services
Creative Commons License
CadOasis.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

© Copyright 2014-2019 CadOasis Training & Solutions · All Rights Reserved ·