You can edit, delete, replace, or merge custom snippets.
What's New: R2022
Display the Edit Rule Dialog
- On the ribbon, click Manage tab iLogic panel iLogic Browser if the browser is not currently displayed.
- In the iLogic Browser, do one of the following:
- Right-click an empty area and select Add Rule.
- Click the Rules tab or the External Rules tab, right-click a rule, and select Edit Rule.
Work with Favorite Snippets
- Do one of the following:
- To define snippets as favorites, click Edit Favorite Snippets at the top of the System tab. Select a category, or expand a category and select individual snippets.
- To display only your favorite snippets, click the Favorites toggle at the top of the System tab.
Copy system snippets to custom snippets
Create Custom Snippet
- Highlight the snippet text in the editing window, then right-click and select
Capture Snippet.
The Edit Snippet dialog box displays, with a copy of the snippet text in the Code text box.
- Enter the Title of the snippet, to be displayed in the snippets list.
- Select the Category in which the snippet is listed, or enter the name of a new category.
- Optionally, enter a text string to display as a tooltip when you hover the mouse pointer over the snippet in the list. Click Use Code as Tooltip to place a copy of the snippet text into the tooltip text box, and then edit the text as necessary.
- Edit the snippet in the Code text box as necessary. For complicated or long snippets, click the right arrow above the vertical scroll bar on the right to enable automatic outlining.
- Click Save or press
Ctrl-S to save your snippet.
Snippets are also saved when you click OK in the Edit Rule dialog box. The first time you save custom snippets, you are prompted to choose the save location.
Manage Custom Snippet Categories and Collections
- To arrange custom snippets in categories, do any of the following:
- To create a category, right-click and select Insert Category from the context-menu.
- To place a snippet into a category, drag it into its proper location within the tree.
- To rename a code snippet category, select the snippet or category, then right-click and select Rename from the context menu.
- Use Save As on the toolbar to create different collections of code snippets for specific projects.
- To create a custom snippet collection for a specific project, click
at the top of the System tab. Specify a filename and location, and click Save to save a copy of all the custom snippets in the list as an external .xml file.
If necessary, open the saved file using an XML editor and edit the saved snippets.
Edit, Delete, Replace, or Merge Custom Snippets
- To edit a custom snippet, right-click a snippet and select Edit. Make the necessary changes in the Edit Snippets dialog.
- To delete a custom snippet, right-click the snippet and select Delete.
- To replace custom snippets from an external file, click
at the top of the System tab. Select the file to replace the snippets in the Custom tab, and click Open.
- To merge custom snippets from an external file, click
at the top of the System tab. Select the file to merge with the snippets in the Custom tab, and click Open.
Move or hide snippets area
-
Use the Pin symbol at the top of the Snippets area to customize its behavior.
- Click the pin to change between show/hide mode and docking/undocking mode.
- When the pin symbol points down, click in the title bar to the left of the pin symbol to undock the area. Then, drag the Snippets area and pin it to another location on the screen. Use the docking icons that display in the
Autodesk Inventor work area if you want to dock the Snippets area to either side of the Inventor window. Click the Snippets area, then drag it over a docking icon, and release the mouse button.
- When the pin symbol points left, a Snippets tab replaces the Snippets area when it is not in use. Click the Snippets tab to show the Snippets area.