TaskDialog exception

TaskDialog exception

Charles.Stokes
Participant Participant
803 Views
2 Replies
Message 1 of 3

TaskDialog exception

Charles.Stokes
Participant
Participant

I'm trying to create a Task Dialog in Revit but I'm relatively new to c# and my code is compiling fine but there's an exception somewhere that i just can't see.

Any help would be appreciated Capture.JPG

 

Thanks

Charlie 

0 Likes
Accepted solutions (1)
804 Views
2 Replies
Replies (2)
Message 2 of 3

matthew_taylor
Advisor
Advisor
Accepted solution

Hi @Charles.Stokes

Your app just swallows the exception. Remove the try/catch statement and you'll have more of an idea.

 

At a glance, the empty dialog name may be the issue.

 

Cheers,

 

-Matt


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 3 of 3

Charles.Stokes
Participant
Participant

Thanks for the advice,

yes it was that empty string holding me back.

0 Likes