Add parameter initialization within Import Init.py and enhance the understand
of the parameters behavior into the UI
This commit is contained in:
committed by
Yorik van Havre
parent
c4be890f47
commit
91a505ebd8
@@ -32,3 +32,16 @@
|
||||
#FreeCAD.addExportType("STEP 214 (*.step *.stp)","ImportGui")
|
||||
#FreeCAD.addExportType("IGES files (*.iges *.igs)","ImportGui")
|
||||
FreeCAD.addImportType("PLMXML files (*.plmxml)","PlmXmlParser")
|
||||
|
||||
# Add initial parameters value if they are not set
|
||||
|
||||
paramGetV = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Import/hSTEP")
|
||||
ReadShapeCompoundMode_status=paramGetV.GetBool("ReadShapeCompoundMode")
|
||||
if not ReadShapeCompoundMode_status:
|
||||
paramGetV.SetBool("ReadShapeCompoundMode",False)
|
||||
Scheme_203_status=paramGetV.GetBool("Scheme_214")
|
||||
if not Scheme_203_status:
|
||||
paramGetV.SetBool("Scheme_203",False)
|
||||
Scheme_214_status=paramGetV.GetBool("Scheme_214")
|
||||
if not Scheme_214_status:
|
||||
paramGetV.SetBool("Scheme_214",True)
|
||||
|
||||
Reference in New Issue
Block a user