NovasMakeObject Method

Makes a structure of type 'object' - specifying a celestial object - based on the input parameters.

Definition

Namespace: ASCOM.Tools.Novas31
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static short MakeObject(
	ObjectType Type,
	short Number,
	string Name,
	CatEntry3 StarData,
	ref Object3 CelObj
)

Parameters

Type  ObjectType
Type of object: 0 ... major planet, Sun, or Moon; 1 ... minor planet; 2 ... object located outside the solar system (e.g. star, galaxy, nebula, etc.)
Number  Int16
Body number: For 'Type' = 0: Mercury = 1,...,Pluto = 9, Sun = 10, Moon = 11; For 'Type' = 1: minor planet numberFor 'Type' = 2: set to 0 (zero)
Name  String
Name of the object (50 characters maximum).
StarData  CatEntry3
Structure containing basic astrometric data for any celestial object located outside the solar system; the catalog data for a star
CelObj  Object3
Structure containing the object definition

Return Value

Int16
            0 ... everything OK
            1 ... invalid value of 'Type'
            2 ... 'Number' out of range
            

Version Information

.NET Standard

Supported in: 2.0

See Also