An object container for AC1009-format dxf™-compatible file output.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public class Scene
Visual Basic (Declaration)
Public Class Scene
Visual C++
public ref class Scene

Remarks

A scene may contain an unlimited number of the following geometric objects: These objects can be added to the scene using the scene.Add() methods. A layer consisting of
  • a layer name (a string value)
  • a color value (a byte value between 1 and 255)
  • a line type ('CONTINUOUS', 'HIDDEN', 'DASHDOT' or 'CENTER')
has to be assigned to each object. The color of an object follows from the layer it lies on but can also be overwritten. The scene can be written to a AUTODESK™ dxf™-compatible file in AC1009 format. This format can be read by AutoCAD™ release 12 or higher and by most commercial CAD systems. Many freely available viewers like the AUTODESK™ DWG TrueView™ (see www.autodesk.com) can also read this format.

Examples

Following example creates a sample scene containing some edges that read 'HELLO WORLD'. It then adds a yellow edge to the scene underlining the text and writes the scene in an AC1009 - formatted dxf™ -compatible file:
CopyC#
Scene sc = Scene.HelloWorld();                     // a sample scene with some edges forming 'Hello World'
Point p1 = new Point(0, -0.5, 0);                  // the start point of the underline   
Point p2 = new Point(19, -0.5, 0);                 // the end point of the underline   
Edge e = new Edge(p1, p2);                         // the underline
Scene.Layer lay = new Scene.Layer("Underline", 2); // a yellow (2) layer named "Underline"
sc.Add(e, lay);                                    // throw the underline into the scene
sc.WriteDxf(@"c:\helloworld.dxf");                 // write the scene as a dxf

Inheritance Hierarchy

System..::.Object
  ceometric.VectorGeometry..::.Scene

See Also