Method CreateOccurrenceFromSelection
CreateOccurrenceFromSelection(string, OccurrenceList, uint, bool)
Create a new occurrence and add the given occurrences as children
Declaration
public uint CreateOccurrenceFromSelection(string name, OccurrenceList children, uint parent, bool keepMaterialAssignment = true)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the new occurrence |
OccurrenceList | children | Add given occurrence as children (if any) |
uint | parent | If defined, the new occurrence will be created as a child of this parent. Else if children are defined, the first common parent of children will be used as a parent for this new occurrence. Last resort will be to use the root as parent |
bool | keepMaterialAssignment | If defined, material assignation will be updated to keep the visual same aspect |
Returns
Type | Description |
---|---|
uint |