try:
    import sys, os, FreeCAD, traceback 
    os.environ["SESSION_GUID"] = "039e2d06-9c0f-48ae-aaef-47ad8809cd03"
    os.environ["W_DIR"] = r"D:\Development\sheat\CENOS cases\AD\parametric"
    sys.path.append(r"D:\Development\Work\CENOS\cenos-backend\app\ANTENNAS\freecad\freecad") 
    from cenos_addon import cenos_main
    cenos_main.openFCStudy(r"D:\Development\sheat\CENOS cases\AD\parametric\geometry\FC_Study.FCStd")
    cenos_main.init_observers()
    variables = [
    {
        "$$hashKey": "object:1179",
        "description": "",
        "name": "example_length",
        "value": 45
    },
    {
        "$$hashKey": "object:1180",
        "description": "",
        "name": "Substrate_Thickness",
        "value": 1.6
    },
    {
        "$$hashKey": "object:1181",
        "description": "",
        "name": "Substrate_Length",
        "value": 80
    },
    {
        "$$hashKey": "object:1182",
        "description": "",
        "name": "Substrate_Width",
        "value": 77
    },
    {
        "$$hashKey": "object:1183",
        "description": "",
        "name": "Patch_Length",
        "value": 40
    },
    {
        "$$hashKey": "object:1184",
        "description": "",
        "name": "Patch_Width",
        "value": 59
    },
    {
        "$$hashKey": "object:1185",
        "description": "",
        "name": "Inset_Depth",
        "value": 15
    },
    {
        "$$hashKey": "object:1186",
        "description": "",
        "name": "Inset_Width",
        "value": 4
    },
    {
        "$$hashKey": "object:1187",
        "description": "",
        "name": "Feed_Width",
        "value": 5
    }
]
    cenos_main.update_parameters(variables)
except:
    FreeCAD.Console.PrintError(traceback.format_exc())
