Creating new level with wpf

Creating new level with wpf

tamsann
Enthusiast Enthusiast
311 Views
3 Replies
Message 1 of 4

Creating new level with wpf

tamsann
Enthusiast
Enthusiast

Hello, I'm trying to create a new level in Revit API combined with WPF to enter the level's elevation and an OK button. When clicking OK, the new level will be created. but there is some error and I don't know how to fix it, please help me. 

please find the project here

https://www.dropbox.com/scl/fo/ugmne5tpio0840riiz7dg/h?dl=0&rlkey=8afu47mc63mjx5t7f6v4djcc7

 

Or see the pictures below:

 

1.PNG2.png3.png

Accepted solutions (2)
312 Views
3 Replies
Replies (3)
Message 2 of 4

studio-a-int
Advocate
Advocate
Accepted solution

Your class needs to be derived from Window, not UserControl

 

public partial class yourClass : System.Windows.Window

Message 3 of 4

Mohamed_Arshad
Advisor
Advisor
Accepted solution

@tamsann 
Kindly follow the below image instructions to resolve your issue

arshad99_0-1681983413951.png

 

 

arshad99_1-1681983475626.png

Hope this will resolve your issue.

 




Mohamed Arshad K
Software Developer (CAD & BIM)

Message 4 of 4

tamsann
Enthusiast
Enthusiast

@Mohamed_Arshad @studio-a-int  It's work, Thank you for your supports!!!

0 Likes