Table of Contents

Method ValuesOf

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ValuesOf(CadDocument, string, int, out string)

Gets what a visibility, a lookup or a block table grip lists when clicked, as AutoCAD's list at the grip: the values allowed, in the parameter's order, and the one the INSERT shows, ticked; of a block table its rows, each its cells parted by commas, a number to 4 places, as "100.0000, 50.0000", the row the INSERT shows ticked, none where it shows none.

public static IReadOnlyList<string> ValuesOf(CadDocument document, string handle, int gripIndex, out string current)

Parameters

document CadDocument

The document.

handle string

The handle of the INSERT.

gripIndex int

The index of the grip, as Of(DxfEntity) gives it.

current string

The value the INSERT shows; null where the grip lists nothing.

Returns

IReadOnlyList<string>

The values; empty for a grip of another kind, or one of no INSERT.

Exceptions

ArgumentNullException

Thrown when the document is null.