View Issue Details

IDProjectCategoryView StatusLast Update
0013542Open CASCADEOCCT:Modeling Algorithmspublic2012-01-11 17:21
Reporteruser198Assigned Toepa 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version6.2.1 
Summary0013542: Export to Brep, IGES, STEP with not enough space on disk: file is invalid, but no error status returned.
DescriptionWhen we make an attempt to export shape, but have no enough space on disk:

1) For Brep and IGES format:

Method for Brep:
BRepTools::Write(Sh : Shape from TopoDS; File : CString) returns Boolean
Method for IGES:
IGESControl_Writer::Write (me : in out; file : CString; fnes : Boolean =
Standard_False)returns Boolean

Obtained result: the file is invalid and takes all free space, method Write(...)
                 returns true.

2) For STEP format:
Method: STEPControl_Writer::Write (me : in out; filename : CString) returns
ReturnStatus
Obtained result: the file takes all free space(in this case it is invalid) or
                 takes no space(in this case it is empty),
                method Write(...) returns wrong status(namely IFSelect_RetDone).


It is desirable to have the possibility to get the real status of the export
operation in case of the free space is not enough.

Note: at least in case of Brep or IGES format the returned by method Write()
value should not be equal to true.
Additional information
and documentation updates
Documentation remark, added by GKA 2006-11-13 11:07:48:

Improvements:
Methods performing writing shape in the file for STEP, IGES and BREP formats
check state of ofstream after saving data on disk now. And if file was not saved
correct (for example disk is full) then methods for writing files will return
rigth status.
For case when disk is full following methods retuns values :

IGESControl_Writer::Write(CString,Boolean) returns Standard_False;
STEPControl_Writer::Write(CString) returns IFSElect_RetError;
BRepTools::Write(TopoDS_Shape,CString) returns Standard_False;
TagsNo tags attached.
Test case number

Attached Files

  • Bug13542.tar.gz (27,851 bytes)
  • occ13542_fix1.tar.gz (9,677 bytes)
  • OCC13542ToBack.tar.gz (9,115 bytes)
  • epaOCC13542-v1.tar.gz (17,550 bytes)
  • OCC13542-mkv-v1.tar.gz (4,406 bytes)

Activities

2006-11-13 10:15

 

Bug13542.tar.gz (27,851 bytes)

2007-02-09 15:46

 

occ13542_fix1.tar.gz (9,677 bytes)

2007-02-12 13:55

 

OCC13542ToBack.tar.gz (9,115 bytes)

2007-06-18 13:08

 

epaOCC13542-v1.tar.gz (17,550 bytes)

2007-07-02 14:03

 

OCC13542-mkv-v1.tar.gz (4,406 bytes)

Issue History

Date Modified Username Field Change
2006-10-16 19:13 bugmaster BugsThisDependsOn => 13363
2006-10-24 16:07 vtn Assigned To bugmaster => gka
2006-10-24 16:07 vtn Status new => assigned
2006-11-13 12:47 gka Status assigned => resolved
2006-11-20 18:50 bugmaster Status resolved => tested
2007-01-19 17:47 bugmaster Status tested => verified
2007-02-09 21:07 bugmaster Assigned To gka => bugmaster
2007-02-09 21:07 bugmaster Status verified => assigned
2007-02-09 21:08 bugmaster Assigned To bugmaster => ifv
2007-02-09 21:08 bugmaster Status assigned => tested
2007-02-12 12:55 abv CC => pdn
2007-02-12 14:49 bugmaster Assigned To ifv => bugmaster
2007-02-12 14:49 bugmaster Status tested => assigned
2007-05-30 15:52 bugmaster Assigned To bugmaster => epa
2007-06-18 15:15 bugmaster Status assigned => resolved
2007-07-02 12:09 mkv Status resolved => tested
2007-07-27 17:05 bugmaster Status tested => verified
2009-06-24 17:16 bugmaster Status verified => closed
2009-06-24 17:16 bugmaster Resolution @0@ => fixed
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms
2012-01-11 17:21 atp Description Updated
2012-01-11 17:21 atp Additional Information Updated