Skip to content

Commit

Permalink
port TopoShape::exportStep to occ7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 27, 2016
1 parent d3e0f03 commit 4130f84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Part/App/TopoShape.cpp
Expand Up @@ -161,6 +161,7 @@
# include <XSControl_WorkSession.hxx>
# include <Transfer_TransientProcess.hxx>
# include <Transfer_FinderProcess.hxx>
# include <XSControl_TransferWriter.hxx>
# include <APIHeaderSection_MakeHeader.hxx>
# include <ShapeAnalysis_FreeBoundsProperties.hxx>
# include <ShapeAnalysis_FreeBoundData.hxx>
Expand Down Expand Up @@ -663,8 +664,10 @@ void TopoShape::exportStep(const char *filename) const
// write step file
STEPControl_Writer aWriter;

const Handle_XSControl_TransferWriter& hTransferWriter = aWriter.WS()->TransferWriter();
Handle_Transfer_FinderProcess hFinder = hTransferWriter->FinderProcess();
Handle_Message_ProgressIndicator pi = new ProgressIndicator(100);
aWriter.WS()->MapWriter()->SetProgress(pi);
hFinder->SetProgress(pi);
pi->NewScope(100, "Writing STEP file...");
pi->Show();

Expand Down

0 comments on commit 4130f84

Please sign in to comment.