Properties
Indexers
Detaching a worksession reference model, or purging a linked instance definition, removes its markups but leaves the table slots they occupied empty. The slots cannot be closed up, because table indices are persistent references that objects store. Count spans the empty slots, and they accumulate for the life of the document - one per purge.
An index that lands on an empty slot returns a Markup that throws DocumentCollectedException on every property access, so code that walks this table by index must expect it. To tell a real markup from an empty slot, compare the index you asked for with Markup.Index: an empty slot never reports the index you asked for. Enumerating the table with foreach goes through the document manifest rather than the raw table array, so it does not visit empty slots at all and is the safer way to walk the table. See RH-97389.
| index (int) | zero based array index. |
Methods
| markup (Markup) | Definition of new markup. The information in markup is copied. If markup.Name is empty then a unique name of the form "Markup 01" will be automatically created. |
| markup (Markup) | Definition of new markup. The information in markup is copied. If markup.Name is empty then a unique name of the form "Markup 01" will be automatically created. |
Clear
| view (RhinoView) | The view the markup is made in. Its viewport is stored with the markup. |
| geometry (IEnumerable<GeometryBase>) | The markup's content. Copies are added to the document. |
| attributes (IEnumerable<ObjectAttributes>) | 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. |
| view (RhinoView) | The view the markup is made in. Its viewport is stored with the markup. |
| geometry (IEnumerable<GeometryBase>) | The markup's content. Copies are added to the document. |
| item (Markup) | The markup to delete. |
| markupIndices (IEnumerable<int>) | An enumeration of markup indices. |
| quiet (bool) | If true, no warning message box appears if a markup is in use. |
| deleteWarning (int) | Action to take when multiple delete warnings occur, where: 0 == No to all, 1 == Yes to all, 2 == Ask the user. |
| markupIndices (IEnumerable<int>) | An enumeration of markup indices. |
| quiet (bool) | If true, no warning message box appears if a markup is in use. |
| index (int) | zero based index of markup to delete. |
| index (int) | Zero based index of the markup to edit. |
| name (string) | The name of the markup to find. The search ignores case. |
FindId
| index (int) | The index to search for. |
| name (string) | The name of the markup to find. |
| index (int) | Zero based index of the markup. |
| item (Markup) |