Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > IDL Code > Modeling IDL code in Modeler > Creating IDL Items > Creating an extended port (consumer) (IDL code)
  
Creating an extended port (consumer) (IDL code)
You can create an Extended Port (Consumer) through an Internal Component Diagram or from a Component.
To create an extended port (consumer) through an internal component diagram:
1. Open the Internal Component Diagram on which you want to create the Extended Port (Consumer).
2. On the diagram's toolbar, click the Extended Port (Consumer) button.
3. On the diagram, click the Component or Component Part on which you want to create the Extended Port (Consumer).
Note that if you click within a Component Part, the Extended Port (Consumer) is created as a child of Component that is the Component Part's type.
4. From the Type Selector dialog, select a Port Type to use as a type through either a selected or new Bound Module:
To select a Port Type through an existing Bound Module: select the Select an Existing Type option, expand the appropriate Bound Module and Connector, and then select the Port Type you want to use as a type.
To select a Port Type through a new Bound Module: select the Create a New Type option, in the Name box type the name of the Bound Module that will be created, and then click OK. Expand the Template Module that will be instantiated by the new Bound Module, expand the Connector, and then select the Port Type you want to use as a type.
5. Click OK.
6. If you want to name the Extended Port (Consumer):
a. Open Extended Port (Consumer)'s property pages, and then click the General tab.
b. In the Name box, type the name of the Extended Port (Consumer), and then press the Enter key.
7. If you want to add a callout note to show the Extended Port (Consumer)'s Bound Module or Message:
Right-click the Extended Port (Consumer), point to Add Callout Note, and then click Bound Module or Message.
To create an extended port (consumer) from a component:
1. In the Packages pane, locate the Component that is to own the Extended Port (Consumer).
2. Right-click the Component, point to New, and then click Extended Port (Consumer).
3. From the Type Selector dialog, select a Port Type to use as a type through either a selected or new Bound Module:
To select a Port Type through an existing Bound Module: select the Select an Existing Type option, expand the appropriate Bound Module and Connector, and then select the Port Type you want to use as a type.
To select a Port Type through a new Bound Module: select the Create a New Type option, in the Name box type the name of the Bound Module that will be created, click OK. Expand the Template Module that will be instantiated by the new Bound Module, expand the Connector, and then select the Port Type you want to use as a type.
4. Click OK.
5. Type the name of the Extended Port (Consumer), and then press the Enter key.