And I would like to make a CType window that pops up at the end of my script run just like this post wants. However, I want it to include data from my script to tell the user a specific number. However I dont know how to do that. My Python skills are extremely limited but I would like to figure this out. Besides that I am already using data shapes at the begining of the script so therefore I cant use them at the end. Please let me know what I need to do. Here is what I have so far:
Thanks Ewan! So what does the b=TaskDialogCommonButtons.Ok line do? I dont see any reason for it. Likewise, the TaskDialog.Show(‘Title’, dataEnteringnode,b) makes sense right up until ‘b’. Because it doesnt show anything for ‘b’. So what is that for? I dont understand. Sorry I am just trying to learn. Alban’s makes a lot more sense to me, but I figure there has to be some reason for your extra code. What is it? Thanks!
Is there a way to take information from users like this below, i cant seem to figure out how to set info in these buttons or extract it once its clicked on. Any more info on this node would be most helpful!
from Autodesk.Revit.UI import TaskDialog, TaskDialogCommonButtons, TaskDialogResult, TaskDialogCommandLinkId
mainDialog = TaskDialog("Hello, Revit!")
mainDialog.MainInstruction = "Hello, Revit!"
mainDialog.MainContent = """This sample shows how to use a Revit task dialog to communicate with the user. The command links below open additional task dialogs with more information."""
mainDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink1, "View information about the Revit installation")
mainDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink2, "View information about the active document")