An object container for AC1009-format dxf™-compatible file output.
Namespace:
ceometric.VectorGeometryAssembly: 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')
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