I feel like I learn more about good practices, shortcuts and other inner workings about python from Ehsan the Architect, then I do from other professional sources. Thank you so much!
when I save the WPF project file as part of the github repo, my VS code and VS studio will fight for version control and often make my git commit fail. But I see you are saving that WPF projects to the pyrevit extension folder, how did you avoid git conflict?
Hi EhSan! why I define method inside the Class Form. I must "seft.Close()" before using "uidoc.Selection.PickObject(ObjectType.Element)". If I not close Form should be can not pick object?
Thanks for the tutorial. This helps me a lot in creating GUI for my scripts. I'm just wondering if pyrevit and ironpython support tkinter, and if yes is guideline to import tkinter module into revit? I've used tkinter before with python but not for revit API, and tkinter seems to be a very efficient tool to create GUI but I can't seem to import the tkinter module to run my script in revit. Thanks for your help.
What are the sources that you use to develop your knowledge about XAML and WPF? You mentioned that it was hard in the beginning but now we can see that you are pretty experienced, so what you will suggest as a natural extension to your great tutorials?
Take a look at the pyRevit extension window: github.com/eirannejad/pyRevit/blob/4899065ad215e9adc1b1229bb1a51b62bd1c3baf/extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Extensions.smartbutton/ExtensionsWindow.xaml#L127
The one thing I that would make this perfect is how to send information back to the WPF window from the python file. Say if you selected an element and you wanted to display it's information on the GUI in a label or something..
Holds up remarkably well, thanks Ehsan!
Have been meaning to dive in to XAML & WPF lately so the timing of these tutorials has been perfect :)
I feel like I learn more about good practices, shortcuts and other inner workings about python from Ehsan the Architect, then I do from other professional sources. Thank you so much!
Haha thank you
I want to modify a gui with a magenta checkbox inside... How can I override this property and reverse it to a standard one?
is there anyway to make the window dockable?
Thanks for the videos! Where did you get the shortcut icons for the various versions of Revit?
I made them :)
when I save the WPF project file as part of the github repo, my VS code and VS studio will fight for version control and often make my git commit fail. But I see you are saving that WPF projects to the pyrevit extension folder, how did you avoid git conflict?
Hi EhSan!
why I define method inside the Class Form. I must "seft.Close()" before using "uidoc.Selection.PickObject(ObjectType.Element)". If I not close Form should be can not pick object?
Hi EhSan! if i using IDE run ironpython outside Revit. Can I clone pyrevit and using as module to load "XAML" file? Thanks
No pyRevit can only run inside of a running Revit instance
I got problem if you have an idea, now I wrote the same code but if I try to run code ,the white empty window appear even I added buttons or texts!!
let me take a wild guess, you its double dashes for init, you might missed one
Thanks for the tutorial. This helps me a lot in creating GUI for my scripts. I'm just wondering if pyrevit and ironpython support tkinter, and if yes is guideline to import tkinter module into revit? I've used tkinter before with python but not for revit API, and tkinter seems to be a very efficient tool to create GUI but I can't seem to import the tkinter module to run my script in revit. Thanks for your help.
I have not tested tkinter to be honest. I don't actually think it would work with IronPython but I'm not sure
What are the sources that you use to develop your knowledge about XAML and WPF? You mentioned that it was hard in the beginning but now we can see that you are pretty experienced, so what you will suggest as a natural extension to your great tutorials?
I took a XAML course on Linda.com a couple of years back and the rest is TH-cam and stackoverflow.
Well done, very helpful!!
Can you show how to use ListBox with multiple columns?
Take a look at the pyRevit extension window: github.com/eirannejad/pyRevit/blob/4899065ad215e9adc1b1229bb1a51b62bd1c3baf/extensions/pyRevitCore.extension/pyRevit.tab/pyRevit.panel/Extensions.smartbutton/ExtensionsWindow.xaml#L127
Great!
The one thing I that would make this perfect is how to send information back to the WPF window from the python file. Say if you selected an element and you wanted to display it's information on the GUI in a label or something..
The next video (session 11) is all about this stuff. We will dive into creating more complex WPF components and data reactivity. Stay tuned.
@@pyRevit Love your dedication... Thankyou
Can it use in Dynamo
I haven't tested but you should be able to
@@pyRevit can you please advise how can link xam inl to dynamo