puts "============" puts "OCC21091" puts "OCC21450" puts "============" puts "" pload XSDRAW vinit meshfromstl m [locate_data_file shape.stl] meshtext m vsetdispmode m 34 file delete -force ${imagedir}/${test_image}.pdf set aFile ${imagedir}/${test_image}.pdf vcaps -ffp 1 vexport ${aFile} PDF set refsize_min 144000 set refsize_max 154000 if { [file exists ${aFile}] } { puts "Export to PDF format successful" set filesize [file size ${aFile}] if { $filesize < $refsize_min || $filesize > $refsize_max } { puts "Error: Export to PDF file was done but size of file is incorrect" puts " (current = $filesize, expected to be in range \[$refsize_min, $refsize_max\])." puts "Error: Update refsize limits if necessary." } } else { puts "Error: Export to PDF format has failed" } checkview -screenshot -3d -path ${imagedir}/${test_image}.png