-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPythonCaller__PropertySets.py
More file actions
48 lines (28 loc) · 1.13 KB
/
PythonCaller__PropertySets.py
File metadata and controls
48 lines (28 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#PythonCaller__PropertySets
import fme
import fmeobjects
from fmeobjects import FMELogFile
import ifcopenshell
import ifcopenshell.util.pset
from ifcopenshell import util
class FeatureProcessor(object):
def input(self, feature):
pset_qto = util.pset.PsetQto("IFC4")
pset_list = pset_qto.get_applicable_names("IfcWall")
pset_template_gen = pset_qto.get_applicable("IfcWall")
pset_info_list = []
for pset in pset_template_gen:
pset_info = pset.get_info()
pset_info_list.append(pset_info)
pset_info_list
psetinfo1 = pset_info_list[0]
pset_wall_common = pset_qto.get_by_name("Pset_WallCommon").get_info()
feature.setAttribute("Pset_Names", str(pset_list))
feature.setAttribute("Pset_Info", str(pset_info_list))
feature.setAttribute("Pset_Info", str(pset_wall_common))
feature.setAttribute("IfcSchema", "IFC4")
self.pyoutput(feature)
def close(self):
pass
def process_group(self):
pass