Button control in SOLIDWORKS property Manager Page

Edit ArticleEdit Article

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()
    {
        //TODO: Handle button click
    }
}

Notifications

Join session by SOLIDWORKS and PDM API expret Artem Taturevych at 3DEXPERIENCE World 2025 on Feb 26 at 08:30 AM CST to explore 10 essential macros for automating drawings, assemblies, custom properties, and more


Product of Xarial Product of Xarial