Edit a NetLogic

Modify the NetLogic code by using an external code editor.

Prerequisites

Set the default external code editor. See Set the default code editor.

To edit a NetLogic
  1. In Project view, double-click a NetLogic object.
    The default external code editor opens.
    Tip: Rockwell Automation recommends using Microsoft Visual Studio 2022 or Microsoft Visual Studio Code as the default code editor. Some development assistance features may not be available when using a different code editor.
  2. In the external code editor, edit the NetLogic code and save the file.
    Tip:
    You can expose custom methods by adding such declarations:
    [ExportMethod]
    public void MyCustomMethod1() {
      //Add custom code here
    }