mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Add webbrowser open operator
This commit is contained in:
@@ -87,6 +87,7 @@ classes = [
|
||||
operator.AddIfcFile,
|
||||
operator.RemoveIfcFile,
|
||||
operator.ConfigureVisibility,
|
||||
operator.BIM_OT_open_webbrowser,
|
||||
prop.StrProperty,
|
||||
prop.ObjProperty,
|
||||
prop.AttributeDocumentation,
|
||||
|
||||
@@ -363,6 +363,16 @@ class RemoveIfcFile(bpy.types.Operator):
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
class BIM_OT_open_webbrowser(bpy.types.Operator):
|
||||
bl_idname = "bim.open_webbrowser"
|
||||
bl_label = ""
|
||||
|
||||
url: bpy.props.StringProperty()
|
||||
|
||||
def execute(self, context):
|
||||
import webbrowser
|
||||
webbrowser.open(self.url)
|
||||
return {'FINISHED'}
|
||||
class SelectExternalMaterialDir(bpy.types.Operator):
|
||||
bl_idname = "bim.select_external_material_dir"
|
||||
bl_label = "Select Material File"
|
||||
|
||||
Reference in New Issue
Block a user