Defining a Current Request
Create a currents request. The currents request is added for the default configuration, StandardConfiguration1.
myCurrents = myProject.Contents.SolutionConfigurations[1].Currents:Add() myCurrents.Label = "Currents"

- A currents request is a object and since there may be multiple objects in the model, it is part of the CurrentsCollection.
- Search for CurrentsCollection in the Help1.
-
In the Help, under
, search for methods that are applicable to adding a currents
request:
- Add (properties table)
- Add ()
To create a currents request, we will use the method:Add ()
-
Determine the syntax to prepend to Add:
-
Add a reference to the newly created currents request:
myCurrents = myProject.Contents.SolutionConfigurations[1].Currents:Add()
-
Set the far field request label to Currents1:
myCurrents.Label = "Currents"
Tip: View the Currents (object) in the Help for a short example.