Import/Part: [skip ci] restore some comments

This commit is contained in:
wmayer
2023-03-14 21:46:49 +01:00
committed by wwmayer
parent c1e6d516f4
commit 21d705ad4b
4 changed files with 9 additions and 2 deletions

View File

@@ -341,6 +341,8 @@ private:
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/Part")->GetGroup("STEP");
// Don't set name because STEP doesn't support UTF-8
// https://forum.freecadweb.org/viewtopic.php?f=8&t=52967
makeHeader.SetAuthorValue (1, new TCollection_HAsciiString(hGrp->GetASCII("Author", "Author").c_str()));
makeHeader.SetOrganizationValue (1, new TCollection_HAsciiString(hGrp->GetASCII("Company").c_str()));
makeHeader.SetOriginatingSystem(new TCollection_HAsciiString(App::Application::getExecutableName().c_str()));

View File

@@ -1175,8 +1175,11 @@ void ExportOCAF2::exportObjects(std::vector<App::DocumentObject*> &objs, const c
setName(label,nullptr,name);
}
if(FC_LOG_INSTANCE.isEnabled(FC_LOGLEVEL_LOG))
if(FC_LOG_INSTANCE.isEnabled(FC_LOGLEVEL_LOG)) {
dumpLabels(pDoc->Main(),aShapeTool,aColorTool);
}
// Update is not performed automatically anymore: https://tracker.dev.opencascade.org/view.php?id=28055
aShapeTool->UpdateAssemblies();
}

View File

@@ -669,6 +669,8 @@ private:
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/Part")->GetGroup("STEP");
// Don't set name because STEP doesn't support UTF-8
// https://forum.freecadweb.org/viewtopic.php?f=8&t=52967
makeHeader.SetAuthorValue (1, new TCollection_HAsciiString(hGrp->GetASCII("Author", "Author").c_str()));
makeHeader.SetOrganizationValue (1, new TCollection_HAsciiString(hGrp->GetASCII("Company").c_str()));
makeHeader.SetOriginatingSystem(new TCollection_HAsciiString(App::Application::getExecutableName().c_str()));

View File

@@ -952,8 +952,8 @@ void TopoShape::exportStep(const char *filename) const
throw Base::FileException("Error in transferring STEP");
APIHeaderSection_MakeHeader makeHeader(aWriter.Model());
// Don't set name because STEP doesn't support UTF-8
// https://forum.freecadweb.org/viewtopic.php?f=8&t=52967
//makeHeader.SetName(new TCollection_HAsciiString((Standard_CString)(encodeFilename(filename).c_str())));
makeHeader.SetAuthorValue (1, new TCollection_HAsciiString("FreeCAD"));
makeHeader.SetOrganizationValue (1, new TCollection_HAsciiString("FreeCAD"));
makeHeader.SetOriginatingSystem(new TCollection_HAsciiString("FreeCAD"));