alexdoss Posted December 14, 2012 Share Posted December 14, 2012 Hi all ! Im looking for a way to import a revit scene with a specific view using MAXscript. I bumped into "OneClickRevit.RequestViews" method and "FileLinkMgr.Attach". This code Opens a RVT file successfully, but without the views: fName = "\\server\folder\file.rvt" FileLinkMgr.Attach fName showUI:false I would like to make the process fully automated, so this is why Im setting UI to false. Any pointers would be most appreciated ! Cheers! Al. Link to comment Share on other sites More sharing options...
Scott Schroeder Posted December 14, 2012 Share Posted December 14, 2012 Unless you always keep your views named exactly the same way, you'll need your UI to choose the right view. Figure out how Max calls the Revit view on load and you'll find the missing piece of your script. Link to comment Share on other sites More sharing options...
alexdoss Posted December 18, 2012 Author Share Posted December 18, 2012 Scott thanks very much for ur light! Im sorry for the delay of this answer. I couldnt manage to find how max calls Revit View on Load. Believe me I tried, but I will keep on trying I guess =P till a reach the border of MAXscript frontier with SDK. Prolly I'll have to jump across the SDK side of this sooner than I expected for this. hope there is a solution for the matter. Basically I still need to find a way to query a revit file for views, and choose a specific view, either by index or by name (better). For now Im using FBX. But the mess is frustrating. Again if anyone has a clue on how to get a query on RVT views (in MAXscript), please shine a light on this thread. All the best! Al. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now