Scene (Object)

Represent the scene.
A scene stores a state of a product in a given ProductDocument.

This state is composed of product properties, graphical attibutes, activation status and position for each component of the product.


Methods


Func GetDefinition( iProduct) As
Returns the product's definition.
Parameters:
iProduct
The product.
Returns:
The product's definition.
Example:
    This example retrieves the Engine product's definition
    in the Configuration1 scene.
    
    Dim Definition As String
    Definition = Configuration1.GetDefinition(Engine)
    
Func GetDescription( iProduct) As
Returns the product's description.
Parameters:
iProduct
The product.
Returns:
The product's description.
Example:
    This example retrieves the Engine product's description
    in the Configuration1 scene.
    
    Dim Description As String
    Description = Configuration1.GetDescription(Engine)
    
Func GetMasterShapeRepresentation( iProduct, iLoadIfNecessary) As
Retrieves the product's master shape representation.
Parameters:
iProduct.
The product
iLoadIfNecessary
Parameter to set to True if the master shape representation should be 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 shape representation
    in the Configuration1 scene.
    
    Dim MSRep As Object
    Set MSRep = Configuration1.GetMasterShapeRepresentation(Engine)
    
Func GetMove( iProduct) As
Returns the product's move object. The move object is aggregated by the product object and itself aggregates a movable object to which you can apply a move transformation by means of an isometry matrix. It moves your product master shape representation according to this isometry.
Parameters:
iProduct
The product
Returns:
The move.
Example:
    This example retrieves the EngineMove move from the Engine product
    in the Configuration1 scene.
    
    Dim EngineMove As Move
    Set EngineMove = Configuration1.GetMove(Engine)
    
Func GetNomenclature( iProduct) As
Returns the product's nomenclature.
Parameters:
iProduct
The product.
Returns:
The product's nomenclature.
Example:
    This example retrieves the Engine product's nomenclature
    in the Configuration1 scene.
    
    Dim Nomenclature As String
    Nomenclature = Configuration1.GetNomenclature(Engine)
    
Func GetPartNumber( iProduct) As
Returns the product's part number.
Parameters:
iProduct
The product.
Returns:
The product's part number.
Example:
    This example retrieves the Engine product's part number
    in the Configuration1 scene.
    
    Dim PartNumber As String
    PartNumber = Configuration1.GetPartNumber(Engine)
    
Func GetPosition( iProduct) As
Returns the product's position object in the scene. The position object is the object aggregated by the product object that holds the position of the master shape representation in the space.
Parameters:
iProduct
The product
Returns:
The position.
Example:
    This example retrieves the EnginePosition position from the Engine product
    in the Configuration1 scene.
    
    Dim EnginePosition As Position
    Set EnginePosition = Configuration1.GetPosition(Engine)
    
Func GetRevision( iProduct) As
Returns the product's revision number.
Parameters:
iProduct
The product.
Returns:
The product's revision number.
Example:
    This example retrieves the Engine product's revision number
    in the Configuration1 scene.
    
    Dim Revision As String
    Revision = Configuration1.GetRevision(Engine)
    
Func GetSource( iProduct) As
Returns the product's source.
Parameters:
iProduct
The product.
Returns:
The product's source.
Example:
    This example retrieves the Engine product's source
    in the Configuration1 scene.
    
    Dim Source
    Source = Configuration1.GetSource(Engine)
    
Func HasAMasterShapeRepresentation( iProduct) As
Returns whether the product has a master shape representation in the scene.
Parameters:
iProduct
The product
Returns:
True if the product has a master shape representation.
Example:
    This example returns whether the Engine product has a master shape representation
    in the Configuration1 scene.
    
    HasMSRep = Configuration1.HasAMasterShapeRepresentation(Engine)
    
Func UpgradeToFull() As
Create a ProductScene in Full mode from the current Scene.
Returns:
The new ProductScene.
Example:
    This example creates the FullScene ProductScene from the Configuration1 scene.
    
    Dim FullScene As ProductScene
    Set FullScene = Configuration1.UpgradeToFull
    
Func UpgradeToPartial() As
Create a ProductScene in Partial mode from the current Scene.
Returns:
The new ProductScene.
Example:
    This example creates the PartialScene ProductScene from the Configuration1 scene.
    
    Dim PartialScene As ProductScene
    Set PartialScene = Configuration1.UpgradeToPartial