Class AddinAttribute
- Namespace
- Hymma.Solidworks.Addins
- Assembly
- Hymma.Solidworks.Addins.dll
You should decorate your addin classes with this attribute
defines informative properties about your addin
[AttributeUsage(AttributeTargets.Class)]
public class AddinAttribute : Attribute, _Attribute
- Inheritance
-
AddinAttribute
- Implements
- Inherited Members
Constructors
AddinAttribute(string)
default constructor
public AddinAttribute(string title)
Parameters
titlestring
Properties
AddinIcon
resource name of a bitmap icon in the .resx file or the filename (with extension) of an asset whose build property set to Embedded Resource.
The add-in icon displays next to the add-in name in the SOLIDWORKS Add-in Manager dialog
public string AddinIcon { get; set; }
Property Value
Remarks
any space character will be replaced by '_'.
Don't expect the installer packages pick this up and create code to register the icon path into registry. Wix's heat (harvester tool) only registers the assemblies into the clients machine but you should register the addin icon yourself. refer to QrifyInstaller to see how it's done in Wix.
Description
Description for this addin. will be used in addin-list
public string Description { get; set; }
Property Value
LoadAtStartup
Solidworks will load this addin at startup if set to True
public bool LoadAtStartup { get; set; }
Property Value
Title
The title for this addin in the addin-list
public string Title { get; }