Role: A CATIAShot (or shot) is the base element that objects are composed of. For example, when considering a , each recorded position is a shot.
Methods
- Sub AppendAbsDatas( iPosition)
-
Appends to the data related to the shot.
Role: In certain cases, a shot contains more than one data item. The
SetDatas method is used to store the first data item. This method is
then used to specify any additional data items
- Parameters:
-
- iPosition
- An array of associated values to the shot. Please note that these values are absolute (relative to the world coordinate system), specifically to where the object started from. dd>
- Sub AppendDatas( iPosition)
-
Appends to the data related to the shot.
Role: In certain cases, a shot contains more than one data item. The
SetDatas method is used to store the first data item. This method is
then used to specify any additional data items.
- Parameters:
-
- iPosition
- An array of associated values to the shot. Please note that these values are relative to the position of object, specifically to where the object started from. dd>
- Sub GetAbsDatas( iIndex, oPosition)
-
Retrieves the data related to the shot.
Role: To get the numerical information related to the shot. For
example, for a
, each shot corresponds to a position that is used when evaluating a defined trajectory. Please note that these values
are absolute (relative to the world coordinate system), specifically to where
the object started from.
- Parameters:
-
- iIndex
- A shot can have more than one piece of data associated to it. The value of iIndex refers to which specific data item to retrieve. The legal values of iIndex correspond to the rank of the data item (that is the 0 for the first item, 1 for the second item). dd>
- Returns:
- An array of associated values to the shot. dd>
- Sub GetDatas( iIndex, oPosition)
-
Retrieves the data related to the shot.
Role: To get the numerical information related to the shot. For
example, for a
, each shot corresponds to a position that is used when evaluating a defined trajectory. Please note that these values
are relative to the position of object, specifically to where the object
started from.
- Parameters:
-
- iIndex
- A shot can have more than one piece of data associated to it. The value value of iIndex refers to which specific data item to retrieve. The legal values of iIndex correspond to the rank of the data item (that is the 0 for the first item, 1 for the second item). dd>
- Returns:
- An array of associated values to the shot. dd>
- Func GetDuration() As
-
Retrieves the duration (in terms of distance) associated to a shot.
The duration of a shot is the amount of time needed to travel from
the previous shot to the current shot.
However, this method retrieves the distance of the current shot
from that of the previous shot. It is left for the user to calculate
the Time using distance/speed Formula.
Some key things to note are:
- The first shot should have a duration of zero.
- The value of the duration is a positive real number. Hence, 0.454 & 1345 are legal while -18 is not.
- Parameters:
-
- oTime
- The duration (distance) of a shot. dd>
- Sub GetTechnologicalDatas( oDatas)
- Retrieves all the data associated to the part.
- Sub SetAbsDatas( iPosition)
-
Set the data related to the shot.
Role: To set the numerical information related to the shot. For
example, for a
, each shot corresponds to a position that is used when evaluating a defined trajectory.
- Parameters:
-
- iPosition
- An array of associated values to the shot. Please note that these values are absolute (relative to the world coordinate system), specifically to where the object started from. dd>
- Sub SetDatas( iPosition)
-
Set the data related to the shot.
Role: To set the numerical information related to the shot. For
example, for a
, each shot corresponds to a position that is used when evaluating a defined trajectory.
- Parameters:
-
- iPosition
- An array of associated values to the shot. Please note that these values are relative to the position of object, specifically to where the object started from. dd>
- Sub SetDuration( iDuration)
-
Sets the duration (in terms of distance) associated to a shot.
The duration of a shot is the amount of time needed to travel from
the previous shot to the current shot.
However, this method sets the distance of the current shot
from that of the previous shot. It is left for the user to calculate
the distance that needs to be set for the shot using the Time*Speed Formula.
Some key things to note are:
- The first shot should have a duration of zero.
- The value of the duration is a positive real number. Hence, 0.454 & 1345 are legal while -18 is not.
- Parameters:
-
- oTime
- The duration (distance) of a shot. dd>
- Sub SetTechnologicalDatas( iDatas)
- Sets all the data associated to the part.