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 a connector (IDL code)
  
Creating a connector (IDL code)
You can create a Connector through a Component Definition Diagram, or from the Model or a Package.
To create a connector through a component definition diagram:
1. Open the Component Definition Diagram on which you want to create the Connector.
2. On the diagram's toolbar, click the Connector button.
3. On the diagram, click in free space.
4. Type the name of the Connector, and then press the Enter key.
5. If you want the Connector to inherit from another Connector:
a. Add the Connector you want to inherit from to the Component Definition Diagram.
b. On the diagram toolbar, click the Generalization button.
c. Click the Connector you created, and then click the Connector from which it is to inherit.
To create a connector from a package or the model:
1. In the Packages pane, locate the Package or Model that is to own the Connector.
2. Right-click the Package or Model, point to New, point to IDL Profile, and then clickConnector.
3. Type the name of the Connector, and then press the Enter key.
4. If you want the Connector to inherit from another Connector:
a. Add the Connector you created and the Connector you want to inherit from to a Component Definition Diagram.
b. On the diagram toolbar, click the Generalization button.
c. Click the Connector you created, and then click the Connector from which it is to inherit.