STK ObjectsSend comments on this topic.
IsProfileTypeSupported Method (IAgVeStandardBasic)
See Also
Profile
Windows





Windows & Linux

Description

Get a value indicating whether the specified type can be used.

Syntax

[Visual Basic .NET]
Public Function IsProfileTypeSupported( _
    ByVal Profile As AgEVeProfile _
) As Boolean
[C#]
public bool IsProfileTypeSupported(
    AgEVeProfile Profile
);
[Managed C++]
public: bool IsProfileTypeSupported(
    AgEVeProfile Profile
);
[Unmanaged C++]
public: HRESULT IsProfileTypeSupported(
    AgEVeProfile Profile,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool isProfileTypeSupported(
    AgEVeProfile Profile
);
[Python - STK API ]
def IsProfileTypeSupported(self, Profile:"AgEVeProfile") -> bool:

Parameters

Profile

See Also

Example

Set attitude profile type (if profile is supported)
[C#]
IAgVeOrbitAttitudeStandard standard = satellite.Attitude as IAgVeOrbitAttitudeStandard;
if (standard.Basic.IsProfileTypeSupported(AgEVeProfile.eProfileSpinning))
{
    standard.Basic.SetProfileType(AgEVeProfile.eProfileSpinning);
}
Set attitude profile type (if profile is supported)
[Visual Basic .NET]
Dim standard As IAgVeOrbitAttitudeStandard = TryCast(satellite.Attitude, IAgVeOrbitAttitudeStandard)
If standard.Basic.IsProfileTypeSupported(AgEVeProfile.eProfileSpinning) Then
	standard.Basic.SetProfileType(AgEVeProfile.eProfileSpinning)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.