Sheetmetal workbench: Engineering mode is not enabled.

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
drmacro
Veteran
Posts: 8864
Joined: Sun Mar 02, 2014 4:35 pm

Sheetmetal workbench: Engineering mode is not enabled.

Post by drmacro »

What does this warning mean when you click unfold in Sheetmetal workbench? :?:

Code: Select all

Engineering mode is not enabled.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Sheetmetal workbench: Engineering mode is not enabled.

Post by Syres »

As far as I can tell it's just a manually added preference that saves/doesn't save the K-factor, the preference is held in:

Code: Select all

def engineering_mode_enabled():
    FSParam = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/SheetMetal")
    return FSParam.GetInt("EngineeringUXMode", 0)  # 0 = disabled, 1 = enabled
and the 'decision' is made in this code:

Code: Select all

            if engineering_mode_enabled():
              # do nothing, user should explicitly select the K-Factor
              # see https://github.com/shaise/FreeCAD_SheetMetal/pull/79#issuecomment-487774249
              # ------------------------------------
              # Neither MDS nor virtual material is defined. Uncheck the MKF checkbox:
              self.checkKfact.setChecked(False)
            else:
              self.checkKfact.setChecked(True)
Post Reply