Click or drag to resize

UtilitiesShowContentChooser Method (RhinoDoc, Guid, Guid, RenderContentKind, RenderContentShowContentChooserFlags, String, IEnumerableString, IEnumerableGuid, Guid)

Shows the content chooser to allow the user to select a new or existing content, or multiple contents.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.6
Syntax
public static UtilitiesShowContentChooserResults ShowContentChooser(
	RhinoDoc doc,
	Guid defaultType,
	Guid defaultInstanceId,
	RenderContentKind kinds,
	RenderContentShowContentChooserFlags flags,
	string presetCategory,
	IEnumerable<string> categories,
	IEnumerable<Guid> types,
	out Guid[] instanceIdsOut
)

Parameters

doc
Type: RhinoRhinoDoc
A Rhino document.
defaultType
Type: SystemGuid
The content type that will be initially selected in the 'New' tab.
defaultInstanceId
Type: SystemGuid
The content instance that will be initially selected in the 'Existing' tab.
kinds
Type: Rhino.RenderRenderContentKind
Semicolon-delimited string specifying which content kinds will be displayed.
flags
Type: Rhino.RenderRenderContentShowContentChooserFlags
Flags controlling the chooser (tabs to hide, type of selection).
presetCategory
Type: SystemString
Specifies the category to preset in the drop-down list on the 'New' tab. If this string is empty, the preset category will be 'All'.
categories
Type: System.Collections.GenericIEnumerableString
Specifies the categories to display. Render contents that do not belong to one of these categories will not be listed. If this array is empty, all render contents from all categories will be listed.
types
Type: System.Collections.GenericIEnumerableGuid
Specifies content types to display. Contents that are not one of these types will not be listed. If this array is empty, all content types will be listed.
instanceIdsOut
Type: SystemGuid
Array of UUID(s) of the chosen item(s). Depending on eRhRdkSccResult, this can accept type id(s) of content type(s) or instance id(s) of existing content(s).

Return Value

Type: UtilitiesShowContentChooserResults
The result of displaying the chooser.
See Also