location_object.Type Property

Sets and gets the Integer Type of a Location Object, which indicates if the Location Object holds Cartesian or Angles data.

location_object.Type = <new_Integer_value>
-or-
...location_object.Type

Prerequisites

None

Parameters

None

Remarks

The Type property indicates if the location_object contains Cartesian or Angles position and orientation data. The possible values for this property are as follows:

Type Value Description

0

Location contains Cartesian position and orientation data.

1

Location contains a set of axes position values (“Angles”).

Many of the other Location Object properties and methods will generate an error if you attempt to access values that are not meaningful for the current Type of the location_object.

As a convenience, some methods, e.g. Angles and XYZ, automatically set the Type of a Location Object.

When a “New” Cartesian Location is created, its Type is automatically set to Cartesian.

Examples

Dim loc1 As New Location     ' Create new Cartesian Location
Dim iType As Integer
iType =loc1.Type ' iType will be set to 0
loc1.Angles(10.2,-3.2) ' Will automatically set Type to 1

See Also

Location Class