RenderContentCreate Method (Type, RenderContentShowContentChooserFlags, RhinoDoc) |
Constructs a new content of the specified type and attaches it to a document.
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.NewContentFromTypeId().
Namespace:
Rhino.Render
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.1
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
The type of the content to create. - flags
- Type: Rhino.RenderRenderContentShowContentChooserFlags
Flags for future use (please always pass ShowContentChooserFlags::None). - doc
- Type: RhinoRhinoDoc
The Rhino document to attach the new render content to.
Return Value
Type:
RenderContentA new document-resident render content.
See Also