XCAD.NET
XCAD.NET
Framework for .NET (C# and VB.NET) to create modern application for CAD systems (SOLIDWORKS, SOLIDWORKS Document Manager, Autodesk Inventor, etc.)
Get technical support Connect to xCAD community on Discord server Explore code and application examples xCAD.NET Templates for Visual Studio and VS Code Access source code

Button control in SOLIDWORKS property Manager Page


Button control
Button control

In order to create a button in the property manager page, it is required to declare the property of delegate type Action.

The pointer to void function assigned to this property is a handler of the button:

using System;

public class ButtonDataModel
{
    public Action Button => OnButtonClick;

    private void OnButtonClick()
    {
        //Handle button click
    }
}

Visit bitmap button for more information of how to create button with image.


Powered by Docify