I would like to use Dynamo to open Revit families in the background with Orchid, set the active view to named view and save. But I’m not able to find a node to set the view. Any thoughts?
Is there anything else you want to do with that opened family other than save the family file? There’s no need to activate a view in that case.
Not possible using Dynamo since the only was to set the active view and do something with it is when Revit isn’t in its idling event. The catch being Dynamo can only execute during Revits idling event, and theirin lies the problem.
You can set the active view asynchronously, (so you can use Dynamo to do this) however, control has to return back to Revit for the change to take place, so you can’t do anything other than change the view to cut a long story short…plus you have to be in the active document to call this method. Search the forum if you’re interested - I posted the technique a while back in the forum.
Yep, exactly what I said. RequestViewChange is the asynchronous method I mentioned …with all the limitations I mentioned. That said, maybe you can conjure up some magic, so I’ll leave this one with you.
Yes, I need to do more.
Thank you. But for me it’s unbelievable that simple thing isn’t possible.
Thanks for reiterating everything I said, ignoring it, coming full circle, and wasting your time in the process
Your time is valuable - use it wisely:
Here’s RequestViewChange() in action from a post 2 years old. You can’t call this method in the background as it’s a UI call…which can only be made when Revit is full fired up, not open on disk (which incidentally answers your other question).
Please forgive me for sharing useful, sound advice. Have a great day
Due to @Thomas_Mahon respectless writings and actions have I decided to withdraw all my contributions to this topic. I simply don’t want to waste my time in assisting and helping when someone feels it is acceptable to act the way he does…
If you @piotr.bocian would like to have my contribution, then follow me at my blog, here can I control what is appropriate and what is not.