The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

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

DESCRIPTION

USAGE

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:

$foo->Read;

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);