![]() ![]() Options.ExportScope = NavisworksExportScope.View # Import DocumentManager and TransactionManagerįrom RevitServices.Persistence import DocumentManagerĭoc = Ĭollector = FilteredElementCollector(doc).OfClass(View) This is what this should look like: import clr You are in a loop, potentially exporting many views but you never change the name/path of the file, so basically it will either throw an exception or just override the same file and you will end up with your last one only.No need to show code that was commented out.You don’t need that elif>pass statement.It would make more sense to define them outside of the loop, and then just change the View Id. It’s very inefficient to create Options for every variable. ![]() Please post all of the import statements etc. That would confuse even an experienced programmer, not to mention the inexperienced ones. First, you are referencing variables that are not defined.I appreciate you giving an answer here but there are some fundamental mistakes in your code:
0 Comments
Leave a Reply. |