Click or drag to resize
NOVAS31MakeObject Method
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.2.0.2774)
Syntax
public short MakeObject(
	ObjectType Type,
	short Number,
	string Name,
	CatEntry3 StarData,
	ref Object3 CelObj
)

Parameters

Type
Type: ASCOM.AstrometryObjectType
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: SystemInt16
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: SystemString
Name of the object (50 characters maximum).
StarData
Type: ASCOM.AstrometryCatEntry3
Structure containing basic astrometric data for any celestial object located outside the solar system; the catalog data for a star
CelObj
Type: ASCOM.AstrometryObject3
Structure containing the object definition

Return Value

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