__title__ = "WPF Tempalte"
__doc__ = """Version = 1.0
Date = 25.11.2024
________________________________________________________________
Description:
Create WPF Forms by asking Chat GPT.
________________________________________________________________
Author: Erik Frits"""
from Autodesk.Revit.DB import *
from pyrevit import forms
import wpf, os, clr
clr.AddReference("System")
from System.Windows import Window, ResourceDictionary
from System.Windows.Controls import CheckBox, Button, TextBox, ListBoxItem
PATH_SCRIPT = os.path.dirname(__file__)
doc = __revit__.ActiveUIDocument.Document
uidoc = __revit__.ActiveUIDocument
app = __revit__.Application
PATH_SCRIPT = os.path.dirname(__file__)
from Autodesk.Revit.DB import View, ViewSheet, FilteredElementCollector
from System.Windows.Controls import CheckBox, ListBoxItem
__title__ = "5.1 - AI: Text To Form"
__doc__ = """Version = 1.0
Date = 25.11.2024
________________________________________________________________
Description:
Create WPF Forms by asking Chat GPT.
________________________________________________________________
Author: Erik Frits"""
from Autodesk.Revit.DB import *
from pyrevit import forms
import wpf, os, clr
clr.AddReference("System")
import System
from System.Windows import MessageBox, Window
from System.Windows.Controls import ListBoxItem,ComboBoxItem, TextBlock
from System.Windows import Visibility
PATH_SCRIPT = os.path.dirname(__file__)
doc = __revit__.ActiveUIDocument.Document
class MyForm(Window):
def __init__(self):
path_xaml_file = os.path.join(PATH_SCRIPT, 'MyForm.xaml')
wpf.LoadComponent(self, path_xaml_file)
self.ShowDialog()
UI = MyForm()