STK ObjectsSend comments on this topic.
RemoveObstruction Method (IAgAccessCnstrThirdBody)
See Also
Obstruction
Path of the obstruction being removed.
Windows





Windows & Linux

Description

Remove an Obstruction by Name

Syntax

[Visual Basic .NET]
Public Sub RemoveObstruction( _
    ByVal Obstruction As String _
)
[C#]
public void RemoveObstruction(
    string Obstruction
);
[Managed C++]
public: void RemoveObstruction(
    String __gc ^ Obstruction
);
[Unmanaged C++]
public: HRESULT RemoveObstruction(
    BSTR Obstruction
);
[Java]
public void removeObstruction(
    String Obstruction
);
[Python - STK API ]
def RemoveObstruction(self, Obstruction:str) -> None:

Parameters

Obstruction
Path of the obstruction being removed.

Remarks

Removes the obstruction specified.


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

© 2024 Analytical Graphics, Inc. All Rights Reserved.