put all STEP export/import options into one tab page
This commit is contained in:
@@ -546,16 +546,12 @@ private:
|
||||
|
||||
Base::FileInfo file(Utf8Name.c_str());
|
||||
if (file.hasExtension("stp") || file.hasExtension("step")) {
|
||||
//Interface_Static::SetCVal("write.step.schema", "AP214IS");
|
||||
bool optionScheme_214;
|
||||
bool optionScheme_203;
|
||||
ParameterGrp::handle hGrp_stp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP");
|
||||
optionScheme_214 = hGrp_stp->GetBool("Scheme_214",true);
|
||||
optionScheme_203 = hGrp_stp->GetBool("Scheme_203",false);
|
||||
if (optionScheme_214)
|
||||
Interface_Static::SetCVal("write.step.schema", "AP214IS");
|
||||
if (optionScheme_203)
|
||||
ParameterGrp::handle hGrp_stp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Part/STEP");
|
||||
std::string scheme = hGrp_stp->GetASCII("Scheme", "AP214IS");
|
||||
if (scheme == "AP203")
|
||||
Interface_Static::SetCVal("write.step.schema", "AP203");
|
||||
else if (scheme == "AP214IS")
|
||||
Interface_Static::SetCVal("write.step.schema", "AP214IS");
|
||||
|
||||
STEPCAFControl_Writer writer;
|
||||
Interface_Static::SetIVal("write.step.assembly",1);
|
||||
|
||||
Reference in New Issue
Block a user