Creo Schematics 9.0.0.0 Help Center > Design Basics > Labels > To Define a Java Function for Duplicating Fiber Labels
To Define a Java Function for Duplicating Fiber Labels
1. Click File > Options > Environment. The Change environment options for working with Creo page opens.
2. Click Custom Command Settings. The Define Custom Command dialog box opens.
3. Select Custom Java from the Categories list.
4. To create a new button click New, to create a copy of the previous button click Copy. A new command appears in the Custom Commands box.
5. Type Duplicate Fiber Labels in the Label box. This label appears on the custom button.
6. Type a description in the Description box.
7. Type {rsdesigner/uiextension/Utils.placeAlignFibersLabels ()} in the Java box.
8. The icon is selected by default for the new function.
9. Click Apply in the Define Custom Command dialog box. The new user-defined Java button is saved.
10. Add the button to a custom group.