Discover TopSolid Automating Custom Controls
Introduction
TopSolid Automating Examples available from GitHub contains a project dedicated to the creation of custom controls. They can be used be used on a Winforms Application to develop applications for TopSolid software.
Overview of TopSolid Custom Controls
Three different custom Controls are included into this project:
- PDMTreeView
This control displays the PDM content of the current working project. It derives from a basic TreeView. Custom properties added are:
- Multiple check: allow user to select more than one item in the treeview (you will have to activate checkboxes at first)
DocumentTypes: An array where user can specify which are the document types to display.
DocumentSelector
This control displays a list of document from the current working project. It derives from a basic ListView. Custom properties added are:
- DocumentExtension : allow user to filter on a specific document type
SearchDocumentOptions: specify where to look for the reseached document types. Available options are : NONE, ALL, CURRENT_PROJECT, WORKING_PROJECTS, LIBRAIRIES, CURRENT_PROJECT_AND_REFERENCES
ProjectSelector
This control displays a list of projects from current PDM. It derives from a basic Combobox. Custom property added is: -ProjectSelectionType: specify which projects have to be displayed into the list. Available options are : WORKING_PROJECTS, LIBRAIRIES, ALL
How to use custom controls ?
Just drag controls from form designer toolbox to your form.