Show topic reference links and allow browsing of links

This commit is contained in:
Dion Moult
2020-03-25 15:03:06 +11:00
parent 52ff61a91c
commit f2e203d699
4 changed files with 32 additions and 1 deletions
@@ -3,6 +3,7 @@ import bpy
import time
import json
import logging
import webbrowser
import ifcopenshell
from . import export_ifc
from . import import_ifc
@@ -446,6 +447,16 @@ class ActivateBcfViewpoint(bpy.types.Operator):
return {'FINISHED'}
class OpenBcfReferenceLink(bpy.types.Operator):
bl_idname = 'bim.open_bcf_reference_link'
bl_label = 'Open BCF Reference Link'
index: bpy.props.IntProperty()
def execute(self, context):
webbrowser.open(bpy.context.scene.BCFProperties.topic_links[self.index].name)
return {'FINISHED'}
class SelectAudited(bpy.types.Operator):
bl_idname = 'bim.select_audited'
bl_label = 'Select Audited'