Getting a “Handle” on the Far Field Result
Get a “handle” on the far field result in the far field collection.
myFarFieldResult = myApplication.Models[1].Configurations[1].FarFields[1]
- A far field result is an object and since there may be multiple far field results in a project, it is part of the FarFieldCollection.
- Search for FarFieldCollection in the Help1.
-
In FarFieldCollection, under Index
List, note the following options to specify a specific far field
result in the collection:
- [number]
- [string]
To specify the far field data in the collection, we will use [number] since we only added a single far field request (as a result there will only be one far field result.
-
In the Help, under FarFieldCollection > Usage locations, note the following:
SolutionConfiguration object has collection FarFields.
The result is then:FarFields[1]
-
Determine the syntax to prepend to FarFields[1]:
- Since we know that far field requests are defined per configuration and there may be multiple configurations in the project, it is part of the ConfigurationCollection.
-
In the Help, under ConfigurationCollection > Usage locations, note the following:
Model object has collection Configurations.
-
In ConfigurationCollection, under
Index List, note the following options to
specify a specify a configuration in the collection:
- [number]
- [string]
To specify the configuration in the collection, we will use [number] since the model only contains a single configuration. The result is then:Configurations[1].FarFields[1]
-
Determine the syntax to prepend to Configurations[1]:
- Since we know that there may be multiple models in a project a, it is part of the ModelCollection.
-
In the Help, under ModelCollection > Usage locations, note the following:
Application object has collection Models.
-
In ModelCollection, under Index
List, note the following options to specify a specific
model in the collection:
- [number]
- [string]
To specify the model in the project, we will use [number] since the project only contains a single model. The result is then:
-
Since we already have a “handle” on the application, the result is:
myApplication.Models[1].Configurations[1].FarFields[1]
-
Add a reference to the far field result:
myFarFieldResult = myApplication.Models[1].Configurations[1].FarFields[1]