VariableGroup
A group of variables and variable groups.
Example
application = cf.Application.GetInstance() project = application:NewProject() -- List all predefined variables in the application with their expressions for key,var in pairs(project.Definitions.Variables) do print(tostring(var).." = "..var.Expression) end
Inheritance
The VariableGroup object is derived from the AbstractModifiableCollection object.
Usage locations
The VariableGroup object can be accessed from the following locations:
- Methods
- VariableGroupCollection collection has method Item(number).
- VariableGroupCollection collection has method Item(string).
Property List
Property List (internal only)
Collection List (internal only)
Method List
- Delete ()
- Deletes the entity.
- Duplicate ()
- Duplicates the entity. (Returns a Object object.)
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
- Item (index number)
- Returns the Variable for the given index in the collection. (Returns a Variable object.)
- Item (label string)
- Returns the Variable for the given label in the collection. (Returns a Variable object.)
- Items ()
- Returns a table of Variable items. (Returns a UnsupportedType(List of Variable) object.)
- MoveOut (entities List of Object)
- Move the group out of the current group and add it to its parent.
- SetProperties (properties Object)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Method List (internal only)
- CreateGroup ()
- (Returns a Object object.)
- DeleteEntities ( List of Object)
- Disassemble ()
- DuplicateEntities ( List of Object)
- (Returns a List of Object object.)
- MoveIn ( List of Object)
- Replace ( Variable, Variable)
Static Function List
- GetDefaultProperties ()
- Creates a table containing the default settings to create an object. (Returns a table object.)
Property Details
Property Details (internal only)
- Path
- Type
- string
- Access
- Read only
Collection Details (internal only)
- Groups
Method Details
- Delete ()
- Deletes the entity.
- Duplicate ()
- Duplicates the entity.
- Return
- Object
- The new (duplicated) entity.
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
- Return
- table
- A table defining the properties.
- Item (index number)
- Returns the Variable for the given index in the collection.
- Item (label string)
- Returns the Variable for the given label in the collection.
- Items ()
- Returns a table of Variable items.
- Return
- UnsupportedType(List of Variable)
- The list of items in the collection
- MoveOut (entities List of Object)
- Move the group out of the current group and add it to its parent.
- SetProperties (properties Object)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
- Input Parameters
- properties(Object)
- A table of properties defining the new state of the object.
Method Details (internal only)
Static Function Details
- GetDefaultProperties ()
- Creates a table containing the default settings to create an object.
- Return
- table
- A table containing the default properties.