You can create new User Component by inheriting component assisted by XPLATFORM or other already created User Component.
Creating User Component
User Component can be created by selecting Menu [File – New – Item – User Object] or by using Toolbar as shown in the [Figure].
Select Base object class to inherit from, and if you designate name of User Object Class, User Component will be created at target location.
Properties | Description | |
---|---|---|
1 | Base object class | Base object to inherit |
2 | UserObject Class name | Name of User Object to create |
3 | Location | File location of User Object to create |
4 | Insert to TypeDefinition | Whether to insert Type Definition |
5 | TypeDefinition’s ID | ID to be registered in Type Definition |
You can add User Component automatically or manually and use it like other components.
Editing User Component
User Component is made in Script, and same function is provided in the edit window as other script edit windows.
Adding Function
From the Popup Menu of User Component added in Project Explorer, you can add functions to selected user component.
Functions are created through input window as shown in [Figure].
Properties | Description | |
---|---|---|
1 | Access | Access method of function to create |
2 | Function | Name of function to create |
3 | Parameter | Parameter Name |
4 | Type | Parameter Type |
5 | Add | Add entered parameter to parameter list |
6 | Remove | Delete selected parameter from parameter list |
7 | Parameter List | Parameter list of function |
8 | Function signature | Preview of created function |
Adding Properties
From the popup menu of user component added to Project Explorer, you can add properties to selected user component.
Properties are created through input window.
Properties | Description | |
---|---|---|
1 | Access | Access method of properties to create |
2 | Properties ID | Name of property to create |
3 | ReadOnly | Whether to set Read Only |
4 | Function signature | Preview of created properties |
Type Definition Registration
User components that are previously created or user components that are not registered to Type Definition can be registered to Type Definition manually.
When you input path of created user component in the Add Object of Type Definition Edit screen and add it, it will be registered to Type Definition.