Draft::Protozoa::Yml - CAD drawing-object base class


A CAD drawing object that consists of a single file with an internal YAML format.



Create an object by supplying the 'new' method with a file-path:

    use Draft::Drawing::Yml;
    my $foo = Draft::Drawing::Yml->new ('/path/to/file.yml');

Read/Parse an existing file with the Read method:


Objects can be moved in the world-space:

    $foo->Move ([10, 5, 0]);

This edits the file on the filesystem in one atomic operation. This is a permanent operation - If you find that you didn't want to move the object, you might want to investigate using cvs for your data.

Query the type and version of the object like so:

    my $type = $self->Type ($foo);
    my $version = $self->Version ($foo);