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 ad1b5c7ff6
commit 38a100962c
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()));