RenderContent.Create Method (Type, RenderContent.ShowContentChooserFlags, RhinoDoc)

RenderContentCreate Method (Type, RenderContentShowContentChooserFlags, RhinoDoc)

Constructs a new content of the specified type and add it to the persistent content list. This function cannot be used to create temporary content that you delete after use. Content created by this function is owned by RDK and appears in the content editor. To create a temporary content which is owned by you, call RenderContentType.NewContentFromType().

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static RenderContent Create(
	Type type,
	RenderContentShowContentChooserFlags flags,
	RhinoDoc doc
)
Public Shared Function Create ( 
	type As Type,
	flags As RenderContentShowContentChooserFlags,
	doc As RhinoDoc
) As RenderContent

Parameters

type
Type: SystemType
Is the type of the content to add.
flags
Type: Rhino.RenderRenderContentShowContentChooserFlags
Options for the tab.
doc
Type: RhinoRhinoDoc
The current Rhino document.

Return Value

Type: RenderContent
A new persistent render content.
Version Information

Rhino for Windows

Supported in: 6.14
See Also