pycatia.osm_interfaces.product_scenes¶
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.osm_interfaces.product_scenes.ProductScenes(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionProductScenesA collection of ProductScenes contained in a givenProductDocument.- add_product_scene_full(i_name: str, i_reference_products: tuple) ProductScene ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddProductSceneFull(CATBSTR iName,CATSafeArrayVariant iReferenceProducts) As ProductSceneCreates a new FULL scene from a set of products and adds it to theProductScenes collection.Parameters:iNameThe name of the new sceneiReferenceProductsProducts used as root nodes of the new sceneReturns:The created new full sceneExample:This example creates the SpareWheel new scene from the referenceproductFrontRightWheel and adds the scene to the ToolKitscollection.Dim SpareWheel As ProductSceneSet SpareWheel = ToolKits.AddProductSceneFull(“SpareWheel”, FrontRightWheel)
- Parameters:
i_name (str) –
i_reference_products (tuple) –
- Return type:
- add_product_scene_partial(i_name: str, i_reference_products: tuple) ProductScene ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddProductScenePartial(CATBSTR iName,CATSafeArrayVariant iReferenceProducts) As ProductSceneCreates a new DELTA scene from a set of products and adds it to theProductScenes collection.Parameters:iNameThe name of the new sceneiReferenceProductsProducts used as root nodes of the new sceneReturns:The created new delta sceneExample:This example creates the SpareWheel new scene from the referenceproductFrontRightWheel and adds the scene to the ToolKitscollection.Dim SpareWheel As ProductSceneSet SpareWheel = ToolKits.AddProductScenePartial(“SpareWheel”, FrontRightWheel)
- Parameters:
i_name (str) –
i_reference_products (tuple) –
- Return type:
- item(i_index: cat_variant) ProductScene ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As ProductSceneReturns a scene using its index or its name from the ProductScenescollection.Parameters:iIndexThe index or the name of the ProductScene to retrieve from thecollection of ProductScenes. As a numerics, this index is the rank of theProductScene in the collection. The index of the first ProductScene in thecollection is 1, and the index of the last ProductScene is Count. As a string,it is the name you assigned to the ProductScene.Returns:The retrieved ProductScene.Example:This example retrieves in ThisProductScene the ninthProductScene,and in ThatProductScene the ProductScene namedProductScene3 from the TheProductScenes collection.Dim ThisProductScene As ProductSceneSet ThisProductScene = TheProductScenes.Item(9)Dim ThatProductScene As ProductSceneSet ThatProductScene = TheProductScenes.Item(“ProductScene3”)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_product_scene: ProductScene) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Remove(ProductScene iProductScene)Removes a product-scene from the ProductScenes collection.Parameters:iSceneThe scene to remove.Example:This example removes the Engine product-scene from the ToolKitscollection.ToolKits.Remove Engine
- Parameters:
i_product_scene (ProductScene) –
- Return type:
None