mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Show topic reference links and allow browsing of links
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user