Hi!
How can I get the default directory for templates from a macro ?
Get user preferences
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 136
- Joined: Fri Aug 13, 2021 10:08 am
Re: Get user preferences
Hi
Code: Select all
FreeCAD.ConfigGet('AppHomePath')+'Mod/TechDraw/Templates/'
Re: Get user preferences
Code: Select all
prm = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/TechDraw/Files")
str = prm.GetString("TemplateDir", FreeCAD.ConfigGet("AppHomePath") + "Mod/TechDraw/Templates")