
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am attempting to write an addon supporting revit 2016, 2017, 2018, and 2019 that enables the user to convert all pipes in a document from one pipingSystemType to another, for example: Converting all domestic cold water pipes to domestic hot water.
The intent behind this addon is to allow an older document to be updated with newer standards of pipingSystemTypes, allowing the user to add it to the document with a separate tool i've written, then converting all pipes to the new pipingSystemType, before deleting the old pipingSystemType.
based on research that i've done I believe the best method to do this is the pipe.SetSystemType(pipingSystemType id), but I am getting the following error with every attempt:
I've looked at the journal files for information on this error, but it just restates the exception message.
Stepping through the code, and using the Revit Lookup tool, I can see that the function is within a transaction and the code is correctly finding the appropriate pipingSystemType id.
Based on the (very) few search results, I am using the method correctly.
http://www.revitapidocs.com/2017/dd13a0f2-4820-a6f2-3b8e-56c8d980060f.htm
Thanks,
Will
Solved! Go to Solution.