Closed Lefort-Antoine closed 5 years ago
I still get the error after adding the optional argument
the synthaxe to add field to an object is object.add_field(value) `import oplus as op
idf = op.Idf("")`
bsd_o = idf.add("""BuildingSurface:Detailed, surface_example, ! - Name floor, ! - Surface Type , ! - Construction Name , ! - Zone Name zone, ! - Outside Boundary Condition , ! - Outside Boundary Condition Object nosun, ! - Sun Exposure nowind, ! - Wind Exposure , ! - View Factor to Ground 2, ! - Number of Vertices -18.436949171, 21.6350748574, 11.4;""")
bsd_o = idf["BuildingSurface:Detailed"].one()
bsd_o = idf["BuildingSurface:Detailed"].one(lambda x: x['Name'] == "surface_example")
bsd_o.add_field(2) '
Due to error in .idd description object (BranchList, NodeList, ..) Add optional argument : ' byref=False' in add_field() function (idf.py)