Part: implement wrapper class around Interface_Static

This commit is contained in:
wmayer
2022-10-03 19:03:32 +02:00
parent c63ce3f10b
commit 918fc83cd3
10 changed files with 226 additions and 41 deletions

View File

@@ -177,6 +177,7 @@
#include "CrossSection.h"
#include "encodeFilename.h"
#include "FaceMakerBullseye.h"
#include "Interface.h"
#include "modelRefine.h"
#include "PartPyCXX.h"
#include "ProgressIndicator.h"
@@ -911,9 +912,9 @@ void TopoShape::exportIges(const char *filename) const
IGESControl_Controller::Init();
IGESControl_Writer aWriter;
IGESData_GlobalSection header = aWriter.Model()->GlobalSection();
header.SetAuthorName(new TCollection_HAsciiString(Interface_Static::CVal("write.iges.header.author")));
header.SetCompanyName(new TCollection_HAsciiString(Interface_Static::CVal("write.iges.header.company")));
header.SetSendName(new TCollection_HAsciiString(Interface_Static::CVal("write.iges.header.product")));
header.SetAuthorName(new TCollection_HAsciiString(Interface::writeIgesHeaderAuthor()));
header.SetCompanyName(new TCollection_HAsciiString(Interface::writeIgesHeaderCompany()));
header.SetSendName(new TCollection_HAsciiString(Interface::writeIgesHeaderProduct()));
aWriter.Model()->SetGlobalSection(header);
aWriter.AddShape(this->_Shape);
aWriter.ComputeModel();
@@ -930,7 +931,7 @@ void TopoShape::exportStep(const char *filename) const
try {
// Fixes issue #6282
// Do not write out any assembly information when using the simplified STEP export
Interface_Static::SetIVal("write.step.assembly", 0);
Interface::writeStepAssembly(Interface::Assembly::Off);
// write step file
STEPControl_Writer aWriter;