## Sample.SubComponent

### Introduced

v3.0

### Description

Creates a SubComponent from the Sample object.

### C# Syntax

    // get accessor

    SubComponent rtn = Sample.SubComponent;

### Examples

#### VBScript Example

    set oCube = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")

    set oFacet  = oCube.ActivePrimitive.Geometry.Facets(2)

    set oSubComponent = oFacet.Samples(0).SubComponent

    SelectObj oSubComponent