pycatia.in_interfaces.cameras¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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.in_interfaces.cameras.Cameras(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionCamerasA collection of all the Camera objects currently attached to a Documentobject.A camera can be created using the Viewer.NewCamera method of the Viewer object.The first seventh cameras of the collection are Camera3D objects and cannot bemodified or removed. They can just be retrieved and used “as is”. They storethe following viewpoints whose sight direction is always toward the 3D-axissystem origin:* isoThe origin is on a line with (1,1,1) as components with positivecoordinates* frontThe origin is on the x axis with a positive x coordinate* backThe origin is on the x axis with a negative x coordinate* leftThe origin is on the y axis with a positive y coordinate* rightThe origin is on the y axis with a negative y coordinate* topThe origin is on the z axis with a positive z coordinate* bottomThe origin is on the z axis with a negative z coordinateThe cameras of the Cameras collection are available using the dialog boxdisplayed by clicking the View->Defined Views menu.- item(i_index: cat_variant) Camera ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Item(CATVariant iIndex) As CameraReturns a camera using its index or its name from the Camerascollection.Parameters:iIndexThe index or the name of the camera to retrieve from the collectionof cameras. As a numerics, this index is the rank of the camera in thecollection. The index of the first camera in the collection is 1, and the indexof the last camera is Count. As a string, it is the name you assigned to thecamera using theAnyObject.Name property.Returns:The retrieved cameraExample:This example retrieves in ThisCamera the ninth camera, and inThatCamera the camera named MyCamera in the camera collection of the activedocument.Dim ThisCamera As CameraSet ThisCamera = CATIA.ActiveDocument.Cameras.Item(9)Dim ThatCamera As CameraSet ThatCamera = CATIA.ActiveDocument.Cameras.Item(“MyCamera”)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Remove(CATVariant iIndex)Removes a camera from the Cameras collection.Parameters:iIndexThe index or the name of the camera to remove from the collectionof cameras. As a numerics, this index is the rank of the camera in thecollection. The index of the first camera in the collection is 1, and the indexof the last camera is Count. As a string, it is the name you assigned to thecamera using theAnyObject.Name property. You cannot remove the first seventh cameras inthe collection.Example:The following example removes the tenth camera and the camera namedCameraToBeRemoved in the camera collection of the activedocument.CATIA.ActiveDocument.Cameras.Remove(10)CATIA.ActiveDocument.Cameras.Remove(“CameraToBeRemoved”)
- Parameters:
i_index (cat_variant) –
- Return type:
None