Subject: | Error in load() and save() function. |
Date: | Fri, 21 May 2010 10:29:55 +0200 |
To: | bug-CAD-Drawing [...] rt.cpan.org |
From: | Heiko Schröter <schroete [...] iup.physik.uni-bremen.de> |
Hello Eric,
using the CAD::Drawing module i get IO Errors when calling $drw->load or $drw->save.
Example (from CAD::Drawing module):
#!/usr/bin/perl -w
use strict;
eval "use CAD::Drawing";
if($@) {
print "CAD::DRAWING not found.\n";
exit;
}
my $drw = CAD::Drawing->new;
# $drw->load("/tmp/file.dxf");
my %opts = (
layer => "smudge",
height => 5,
);
$drw->addtext([10, 2, 5], "Kilroy was here", \%opts);
$drw->save("file.ps");
The file "/tmp/file.dxf" exists and is a valid dxf file from qcad. Either way, loading or saving does not work and gives the following error:
Use of uninitialized value in concatenation (.) or string at /usr/lib64/perl5/site_perl/5.8.8/CAD/Drawing/IO.pm line 392.
could not save file.ps as type: at cad_draw.pl line 20
As fas as i can see the $type var at line 392 is not set.
Is this a bug or what do i miss ?
All related and dependent packages for CAD::Drawing are downloaded and installed today, latest versions.
Perl: v5.8.8
CAD-Calc-0.27
Math-MatrixReal-2.05
Math-Geometry-Planar-GPC-1.04
Stream-1.00
CAD-Drawing-0.26
Math-Round-Var-v1.0.0
Math-Geometry-Planar-Offset-1.05
YAML-0.71
Math-Geometry-Planar-1.17
Math-Vec-1.01
Thanks and Regards
Heiko
--
-----------------------------------------------------------------------
Dipl.-Ing. Heiko Schröter
Institute of Environmental Physics (IUP) phone: ++49-(0)421-218-62092
Institute of Remote Sensing (IFE) fax: ++49-(0)421-218-4555
University of Bremen (FB1)
P.O. Box 330440 email: schroete@iup.physik.uni-bremen.de
Otto-Hahn-Allee 1
28359 Bremen
Germany
-----------------------------------------------------------------------