Code Editor
A Monaco-based editor for iLogic rules, with IntelliSense, multi-cursor editing, sticky scroll, minimap, and an editing toolbar.
The editor is the main content area. It is built on Monaco (the same engine as VS Code) and is tuned for editing iLogic (VB.NET) rules. Open a rule from the Rules Explorer and it loads into a tab here.
Editing toolbar
Above the editor is a toolbar with the most common actions:
| Button | Action |
|---|---|
| Delete rule | Deletes the rule the active tab belongs to (with a confirmation) |
| Toggle line comment | Comments or uncomments the selected lines |
| Copy | Copies the current selection |
| Paste | Pastes from the clipboard |
| Undo / Redo | Steps through the edit history |
| Save | Saves the active rule |
| Save & Run | Saves, then runs the rule through iLogic (see Running Rules) |
IntelliSense
As you type, the editor requests completions from Inventor and shows them inline. Suggestions cover iLogic and Inventor API members available to your rule, so you can discover properties and methods without leaving the editor.
You can also trigger suggestions manually at any time by pressing Alt + Space.
Editing comforts
The editor brings the multi-cursor and line tools you expect from a modern code editor, all remappable in Settings → Shortcuts:
- Multi-cursor: select the next occurrence (
Ctrl+D) or all occurrences (Ctrl+F2) of the current word. - Line moves: move (
Alt+Up/Alt+Down) or duplicate (Alt+Shift+Up/Alt+Shift+Down) the current line. - Comment toggling:
Ctrl+/on the selection. - Folding: collapse the whole rule (
Ctrl+0) or expand it again (Ctrl+J).
Format
Format rule (Ctrl+Shift+L) reindents and tidies the whole rule, fixing spacing and indentation through the same VB engine that powers IntelliSense. Use Format selection (from the right-click menu) to format just the selected lines.
Right-click menu
Right-click in the editor for a context menu with Cut / Copy / Paste, Comment / Uncomment selection, Indent / Unindent, an Outlining submenu (fold / unfold), and Format rule / Format selection. Every command is also remappable in Settings → Shortcuts.
Sticky scroll
With Sticky scroll enabled, the enclosing scope (the current Sub/Function, #Region, or If block) stays pinned to the top of the editor as you scroll, so you always know where you are in a long rule. Toggle it in Settings → Editor.
Minimap
The minimap is an overview of the whole rule on the right edge, for quick navigation. When Minimap section titles is on, #Region and MARK: comments appear as labelled section headers in the minimap. Both are configurable in Settings → Editor.
Add a ' MARK: <name> comment anywhere in a rule to drop a labelled marker into the minimap, so you can find your place in a long rule at a glance. #Region "<name>" blocks are labelled the same way.
Font
The editor font family and size are configurable in Settings → Editor. A curated list of common coding fonts is offered, and the size ranges from 8 to 32 px.
Introduction
A modern, Monaco-based editor for Autodesk Inventor iLogic rules. Write, organize, run, and debug document and external rules from a dockable panel.
Rules Explorer
A file-style sidebar for browsing, creating, renaming, copying, and deleting document (internal) rules and external rule files.