ViewCollection
A collection of 3D model views.
Example
app = cf.GetApplication() project = app:NewProject() -- Add a new 3D model view view = app.Views:Add() -- Get the number of view items count = app.Views.Count -- Close the first view item app.Views[1]:Close()
Usage locations (collections)
The following objects contain the ViewCollection collection:
Property List
Method List
- Add ()
- Adds a new 3D model view to the collection. (Returns a View object.)
- Contains (label string)
- Checks if the collection contains an item with the given label. (Returns a boolean object.)
- Item (index number)
- Returns the View at the given index. (Returns a View object.)
- Item (label string)
- Returns the View with the given label. (Returns a View object.)
- Items ()
- Returns a table of View. (Returns a List of View object.)
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated. (Returns a boolean object.)
Index List
Property Details
Method Details
- Add ()
- Adds a new 3D model view to the collection.
- Return
- View
- The new 3D model view.
- Contains (label string)
- Checks if the collection contains an item with the given label.
- Item (index number)
- Returns the View at the given index.
- Item (label string)
- Returns the View with the given label.
- Items ()
- Returns a table of View.
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated.