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

Option box control in SOLIDWORKS Property Page with xCAD framework


Option box control
Option box control

Options group can be defined by decorating the property of type Enum with OptionBoxAttribute.

using Xarial.XCad.Base.Attributes;
using Xarial.XCad.UI.PropertyPage.Attributes;

public class OptionBoxDataModel
{
    public enum Options_e
    {
        Option1,
        Option2,
        [Title("Third Option")]
        Option3
    }

    [OptionBox]
    public Options_e Options { get; set; }
}


Powered by Docify