LightGroupManagerCreateGroup Method |
Create a new LightGroup object with the given name
Namespace: Autodesk.Revit.DB.LightingAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic LightGroup CreateGroup(
string name
)
Public Function CreateGroup (
name As String
) As LightGroup
public:
LightGroup^ CreateGroup(
String^ name
)
member CreateGroup :
name : string -> LightGroup
Parameters
- name String
-
The name to use for the new LightGroup object
Return Value
LightGroup
The new LightGroup object that was created
ExceptionsException | Condition |
---|
ArgumentException |
The name is not valid because it is not unique within this LightGroupManager
-or-
name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~".
|
ArgumentNullException |
A non-optional argument was null
|
See Also