This project takes approximately 10 minutes. Before you run the Model Enumeration pluglet sample, you must create the pluglet project and import the sample pluglet.
Activate the Pluglet Projects and Pluglets capability
- Click Window > Customize Perspective to customize your perspective for pluglet projects and pluglets development.
- In the Customize Perspective > Shortcuts window, select Pluglets. This selection automatically enables the Pluglet Projects and Pluglets capabilities. Click OK.
Create the new pluglet project
- Click File > New > Project > Pluglets > Pluglets Project.
Create the new pluglet
- Click File > New > Pluglet > Simple > Pluglet. Click Next.
- Enter the name of the new pluglet in the Name field. Click Finish.
Before you run the sample, you must import it into your worksapce.
- On the Model Enumeration pluglet overview page, click Import.
- In the Import Sample wizard, the Model Enumeration pluglet sample is filled in for you. Accept the default and click Finish.
Running the Model Enumeration pluglet sample
Once you have imported this pluget sample into your workspace, you can run the pluglet for the first time by selecting it in the Model Explorer, and then pulldown the Internal Tools menu on the main toolbar and select the Run As > Pluglet menu item.
- Select the newly created pluglet in the Model Explorer window. Click Run > Internal Tools > Model Enumeration pluglet. Click Run.
The pluglet runs as expected, and the model enumeration results are displayed on the Console window.
After you have run the Model Enumeration pluglet once, you should see that the Internal Tools pulldown menu has been populated with a new menu item that is Model Enumeration pluglet. From then on, you can just invoke this pluglet via this menu item to display the contents of the selected modeling elements.
|