Click or drag to resize
NOVAS2COMSetBody Method
Sets up a structure of type 'body' - defining 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.3.0.2839)
Syntax
public short SetBody(
	BodyType type,
	Body number,
	string name,
	ref BodyDescription cel_obj
)

Parameters

type
Type: ASCOM.AstrometryBodyType
Type of body
number
Type: ASCOM.AstrometryBody
Body number
name
Type: SystemString
Name of the body.
cel_obj
Type: ASCOM.AstrometryBodyDescription
OUT: Structure containg the body definition

Return Value

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