Click or drag to resize

StkCityDatabaseEntryExtensionsCreatePlatform Method

Create a platform for a single StkCityDatabaseEntry.

Namespace:  AGI.Foundation.Platforms
Assembly:  AGI.Foundation.Platforms (in AGI.Foundation.Platforms.dll) Version: 20.3.405.0 (20.3.405.0)
Syntax
public static Platform CreatePlatform(
	this StkCityDatabaseEntry entry
)

Parameters

entry
Type: AGI.Foundation.StkStkCityDatabaseEntry
The entry that contains the information for the city to be created.

Return Value

Type: Platform
A fully configured platform.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StkCityDatabaseEntry. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
InvalidOperationException Thrown when the entry's CentralBodyName does not exist in CentralBodiesFacet.
Remarks

The created platform will have the following properties configured:

PropertyValue
NameCityName
LocationPoint A PointCartographic located at the entry's Longitude, Latitude, with zero height, defined on the CentralBody matching the entry's CentralBodyName.
OrientationAxesAxesEastNorthUp
See Also