mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 12:07:59 +00:00
Add list of BCF topics in UI
This commit is contained in:
@@ -393,7 +393,11 @@ class GetBcfTopics(bpy.types.Operator):
|
||||
import bcfplugin
|
||||
bcfplugin.openProject(bpy.context.scene.BIMProperties.bcf_file)
|
||||
topics = bcfplugin.getTopics()
|
||||
print(topics)
|
||||
while len(bpy.context.scene.BIMProperties.bcf_topics) > 0:
|
||||
bpy.context.scene.BIMProperties.bcf_topics.remove(0)
|
||||
for topic in topics:
|
||||
new = bpy.context.scene.BIMProperties.bcf_topics.add()
|
||||
new.name = topic[0]
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user