Add list of BCF topics in UI

This commit is contained in:
Dion Moult
2020-03-21 21:44:02 +11:00
parent 5454521c2a
commit 65a5dcbe25
4 changed files with 28 additions and 2 deletions
+9 -1
View File
@@ -358,6 +358,12 @@ class BIMCameraProperties(PropertyGroup):
diagram_scale: EnumProperty(items=getDiagramScales, name='Diagram Scale')
class BcfTopic(PropertyGroup):
name: StringProperty(name='Name')
# TODO: Make this not wrong
target_view: StringProperty(name='Target View')
class BIMProperties(PropertyGroup):
schema_dir: StringProperty(default=os.path.join(cwd ,'schema') + os.path.sep, name="Schema Directory")
data_dir: StringProperty(default=os.path.join(cwd, 'data') + os.path.sep, name="Data Directory")
@@ -418,7 +424,9 @@ class BIMProperties(PropertyGroup):
available_contexts: EnumProperty(items=[('Model', 'Model', ''), ('Plan', 'Plan', '')], name="Available Contexts")
available_subcontexts: EnumProperty(items=getSubcontexts, name="Available Subcontexts")
available_target_views: EnumProperty(items=getTargetViews, name="Available Target Views")
bcf_file: StringProperty(default='', name="BCF File")
bcf_file: StringProperty(default='', name='BCF File')
bcf_topics: CollectionProperty(name='BCF Topics', type=BcfTopic)
active_bcf_topic_index: IntProperty(name='Active BCF Topic Index')
class MapConversion(PropertyGroup):