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

SOLIDWORKS Property Manager Page data changed events handling


xCAD framework provides event handlers for the data changes in the controls. Use this handlers to update preview or any other state which depends on the values in the controls.

Post data changed event

Xarial.XCad.SolidWorks.UI.PropertyPage.ISwPropertyManagerPage.DataChanged event is raised after the user changed the value in the control which has updated the data model. Refer the bound data model for new values.

m_Page.DataChanged += OnDataChanged;
private void OnDataChanged()
{
    var text = m_Data.Text;
    //handle the data changing, e.g. update preview
}


Powered by Docify