NAME

CAD::Format::DWG::Version - Class for work with DWG file versions.

DESCRIPTION

This class describes AutoCAD DWG format versions and it's identifiers.

List of identifiers is in Wikipedia article.

This Perl class replaces CAD::AutoCAD::Version@0.06, which has the wrong name.

SYNOPSIS

use CAD::Format::DWG::Version;

my $obj = CAD::Format::DWG::Version->new;
my @dwg_identifiers = $obj->list_of_dwg_identifiers;

METHODS

new

my $obj = CAD::Format::DWG::Version->new;

Constructor.

Returns instance of object.

list_of_dwg_identifiers

my @dwg_identifiers = $obj->list_of_dwg_identifiers;

List DWG version identifiers sorted by publication. This identifiers are used e.g. as magic string in DWG files or as $ACADVER in DXF files.

Returns array of identifiers.

ERRORS

new():
        From Class::Utils:
                Unknown parameter '%s'.

EXAMPLE

use strict;
use warnings;

use Data::Printer;
use CAD::Format::DWG::Version;

# Object.
my $obj = CAD::Format::DWG::Version->new;

# Create image.
my @dwg_identifiers = $obj->list_of_dwg_identifiers;

# Print out type.
p @dwg_identifiers;

# Output:
# [
#     [0]  "MC0.0",
#     [1]  "AC1.2",
#     [2]  "AC1.40",
#     [3]  "AC1.50",
#     [4]  "AC2.10",
#     [5]  "AC1001",
#     [6]  "AC1002",
#     [7]  "AC1003",
#     [8]  "AC1004",
#     [9]  "AC1006",
#     [10] "AC1009",
#     [11] "AC1010",
#     [12] "AC1011",
#     [13] "AC1012",
#     [14] "AC1013",
#     [15] "AC1014",
#     [16] "AC1500",
#     [17] "AC1015",
#     [18] "AC402a",
#     [19] "AC402b",
#     [20] "AC1018",
#     [21] "AC1021",
#     [22] "AC1024",
#     [23] "AC1027",
#     [24] "AC1032",
#     [25] "AC103-4"
# ]

DEPENDENCIES

Class::Utils, Readonly.

SEE ALSO

CAD::AutoCAD::Detect

Detect AutoCAD files through magic string.

CAD::AutoCAD::Version

Class which work with AutoCAD versions.

File::Find::Rule::DWG

Common rules for searching DWG files.

REPOSITORY

https://github.com/michal-josef-spacek/CAD-Format-DWG-Version

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2024-2025 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.01