pycatia.in_interfaces.light_sources¶
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.light_sources.LightSources(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionLightSourcesA collection of all the LightSource objects.This collection is currently managed by a Viewer3D object.- add() LightSource ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func Add() As LightSourceAdds a new light source to the LightSources collection.Example:The following adds a light source to the collection attached to the activeviewer. This viewer must be a @see Viewer3D object.Dim MyViewer As ViewerSet MyViewer = CATIA.ActiveWindow.ActiveViewerDim MyLightSource As LightSourceSet MyLightSource = MyViewer.LightSources.Add
- Return type:
- item(i_index: int) LightSource ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Item(long iIndex) As LightSourceReturns a light source from its index in the LightSourcescollection.Parameters:iIndexThe index of the light source to retrieve in the collection oflight sources. Compared with other collections, you cannot use the name of thelight source as argument.Returns:The retrieved light sourceExample:The following example returns in MyLightSource the sixth light source inthe collection.Dim MyLightSource As LightSourceSet MyLightSource = LightSources.Item(6)
- Parameters:
i_index (int) –
- Return type:
- remove(i_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Remove(long iIndex)Removes a light source from the LightSources collection.Parameters:iIndexThe index of the light source to remove. Compared with othercollections, you cannot use the name of the light source as argument.Example:The following example removes the second light source in the collectionattached to the active viewer. This viewer must be aViewer3D object.Dim MyViewer As ViewerSet MyViewer = CATIA.ActiveWindow.ActiveViewerMyViewer.LightSources.Remove(2)
- Parameters:
i_index (int) –
- Return type:
None