MarkupTableCreate Method (RhinoView, IEnumerableGeometryBase, IEnumerableObjectAttributes) |
Adds a markup and its content without a markup session, as one undo step. The geometry is added to the
document as the markup's content, and the view, captured before it is added, becomes the background.
Any geometry type is allowed. It should lie on a plane parallel to the view, as markup tools draw it,
but this is not enforced.
Namespace:
Rhino.DocObjects.Tables
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic int Create(
RhinoView view,
IEnumerable<GeometryBase> geometry,
IEnumerable<ObjectAttributes> attributes
)
Public Function Create (
view As RhinoView,
geometry As IEnumerable(Of GeometryBase),
attributes As IEnumerable(Of ObjectAttributes)
) As Integer
Parameters
- view
- Type: Rhino.DisplayRhinoView
The view the markup is made in. Its viewport is stored with the markup. - geometry
- Type: System.Collections.GenericIEnumerableGeometryBase
The markup's content. Copies are added to the document. - attributes
- Type: System.Collections.GenericIEnumerableObjectAttributes
Attributes for each geometry item, in the same order. May be null, shorter or contain null; those items get the markup HUD's current color and linetype.
Return Value
Type:
Int32Index of the new markup, or -1 on failure, including while the document is in markup mode.
See Also