Just do be sure ... IFC Properties Manager is part of BIM workbench and not Main FreeCAD? It means your question is about problems in the BIM workbench GUI?
In FreeCAD without BIM workbench I never had problems to set the IFC properties of a element in FreeCAD per Python.
You easily can check if the problem ist between BIM workbench GUI and main FreeCAD or in FreeCAD ifc export. For this check what does have the BIM workbench GUI written to the objects properties.
- select the object
- in selction view right click "to python console"
- in python console you can test if you can access the object ...
Code: Select all
obj.Label
obj.Name
obj.PropertiesList
Code: Select all
>>>
>>> obj.Name
'Component073'
>>> obj.Label
'ID8856 Profilwand'
>>> obj.PropertiesList
['Additions', 'Axis', 'Base', 'CloneOf', 'Description', 'ExpressionEngine', 'GlobalId', 'HiRes', 'HorizontalArea', 'IfcData', 'IfcProperties', 'IfcType', 'Label', 'Label2', 'Material', 'MoveBase', 'MoveWithHost', 'ObjectType', 'PerimeterLength', 'Placement', 'Proxy', 'Shape', 'StandardCode', 'Subtractions', 'Tag', 'VerticalArea', 'Visibility']
>>>
check the properties saved to the object ...
Code: Select all
for prop, value in obj.IfcProperties.items():
print("{} --> {}".format(prop, value))
Code: Select all
>>>
>>> for prop, value in obj.IfcProperties.items():
... print("{} --> {}".format(prop, value))
...
Allright_Bauteil_ID;;AllplanAttributes --> IfcText;;0006Wa 0000003793
Aussenbauteil;;Pset_WallCommon --> IfcBoolean;;False
Bezeichnung;;AllplanAttributes --> IfcText;;Profilwand
Einheit;;AllplanAttributes --> IfcText;;m²
Gewerk;;AllplanAttributes --> IfcText;;Mauerarbeiten
Objektname;;AllplanAttributes --> IfcText;;Profilwand
Status;;Pset_WallCommon --> IfcLabel;;Neubau
Tragendes Bauteil;;Pset_WallCommon --> IfcBoolean;;False
>>>
It does not solve you problem but if you would give some feedback we know if the problem is in main FreeCAD or in BIM workbench. This is the first step to fix the probem.