Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: terry on January 10, 2013, 06:26:44 PM

Title: exportReport
Post by: terry on January 10, 2013, 06:26:44 PM
Using Photoscan pro 0.9.0 64bit

I'm trying this command to export a pdf report

>>> PhotoScan.app.document.activeChunk.exportReport('C:/Users/Admin/report.pdf')


but it always fails with

False
Generating report...
Finished processing in 0 sec (exit code 0)

what am I doing wrong
Title: Re: exportReport
Post by: Alexey Pasumansky on January 10, 2013, 06:38:21 PM
Hello terry,

Export report works only for referenced chunks with reconstructed geometry.
Title: Re: exportReport
Post by: terry on January 10, 2013, 07:14:14 PM
I thought I was doing that, for testing I'm suing the sample01 - sample01_smooth.psz file

I've also just tried
PhotoScan.app.document.chunks[0].exportReport("z:/agisoft/dsf.pdf")

but it still returns false

Title: Re: exportReport
Post by: Alexey Pasumansky on January 10, 2013, 07:16:36 PM
Hello terry,

And is Generate Report option enabled in the File menu?
Title: Re: exportReport
Post by: terry on January 10, 2013, 07:21:39 PM
it is not, hadn't spotted that option