pycatia.fitting_interfaces.shot¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.fitting_interfaces.shot.Shot(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectShotThe interface to access a CATIAShot.Role: A CATIAShot (or shot) is the base element that Sampled objects arecomposed of. For example, when considering a Track, each recorded position is ashot.- append_abs_datas(i_position: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AppendAbsDatas(CATSafeArrayVariant iPosition)Appends to the data related to the shot. Role: In certain cases, a shotcontains more than one data item. The SetDatas method is used to store thefirst data item. This method is then used to specify any additional dataitemsParameters:iPositionAn array of associated values to the shot. Please note that thesevalues are absolute (relative to the world coordinate system), specifically towhere the object started from.
- Parameters:
i_position (tuple) –
- Return type:
None
- append_datas(i_position: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AppendDatas(CATSafeArrayVariant iPosition)Appends to the data related to the shot. Role: In certain cases, a shotcontains more than one data item. The SetDatas method is used to store thefirst data item. This method is then used to specify any additional dataitems.Parameters:iPositionAn array of associated values to the shot. Please note that thesevalues are relative to the position of object, specifically to where the objectstarted from.
- Parameters:
i_position (tuple) –
- Return type:
None
- get_abs_datas(i_index: int, o_position: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAbsDatas(short iIndex,CATSafeArrayVariant oPosition)Retrieves the data related to the shot. Role: To get the numericalinformation related to the shot. For example, for a Track, each shotcorresponds to a position that is used when evaluating a defined trajectory.Please note that these values are absolute (relative to the world coordinatesystem), specifically to where the object started from.Parameters:iIndexA shot can have more than one piece of data associated to it. Thevalue of iIndex refers to which specific data item to retrieve. The legalvalues of iIndex correspond to the rank of the data item (that is the 0 for thefirst item, 1 for the second item).Returns:An array of associated values to the shot.
- Parameters:
i_index (int) –
o_position (tuple) –
- Return type:
None
- get_datas(i_index: int, o_position: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetDatas(short iIndex,CATSafeArrayVariant oPosition)Retrieves the data related to the shot. Role: To get the numericalinformation related to the shot. For example, for a Track, each shotcorresponds 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:iIndexA shot can have more than one piece of data associated to it. Thevalue value of iIndex refers to which specific data item to retrieve. The legalvalues of iIndex correspond to the rank of the data item (that is the 0 for thefirst item, 1 for the second item).Returns:An array of associated values to the shot.
- Parameters:
i_index (int) –
o_position (tuple) –
- Return type:
None
- get_duration() float ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDuration() As doubleRetrieves the duration (in terms of distance) associated to a shot. Theduration of a shot is the amount of time needed to travel from the previousshot to the current shot. However, this method retrieves the distance of thecurrent shot from that of the previous shot. It is left for the user tocalculate the Time using distance/speed Formula. Some key things to noteare: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:oTimeThe duration (distance) of a shot.
- Return type:
float
- get_technological_datas(o_datas: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTechnologicalDatas(CATSafeArrayVariant oDatas)Retrieves all the data associated to the part.
- Parameters:
o_datas (tuple) –
- Return type:
None
- set_abs_datas(i_position: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetAbsDatas(CATSafeArrayVariant iPosition)Set the data related to the shot. Role: To set the numerical informationrelated to the shot. For example, for a Track, each shot corresponds to aposition that is used when evaluating a definedtrajectory.Parameters:iPositionAn array of associated values to the shot. Please note that thesevalues are absolute (relative to the world coordinate system), specifically towhere the object started from.
- Parameters:
i_position (tuple) –
- Return type:
None
- set_datas(i_position: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDatas(CATSafeArrayVariant iPosition)Set the data related to the shot. Role: To set the numerical informationrelated to the shot. For example, for a Track, each shot corresponds to aposition that is used when evaluating a definedtrajectory.Parameters:iPositionAn array of associated values to the shot. Please note that thesevalues are relative to the position of object, specifically to where the objectstarted from.
- Parameters:
i_position (tuple) –
- Return type:
None
- set_duration(i_duration: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDuration(double iDuration)Sets the duration (in terms of distance) associated to a shot. The durationof a shot is the amount of time needed to travel from the previous shot to thecurrent shot. However, this method sets the distance of the current shot fromthat of the previous shot. It is left for the user to calculate the distancethat needs to be set for the shot using the Time*Speed Formula. Some key thingsto 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:oTimeThe duration (distance) of a shot.
- Parameters:
i_duration (float) –
- Return type:
None
- set_technological_datas(i_datas: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTechnologicalDatas(CATSafeArrayVariant iDatas)Sets all the data associated to the part.
- Parameters:
i_datas (tuple) –
- Return type:
None