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 client (IDL code)
  
Creating a client (IDL code)
You can create a Client through an Internal Component Diagram, or from a Component, Connector or Port Type.
To create a client through an internal component diagram:
1. Open the Internal Component Diagram on which you want to create the Client.
2. On the diagram's toolbar, click the Client button.
3. On the diagram, click within the Component or Component Part on which you want to create the Client.
Note that when you create a Client on a Component Part, the Client is created as a child of the Component Part's type, that is, a Component.
4. From the Type Selector dialog, select or create an Interface to use as a type:
To use an existing Interface: select the Select an Existing Type option, and then select the Interface you want to use in the Existing Type browser.
To create a new Interface: select the Create a New Type option, and then in the Name box type the name of the Interface that will be created.
5. Click OK.
6. Open the Client's property pages.
7. If you want to specify the name of the Client:
a. Click the General tab.
b. In the Name box, type the name of the Client.
8. If you want to specify that the Client is a uses multiple declaration:
a. Right-click the Client, point toSet, and then click isMultiple.
b. Select TRUE, and then click OK.
9. If you want to specify that the Client is asynchronous:
a. Right-click the Client, point toSet, and then click Asynchronous.
b. Select TRUE, and then click OK.
To create a client from a component, connector or port type:
1. In the Packages pane, locate the Component, Connector or Port Type that is to own the Client.
2. Right-click the Component, point to New, and then click Client.
3. From the Type Selector dialog, select or create an Interface to use as a type:
To use an existing Interface: select the Select an Existing Type option, and then select the Interface you want to use in the Existing Type browser.
To create a new Interface: select the Create a New Type option, and then in the Name box type the name of the Interface that will be created.
4. Type the name of the Client, and then press the Enter key.
5. If you want to specify that the Client is a uses multiple declaration:
a. Right-click the Client, point to Set, and then click isMultiple.
b. Select TRUE, and then click OK.
6. If you want to specify that the Client is asynchronous:
a. Right-click the Client, point toSet, and then click Asynchronous.
b. Select TRUE, and then click OK.