To Create Custom Tool Button & Gallery
Follow these steps to create New Button on ribbon and add components to the Components Gallery for newly created button. The example below explains the procedure for OpenPlant PID, but it is also applicable for OpenPlant Modeler and OpenplantSupport Engineering
Adding a new ribbon under PID Gallery Components node
After creating the new button labeled as Waste Water Equipment . You need to add components in the Component Gallery for this button.
Key-in Details for Addition of New Button/Icon
Key-in: Besm Menucontext PIDProjectSymbols.OpenPlantPID.Standard.PID.GalleryComponents.Waste_Water_Equipment
Key-in breakdown
| Value | Description | Comments |
| Besm Menucontext | Required - from code | |
| PIDProjectSymbols | Name of the DgnLib file being used for customization | |
| OpenPlantPID.Standard.PID.GalleryComponents | The main tab section | This tab is hidden from the administrator. Development supplied the name. |
| Waste_Water_Equipment | Label for the Gallery Group. This matches the name given to the PID Gallery Components group created in the first section of this procedure. |
Here's a list of the other hidden defined Gallery Ribbon names of different Bentley applications. These are used in the Key-in creation:
-
OPM(Modeler)
- OpenPlantModeler.Equipment.GalleryComponents
- OpenPlantModeler.HVAC.GalleryComponents
- OpenPlantModeler.Common.SolidsGallery
- OpenPlantModeler.Piping.GalleryComponents
- OpenPlantModeler.Raceways.GalleryComponents
- OpenPlantModeler.Supports.GalleryComponents
-
OPPID(PID)
- OpenPlantPID.Standard.PID.GalleryComponents
- OpenPlantPID.Common.GalleryTools.Alternate
- OpenPlantPID.Common.GalleryTools
- OpenPlantPID.AP.GalleryComponents
- OpenPlantPID.DIN.GalleryComponents
- OpenPlantPID.ISO.GalleryComponents
- OpenPlantPID.KKS.GalleryComponents
-
OPSE
(Supports)
- OPSE.PipeAttachments.GalleryComponents
- OPSE.SupportHardware.GalleryComponents
- OPSE.Assemblies.GalleryComponents
- OPSE.SupportFrames.GalleryComponents
- OPSE.Trays.GalleryComponents
- OPSE.HVAC.GalleryComponents
