pycatia.fitting_interfaces.shots¶
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.shots.Shots(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionShotsThe collection of all shot objects contained in the currentsampled.- append(i_shot: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Append(CATBaseDispatch iShot)Adds a shot to the end of the shots collection.Parameters:iShotThe shot to be addedExample:The following example adds a shot (called myShot to the shotscollection.Shots.Append (myShot)
- Parameters:
i_shot (AnyObject) –
- Return type:
None
- create_shot() AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateShot() As CATBaseDispatchCreates a new shot and adds it to the Shots collection.Returns:The created shotExample:The following example creates a shot newShot in the Shotscollection.Dim newShotSet newShot = Shots.CreateShot
- Return type:
- create_specific_shot(i_type: str) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateSpecificShot(CATBSTR iType) As CATBaseDispatchCreates a new shot of a specific type and adds it to the Shotscollection.Parameters:iTypeSpecifies the type of the shot to be created. The legal values areFITShotPoints, FITShotDouble, FITShotSimple and FITShotGeneric. These differenttypes correspond to the need of creating different shots for different types ofobjects.Returns:The created ShotExample:The following example creates a shot shot in the Shotscollection.Set newShots = Shots.CreateShot (FITSHOTDouble)
- Parameters:
i_type (str) –
- Return type:
- insert_after(i_index: int, i_shot: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub InsertAfter(short iIndex,CATBaseDispatch iShot)Adds a shot to a specific location to the shotscollection.Parameters:iIndexThe value of the location of an already existing shot. Then wheninserting a new shot, it will be placed after it. It is a positive integer,with the range of 1 to the value of the last shot.iShotThe shot to be addedExample:The following example inserts a shot after the secondshot.Shots.InsertAfter (2, myShot)
- Parameters:
i_index (int) –
i_shot (AnyObject) –
- Return type:
None
- item(i_index: cat_variant) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As CATBaseDispatchReturns a shot using its index from the colection.Parameters:iIndexThe index of the item to retrieve from the collection of shots.Numerically, the index value corresponds to the rank of the shot in thecollection (ie. the first is 1, second is 2, …).Returns:The retrieved ShotExample:The following example retrieves the second shot from the Shotscollection.Dim myShotSet myShot = myShots.Item (2)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Remove(CATVariant iIndex)Removes a shot from the collection.Parameters:iIndexThe index of the shot to remove from the collection of the shots.Numerically, the index value corresponds to the rank of the shot in thecollection (ie. the first is 1, second is 2, …).Example:The following example removes the third shot from the Shotscollection of the active document.Shots.Remove (3)
- Parameters:
i_index (cat_variant) –
- Return type:
None