What is the problem that needs solving?
I need the capacity to SaveAs a large number of .rvt documents into .rte for distribution. Currently, within the node the input "Path" is filtered through the codeblock:
This gives no capacity for processing .rte's as the only subsequent review of the document is whether it is a family doc or not.
How would you like to see it solved?
I have adjusted the script so that the codeblock manipulating the input path is removed, and instead, the processing is handled within the Python.
Changing:
if doc.IsFamilyDocument:
path += '.rfa'
else:
path += '.rvt'
To:
if doc.IsFamilyDocument and ".rvt" in path:
path = path.replace('.rvt', ".rfa")
else:
pass
This enables the user to dictate the file type using the ".extension" notation, overriding this only in the case of a user trying to save a familydoc as a project.
Describe alternatives you've considered
There are plenty of other ways to achieve the same outcome. I simply wish to have the capacity to save Revit templates directly from .rvt documents. So long as I have this I'm happy :D.
Additional context
(Please fill in if applicable. Add any other context or screenshots about the feature request here.)
What is the problem that needs solving? I need the capacity to SaveAs a large number of .rvt documents into .rte for distribution. Currently, within the node the input "Path" is filtered through the codeblock:
This gives no capacity for processing .rte's as the only subsequent review of the document is whether it is a family doc or not.
How would you like to see it solved? I have adjusted the script so that the codeblock manipulating the input path is removed, and instead, the processing is handled within the Python.
Changing:
To:
This enables the user to dictate the file type using the ".extension" notation, overriding this only in the case of a user trying to save a familydoc as a project.
Describe alternatives you've considered There are plenty of other ways to achieve the same outcome. I simply wish to have the capacity to save Revit templates directly from .rvt documents. So long as I have this I'm happy :D.
Additional context (Please fill in if applicable. Add any other context or screenshots about the feature request here.)