Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > IDL Code > IDL items (reference information) > Extended port (publisher) item (IDL code)
  
Extended port (publisher) item (IDL code)
Create an Extended Port (Publisher) in the following ways:
On an Internal Component Diagram: on the diagram's toolbar, click the Extended Port (Publisher) button, and then click within the Component or Component Part on which you want to create the Extended Port (Publisher).
Right-click the Component that is to own the Extended Port (Publisher), point to New, point to IDL Profile, and then click Extended Port (Publisher).
When you create an Extended Port (Publisher), you must select a Port Type to use as a type through either a selected or new Bound Module.
For information about connecting an Extended Port (Publisher) to other items on an Internal Component Diagram, see Rules for connecting items on an internal component diagram.
On an Internal Component Diagram, you can create a connector listener for an Extended Port (Publisher): right-click the Extended Port (Publisher), and then click Add Connector Listener. The IDL Profile creates a connected Service named Status that uses the ConnectorStatusListener interface as its type.
To change the type of an Extended Port (Publisher): right-click the Extended Port (Publisher), point to Set, and then click Type. From the dialog select the Port Type you want to use as a type. To make the name of the Extended Port (Publisher) match the name of the new type with the '_msg' text removed: right-click the Extended Port (Publisher), and then click Synchronize IDL Element Names.
By default, the name of an Extended Port is set to that of the Message it uses with the '_msg' text removed. If the name of an Extended Port or Message is changed and you want to change the name of the Extended Port to match the name of the Message it uses with the '_msg' text removed: right-click the Service, and then click Synchronize IDL Element Names. Note that the name of the Extended Port is also updated when the Synchronize IDL Element Names command is used from the following items: the Message it uses, the Component that owns the Message it uses, and the scoping Package of the Extended Port or Message.
When shown on an Internal Component Diagram, an Extended Port (Publisher)'s notation is as follows:
On an Internal Component Diagram you can add callout notes to an Extended Port (Publisher) to show its Bound Module and Message: right-click the Extended Port (Publisher), point to Add Callout Note, and then click Bound Module or Message.
Note that on an Internal Component Diagram, an Extended Port (Publisher)'s view options are set through the Port entry.
You can quickly navigate from an Extended Port (Publisher) on an Internal Component Diagram to its Bound Module or Message in the Packages pane or Dictionary pane: right-click the Extended Port (Publisher), point to Find, point to Bound Module or Message, and then click In Package Browser or In Dictionary Browser.
An Extended Port (Publisher) is based on a UML Attribute or Role.
The following sections provide information about how an Extended Port (Publisher) is used in the model.
Owned By
Component Note that when you create an Extended Port (Publisher) on a Component Part, the Extended Port (Publisher) is created as a child of the Component Part's type, that is, a Component.
Owns
Connection (UML Association) - the Connection is owned jointly by the two items it links. See Rules for connecting items on an internal component diagram.
Shown on these diagrams
Internal Component Diagram
Sequence Diagram (IDL)
IDL Profile properties
boundModule - the Bound Module that provides the Extended Port (Publisher)'s Port Type.
msg - the Message that is associated with the Bound Module that provides the Extended Port (Publisher)'s Port Type.