All Frameworks  Object Hierarchy  This Framework  Previous  Indexes  

Scenes (Collection)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---Collection
          |
          +---Scenes
 


A collection of scenes contained in a given ProductDocument.

Method Index

AddCopyScene
Creates a scene from another and adds it to the Scenes collection.
AddNewScene
Creates a scene from a product and adds it to the Scenes collection.
Remove
Removes a scene from the Scenes collection.

Methods


o Func AddCopyScene(CATBSTR iName,
CATIAWorkScene iReferenceScene) As CATIAWorkScene
Creates a scene from another and adds it to the Scenes collection.
Parameters:
iName
The name of the scene
iReferenceScene
The scene to be copied
Returns:
The created scene
Example:
This example creates the Engine scene from the SpareWheel scene and adds the scene to the ToolKits collection.
    Dim Engine As Scene
    Set Engine = ToolKits.AddNewScene("Engine", SpareWheel)
    
o Func AddNewScene(CATBSTR iName,
CATIAProduct iReferenceProduct) As CATIAWorkScene
Creates a scene from a product and adds it to the Scenes collection.
Parameters:
iName
The name of the scene
iReferenceProduct
The product used as reference
Returns:
The created scene
Example:
This example creates the SpareWheel scene from the reference product FrontRightWheel and adds the scene to the ToolKits collection.
    Dim SpareWheel As Scene
    Set SpareWheel = ToolKits.AddNewScene("SpareWheel", FrontRightWheel)
    
o Sub Remove(CATIAWorkScene iScene)
Removes a scene from the Scenes collection.
Parameters:
iScene
The scene to remove.
Example:
This example removes the Engine scene from the ToolKits collection.
    ToolKits.Remove Engine
    

Copyright © 2003, Dassault Systèmes. All rights reserved.