Install the Fusion Automation API extension in Visual Studio Code and connect it to your running Fusion session.
You need:
In Fusion, click Utilities in the ribbon, then click Scripts and Add-Ins (or press Shift+S).
Find SystemModeler in the list, select it, and click Run.
Select Run on Startup so it loads each time.

In VSCode, press Ctrl+Shift+X (Windows) / Command+Shift+X (macOS) to open the Extensions panel.
Search for Fusion Automation API (publisher: Autodesk). You can also find it on the Visual Studio Marketplace.
Click Install.
Download the System Modeler starter package (.zip).
Unzip the file and open the folder in Visual Studio Code.
Open README.md in the package root and read it before you start.
The README explains how to turn the starter package into your own package and lists the node signatures of the public packages.
package.manifest. Follow the steps in the Creating your own package section of the README.Click any .graph.json file in the project.
System Modeler opens inside the IDE and connects to Fusion. Check the status bar at the bottom of the screen for a connection confirmation.
Use the System Modeler canvas to create and run graphs: