Skip to main content

Options of SOLIDWORKS Property Manager Page

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

<PageOptions(swPropertyManagerPageOptions_e.swPropertyManagerOptions_CancelButton Or swPropertyManagerPageOptions_e.swPropertyManagerOptions_OkayButton)>
Public Class DataModelPageOpts
End Class
[PageOptions(swPropertyManagerPageOptions_e.swPropertyManagerOptions_CancelButton
| swPropertyManagerPageOptions_e.swPropertyManagerOptions_OkayButton)]
public class DataModelPageOpts
{
}

Attributes allow to customize the buttons and behaviour of the page

Attribution

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

<PageOptions(GetType(Resources), NameOf(Resources.PageIcon), swPropertyManagerPageOptions_e.swPropertyManagerOptions_OkayButton)>
<Message("Sample message for property page", "Sample Page")>
<DisplayName("Sample Page")>
Public Class DataModelPageAtts
End Class
[PageOptions(typeof(Resources), nameof(Resources.PageIcon),
swPropertyManagerPageOptions_e.swPropertyManagerOptions_OkayButton)]
[Message("Sample message for property page", "Sample Page")]
[DisplayName("Sample Page")]
public class DataModelPageAtts
{
}

Property page with help and what&#39;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
End Class
[Help("<Help URL>", "<What's New URL>")]
public class DataModelHelpLinks
{
}