CodeStack.SwEx.PMPage 0.4.6

Data driven SOLIDWORKS property manager pages based on vPages framework

There is a newer version of this package available.
See the version list below for details.
Install-Package CodeStack.SwEx.PMPage -Version 0.4.6
dotnet add package CodeStack.SwEx.PMPage --version 0.4.6
<PackageReference Include="CodeStack.SwEx.PMPage" Version="0.4.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeStack.SwEx.PMPage --version 0.4.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Documentation
NuGet
Issues

SwEx.PMPage

SwEx.PMPage
Inspired by PropertyGrid Control in .NET Framework, SwEx.PMPage brings the flexibility of data model driven User Interface into SOLIDWORKS API.

Framework allows to use data model structure as a driver of the User Interface. Framework will automatically generate required interface and implement the binding of the model.

This will greatly reduce the implementation time as well as make the property pages scalable, easily maintainable and extendable.

Getting started

Start by defining the data model required to be filled by property manager page.

C#
public class DataModel
{
    public string Text { get; set; }
    public int Size { get; set; } = 48;
    public double Number { get;set; } = 10.5;
}
VB.NET
Public Class DataModel
    Public Property Text As String
    Public Property Size As Integer = 48
    Public Property Number As Double = 10.5
End Class

Create handler for property manager page by inheriting the public COM-visible class from PropertyManagerPageHandlerEx class.

This class will be instantiated by the framework and will allow handling the property manager specific events from the add-in.

C#
[ComVisible(true)]
public class MyPMPageHandler : PropertyManagerPageHandlerEx
{
}
VB.NET
<ComVisible(True)>
Public Class MyPMPageHandler
    Inherits PropertyManagerPageHandlerEx
End Class

Create instance of the property manager page by passing the type of the handler and data model instance into the generic arguments

C#
private PropertyManagerPageEx<MyPMPageHandler, DataModel> m_MyPage;
private DataModel m_Data = new DataModel();
...
m_Page = new PropertyManagerPageEx<MyPMPageHandler, DataModel>(m_Data, m_App);
m_Page.Show();
VB.NET
Dim m_MyPage As PropertyManagerPageEx(Of MyPMPageHandler, DataModel)
Dim m_Data As DataModel = New DataModel()
...
m_Page = New PropertyManagerPageEx(Of MyPMPageHandler, DataModel)(m_Data, m_App)
m_Page.Show()

Refer documentation and API reference for more information about additional options.

Documentation
NuGet
Issues

SwEx.PMPage

SwEx.PMPage
Inspired by PropertyGrid Control in .NET Framework, SwEx.PMPage brings the flexibility of data model driven User Interface into SOLIDWORKS API.

Framework allows to use data model structure as a driver of the User Interface. Framework will automatically generate required interface and implement the binding of the model.

This will greatly reduce the implementation time as well as make the property pages scalable, easily maintainable and extendable.

Getting started

Start by defining the data model required to be filled by property manager page.

C#
public class DataModel
{
    public string Text { get; set; }
    public int Size { get; set; } = 48;
    public double Number { get;set; } = 10.5;
}
VB.NET
Public Class DataModel
    Public Property Text As String
    Public Property Size As Integer = 48
    Public Property Number As Double = 10.5
End Class

Create handler for property manager page by inheriting the public COM-visible class from PropertyManagerPageHandlerEx class.

This class will be instantiated by the framework and will allow handling the property manager specific events from the add-in.

C#
[ComVisible(true)]
public class MyPMPageHandler : PropertyManagerPageHandlerEx
{
}
VB.NET
<ComVisible(True)>
Public Class MyPMPageHandler
    Inherits PropertyManagerPageHandlerEx
End Class

Create instance of the property manager page by passing the type of the handler and data model instance into the generic arguments

C#
private PropertyManagerPageEx<MyPMPageHandler, DataModel> m_MyPage;
private DataModel m_Data = new DataModel();
...
m_Page = new PropertyManagerPageEx<MyPMPageHandler, DataModel>(m_Data, m_App);
m_Page.Show();
VB.NET
Dim m_MyPage As PropertyManagerPageEx(Of MyPMPageHandler, DataModel)
Dim m_Data As DataModel = New DataModel()
...
m_Page = New PropertyManagerPageEx(Of MyPMPageHandler, DataModel)(m_Data, m_App)
m_Page.Show()

Refer documentation and API reference for more information about additional options.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.7.1 39 10/4/2019
0.7.0 42 9/22/2019
0.6.1 53 9/8/2019
0.6.0 52 9/8/2019
0.5.0 48 8/25/2019
0.4.6 94 6/7/2019
0.4.5 176 12/30/2018
0.4.0 199 11/10/2018
0.2.1-beta 136 9/2/2018
Show less