Table of Contents

Method CreateSample

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CreateSample()

Makes the drawing of the sample template OpenCAD2D-mm.dwt, for a detail drawn at 1:1 in millimetres and printed on an A3 sheet: R2013, MEASUREMENT 1, INSUNITS 4 (millimetres), distances to two decimal places, limits of 42 000 by 29 700 (an A3 sheet at 1:100), LTSCALE and PSLTSCALE 1 (the dashes of the presenter's own linetypes are millimetres: CENTER has a dash of 31.75), and nothing drawn.

public static DxfDatabase CreateSample()

Returns

DxfDatabase

The drawing.

Remarks

The layers (colours are AutoCAD's index, lineweights millimetres): 0; Axis red, CENTER, 0.18; Outline white, Continuous, 0.50; Thin 8, 0.18; Hidden 6, HIDDEN, 0.25; Dimension 3, 0.18; Text 2, 0.25; Hatch 9, 0.13; Rebar 4, 0.35; Title block white, 0.35; Viewport 8, not plotted; and Defpoints, white and not plotted. The linetypes are those of BuiltIn (OpenCAD2D.lin), nothing of Autodesk's.

The text styles all draw in the presenter's own font or in Arial: Standard, Notes and Titles in opencad2d.shx, height 0, width factor 0.8; Arial in arial.ttf. The dimension style OpenCAD2D, current, has arrowheads closed and filled 2.5 long, text 2.5 in Standard above the line and aligned with it, extension lines 1.5 off the object and 1.5 past the line, no decimal places, millimetres (DIMLUNIT 2) and every colour and lineweight by layer; OpenCAD2D-Annotative is OpenCAD2D made annotative. The multileader style OpenCAD2D, current, has text and arrowheads 2.5 and Standard beside it. The layouts are Model and A3: a sheet of 420 by 297 on its side, in millimetres, with no plotter.

AutoCAD's own ISO-25 dimension style and its Annotative text style are not kept: the sample holds what it lists.