Method Sample
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Sample(DxfDatabase, IDictionary<string, object>, CadDimSampleKind)
Makes the sample of one tab of the dimension style dialogs, with the parts of its dimensions told apart: a drawing of its own holding the style's variables (the text style copied by its name and font, the arrowheads' blocks made, the linetypes of the dimension and extension lines copied), and in its model space the entities of the sample's dimensions, each its own, drawn by the builders the DIM commands use (see CadDimSampleKind for what each sample holds). The sample is as many times bigger as the style's overall scale (DIMSCALE) says, nought taken for 1. The Overview sample draws what Samples(DxfDatabase, IDictionary<string, object>) draws, item for item.
public static CadStyleSample Sample(DxfDatabase source, IDictionary<string, object> values, CadDimSampleKind kind)
Parameters
sourceDxfDatabaseThe drawing the style's text styles and linetypes are taken from.
valuesIDictionary<string, object>The style's variables by name.
kindCadDimSampleKindThe sample.
Returns
- CadStyleSample
The sample.
Exceptions
- ArgumentNullException
Thrown when the drawing or the values are null.