try:
    import sys, os, FreeCAD, traceback 
    os.environ["SESSION_GUID"] = "4bc231a5-a4db-4079-b90f-27c02b155d6b"
    os.environ["W_DIR"] = r"D:\Development\sheat\CENOS cases\AD\parametric2\sub-cases\sub-case-0"
    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\parametric2\sub-cases\sub-case-0\geometry\FC_Study.FCStd")
    cenos_main.init_observers()
    variables = [
    {
        "description": "",
        "name": "example_length",
        "value": 45
    },
    {
        "description": "",
        "name": "example_length",
        "value": 45
    },
    {
        "description": "",
        "name": "Substrate_Thickness",
        "value": 1.6
    },
    {
        "description": "",
        "name": "Substrate_Length",
        "value": 100
    },
    {
        "description": "",
        "name": "Substrate_Width",
        "value": 77
    },
    {
        "description": "",
        "name": "Patch_Width",
        "value": 59
    },
    {
        "description": "",
        "name": "Patch_Length",
        "value": 40
    },
    {
        "description": "",
        "name": "Feed_Width",
        "value": 5
    }
]
    cenos_main.update_parameters(variables)
except:
    FreeCAD.Console.PrintError(traceback.format_exc())
