You can now view and edit the BCF project name

This commit is contained in:
Dion Moult
2020-12-13 16:35:51 +11:00
parent e39a997f5f
commit 9dcf44fbea
4 changed files with 22 additions and 7 deletions
@@ -507,15 +507,16 @@ class RejectElement(bpy.types.Operator):
return {"FINISHED"}
class GetBcfTopics(bpy.types.Operator):
bl_idname = "bim.get_bcf_topics"
bl_label = "Get BCF Topics"
class LoadBcfProject(bpy.types.Operator):
bl_idname = "bim.load_bcf_project"
bl_label = "Load BCF Project"
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
def execute(self, context):
import bcfplugin
bcfplugin.openProject(self.filepath)
bpy.context.scene.BCFProperties.name = bcfplugin.getProjectName()
bcf.BcfStore.topics = bcfplugin.getTopics()
while len(bpy.context.scene.BCFProperties.topics) > 0:
bpy.context.scene.BCFProperties.topics.remove(0)