Share

ModelStates.Add Method

Parent Object: ModelStates

Description

Method that creates a new ModelState. The newly created ModelState is returned.

Syntax

ModelStates.Add( [Name] As String ) As ModelState

Parameters

Name Type Description
Name String Optional input String that specifies the name of the new ModelState. If not specified a default name will be used.

This is an optional argument whose default value is "".

Samples

Name Description
Create a model state This sample demonstrates creation of a model state in an assembly.
Modify Multiple Model States Sample This sample demonstrates how to set multiple but not all model states into edit mode.

Version

Introduced in version 2022

Was this information helpful?