IFC Properties Manager

This forum section is only for IFC-related issues
Post Reply
pdpb59
Posts: 28
Joined: Thu Feb 18, 2021 1:43 pm
Location: Saarbrücken

IFC Properties Manager

Post by pdpb59 »

Hello,
in the IFC Properties Manager I have some problems with the function to create an own property list with own parameters.

a) New : I can enter a name. If I want to change the name afterwards, this change is not taken over.

b) I want to attach this new list to other objects. But the list does not appear in the menu below.

c) what is the function "Add property set..." for?

d) Not all values are passed correctly, e.g. I have set IsExternal "true" but in BimVision the value is "False".

Thanks
Peter

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * BIM 2021.12.0
  * parts_library
Attachments
FC-ifc-proManager-1.JPG
FC-ifc-proManager-1.JPG (101.93 KiB) Viewed 5638 times
FC-ifc-proManager-2.JPG
FC-ifc-proManager-2.JPG (186.75 KiB) Viewed 5638 times
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: IFC Properties Manager

Post by bernd »

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.
Post Reply