Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Creates a new submodel with the given name, and then returns the new submodel to the caller. Only objects which are selected in the main model are added to the new submodel. PARAMETERS: Name (String).

Syntax

Code Block
languagevb
Public Function Add( _
   ByVal Name As Variant _
) As SubModel

Parameters

  • Name

Example

Code Block
languagevb
Dim MyModel As Model
Dim NewSubModelName As String

NewSubModelName = "Sales"

MyModel.SubModels.Add(NewSubModelName)
Info
titleSee Also