pycatia.osm_interfaces.product_scene¶
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_scene.ProductScene(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectProductSceneRepresent the Product-Scene.A Product-Scene stores a state of a product in a givenProductDocument.This state is composed of product properties, graphical attibutes, activationstatus and position for each component of the product.- copy(i_type: int) ProductScene ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Copy(CatSceneType iType) As ProductSceneCreates another Product-Scene from the current one with the possibility tohave a different mode.Parameters:iTypeThe Product-Scene typeReturns:The Product-Scene created from the current one.Example:This example returns whether the CopyScene Product-Scene createdfromthe Configuration1 Product-Scene, with the DELTAmode.Dim type As CatSceneTypetype = CatSceneTypeDeltaDim CopyScene As ProductSceneCopyScene = Configuration1.Copy(type)
- Parameters:
i_type (int) – enum cat_scene_type
- Return type:
- exists_in_scene(i_product: Product) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ExistsInScene(Product iProduct) As booleanReturns whether the product has overloaded attributes in theProduct-Scene.Parameters:iProductThe productReturns:True if the Product-Scene overloads some of the product attributes.Example:This example returns whether the Engine product existsinthe Configuration1 Product-Scene.ExistsInSc = Configuration1.ExistsInScene(Engine)
- Parameters:
i_product (Product) –
- Return type:
bool
- get_scene_product_data(i_product: Product) SceneProductData ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSceneProductData(Product iProduct) AsSceneProductDataReturns the SceneProductData associated to the given product in theProduct-Scene. If it does not exist yet, it is created.Parameters:iProductThe productReturns:The SceneProductData associated to the given product.Example:This example returns SceneProductData associated to Engineinthe NewSceneDelta Product-Scene.Dim scenePrd As SceneProductDatatype = NewSceneDelta.GetSceneProductData(Engine)
- Parameters:
i_product (Product) –
- Return type:
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Type() As CatSceneType (Read Only)Returns the type of the Product-Scene.Example:This example reads the type of NewSceneDeltaProduct-Scene.Dim type As CatSceneTypetype = NewSceneDelta.Type
- Returns:
enum cat_scene_type
- Return type:
int