pycatia.osm_interfaces.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.scene.Scene(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSceneRepresent the scene.A 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.- get_definition(i_product: Product) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDefinition(Product iProduct) As CATBSTRReturns the product’s definition.Parameters:iProductThe product.Returns:The product’s definition.Example:This example retrieves the Engine product’sdefinitionin the Configuration1 scene.Dim Definition As StringDefinition = Configuration1.GetDefinition(Engine)
- Parameters:
i_product (Product) –
- Return type:
str
- get_description(i_product: Product) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDescription(Product iProduct) As CATBSTRReturns the product’s description.Parameters:iProductThe product.Returns:The product’s description.Example:This example retrieves the Engine product’sdescriptionin the Configuration1 scene.Dim Description As StringDescription = Configuration1.GetDescription(Engine)
- Parameters:
i_product (Product) –
- Return type:
str
- get_master_shape_representation(i_product: Product, i_load_if_necessary: bool) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetMasterShapeRepresentation(Product iProduct,boolean iLoadIfNecessary) As CATBaseDispatchRetrieves the product’s master shape representation.Parameters:iProduct.The productiLoadIfNecessaryParameter to set to True if the master shape representation shouldbe loaded to determine if it exists, or to False otherwise.Returns:The product’s master shape representation.Example:This example retrieves the Engine product’s master shaperepresentationin the Configuration1 scene.Dim MSRep As ObjectSet MSRep = Configuration1.GetMasterShapeRepresentation(Engine)
- get_move(i_product: Product) Move ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetMove(Product iProduct) As MoveReturns the product’s move object. The move object is aggregated by theproduct object and itself aggregates a movable object to which you can apply amove transformation by means of an isometry matrix. It moves your productmaster shape representation according to this isometry.Parameters:iProductThe productReturns:The move.Example:This example retrieves the EngineMove move from the Engineproductin the Configuration1 scene.Dim EngineMove As MoveSet EngineMove = Configuration1.GetMove(Engine)
- get_nomenclature(i_product: Product) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetNomenclature(Product iProduct) As CATBSTRReturns the product’s nomenclature.Parameters:iProductThe product.Returns:The product’s nomenclature.Example:This example retrieves the Engine product’snomenclaturein the Configuration1 scene.Dim Nomenclature As StringNomenclature = Configuration1.GetNomenclature(Engine)
- Parameters:
i_product (Product) –
- Return type:
str
- get_part_number(i_product: Product) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPartNumber(Product iProduct) As CATBSTRReturns the product’s part number.Parameters:iProductThe product.Returns:The product’s part number.Example:This example retrieves the Engine product’s partnumberin the Configuration1 scene.Dim PartNumber As StringPartNumber = Configuration1.GetPartNumber(Engine)
- Parameters:
i_product (Product) –
- Return type:
str
- get_position(i_product: Product) Position ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPosition(Product iProduct) As PositionReturns the product’s position object in the scene. The position object isthe object aggregated by the product object that holds the position of themaster shape representation in the space.Parameters:iProductThe productReturns:The position.Example:This example retrieves the EnginePosition position from the Engineproductin the Configuration1 scene.Dim EnginePosition As PositionSet EnginePosition = Configuration1.GetPosition(Engine)
- get_revision(i_product: Product) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetRevision(Product iProduct) As CATBSTRReturns the product’s revision number.Parameters:iProductThe product.Returns:The product’s revision number.Example:This example retrieves the Engine product’s revisionnumberin the Configuration1 scene.Dim Revision As StringRevision = Configuration1.GetRevision(Engine)
- Parameters:
i_product (Product) –
- Return type:
str
- get_source(i_product: Product) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSource(Product iProduct) As CatProductSourceReturns the product’s source.Parameters:iProductThe product.Returns:The product’s source.Example:This example retrieves the Engine product’ssourcein the Configuration1 scene.Dim SourceSource = Configuration1.GetSource(Engine)
- Parameters:
i_product (Product) –
- Return type:
enum cat_product_source
- Return type:
int
- has_a_master_shape_representation(i_product: Product) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func HasAMasterShapeRepresentation(Product iProduct) AsbooleanReturns whether the product has a master shape representation in thescene.Parameters:iProductThe productReturns:True if the product has a master shape representation.Example:This example returns whether the Engine product has a master shaperepresentationin the Configuration1 scene.HasMSRep = Configuration1.HasAMasterShapeRepresentation(Engine)
- Parameters:
i_product (Product) –
- Return type:
bool
- upgrade_to_full() ProductScene ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func UpgradeToFull() As ProductSceneCreate a ProductScene in Full mode from the current Scene.Returns:The new ProductScene.Example:This example creates the FullScene ProductScene from theConfiguration1 scene.Dim FullScene As ProductSceneSet FullScene = Configuration1.UpgradeToFull
- Return type:
- upgrade_to_partial() ProductScene ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func UpgradeToPartial() As ProductSceneCreate a ProductScene in Partial mode from the currentScene.Returns:The new ProductScene.Example:This example creates the PartialScene ProductScene from theConfiguration1 scene.Dim PartialScene As ProductSceneSet PartialScene = Configuration1.UpgradeToPartial
- Return type: