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

Options of SOLIDWORKS Property Manager Page


Property Manager Page style
Property Manager Page style

  1. Icon of the property manager page
  2. Title of the property manager page
  3. Links to documentation (what's new and help)
  4. Control buttons (OK and Cancel)
  5. Optional user message title
  6. Optional user message content

Property manager page style can be customized by applying the PageOptionsAttribute onto the main class of the data model.

Property page with OK and Cancel button options
Property page with OK and Cancel button options

[PageOptions(PageOptions_e.CancelButton
| PageOptions_e.OkayButton)]
public class DataModelPageOpts
{
}

Attributes allow to customize the buttons and behaviour of the page

Attribution

Property page with custom title, icon and message
Property page with custom title, icon and message

Page title can be assigned via DisplayNameAttribute

Icon can be set via overloaded constructor of PageOptionsAttribute

Custom user message to provide additional information can be set via MessageAttribute

[Icon(typeof(Resources), nameof(Resources.PageIcon))]
[Message("Sample message for property page", "Sample Page")]
[DisplayName("Sample Page")]
public class DataModelPageAtts
{
}

Property page with help and what's new links
Property page with help and what's new links

HelpAttribute allows providing links to help resources for your add-in. Framework will automatically open the specified url when user clicks corresponding help buttons in the property manager page:

[Help("<Help URL>", "<What's New URL>")]
public class DataModelHelpLinks
{
}


Powered by Docify