Add support for viewing BCF comments

This commit is contained in:
Dion Moult
2020-03-24 14:44:03 +11:00
parent 7c66c5e4fc
commit 8a22169036
3 changed files with 25 additions and 10 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ from . import import_ifc
from . import cut_ifc
from . import sheeter
from . import schema
from . import bcf
from bpy_extras.io_utils import ImportHelper
from itertools import cycle
from mathutils import Vector, Matrix
@@ -393,10 +394,10 @@ class GetBcfTopics(bpy.types.Operator):
def execute(self, context):
import bcfplugin
bcfplugin.openProject(bpy.context.scene.BIMProperties.bcf_file)
topics = bcfplugin.getTopics()
bcf.BcfStore.topics = bcfplugin.getTopics()
while len(bpy.context.scene.BIMProperties.bcf_topics) > 0:
bpy.context.scene.BIMProperties.bcf_topics.remove(0)
for topic in topics:
for topic in bcf.BcfStore.topics:
new = bpy.context.scene.BIMProperties.bcf_topics.add()
new.name = topic[0]
return {'FINISHED'}