AGI STK Objects 11 Send comments on this topic.
AddObstruction Method (IAgAccessCnstrThirdBody)
See Also 
Obstruction
The path to the obstruction.





Description

Adds an Obstruction by Name

Syntax

[Visual Basic .NET]
Public Sub AddObstruction( _
   ByVal Obstruction As String _
) 

[C#]
public void AddObstruction(
string Obstruction
);

[Managed C++]
public: void AddObstruction(
String __gc ^ Obstruction
);

[Java]
public  addObstruction(
String Obstruction
);

[Unmanaged C++]
public: HRESULT AddObstruction(
BSTR Obstruction
);

Parameters

Obstruction
The path to the obstruction.

Remarks

Adds an obstruction to the access constraints.

Note on Solar/Lunar Obstructions

Please note the following regarding the relationship between setting Solar/Lunar in the GUI and in this Object Model:

If you select the Solar/Lunar Obstruction checkbox on the Sun Constraints page, it sets both the Sun and the Moon as obstructions. If you then want to remove one or both of these obstructions in the Object Model, you must use the RemoveObstruction method twice, i.e., once for each body.

Similarly, to set the Sun and the Moon as obstructions in the Object Model, you must use the AddObstruction method twice.

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1