2

I am using C# to build an API for this software called Revit Autodesk.

I want to show a dialogue box which shows a drop down list, then user can choose from that list.

I initiated a new object known as

 TaskDialog

It shows me a dialogue box, but I can't add a dropdown list to it.

Any help?

1 Answer 1

2

You can't add a dropdown list to a TaskDialog. TaskDialog is a class provided by the Revit API, so there are only certain aspects of it that can be customized by the user. Check the Revit API documentation to see what these are.

If you need to construct a dialog box that has a dropdown list, you will need to create a custom form yourself. To accomplish what you are trying to do, you should look into either WinForms or WPF which are both user interface libraries that are part of the .NET Framework. Both are compatible with Revit.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.