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

Namespace: ASCOM.Astrometry.NOVAS
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public short MakeObject(
	ObjectType Type,
	short Number,
	string Name,
	CatEntry3 StarData,
	ref Object3 CelObj
)
Visual Basic
Public Function MakeObject ( _
	Type As ObjectType, _
	Number As Short, _
	Name As String, _
	StarData As CatEntry3, _
	ByRef CelObj As Object3 _
) As Short
Visual C++
public:
virtual short MakeObject(
	ObjectType Type, 
	short Number, 
	String^ Name, 
	CatEntry3 StarData, 
	Object3% CelObj
) sealed

Parameters

Type
Type: ASCOM.Astrometry..::..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
Type: System..::..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
Type: System..::..String
Name of the object (50 characters maximum).
StarData
Type: ASCOM.Astrometry..::..CatEntry3
Structure containing basic astrometric data for any celestial object located outside the solar system; the catalog data for a star
CelObj
Type: ASCOM.Astrometry..::..Object3%
Structure containing the object definition

Return Value

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

Remarks