I am using the following API to create duct that is not connect to anything in Revit 2013.
Document::NewDuct Method (XYZ, XYZ, DuctType)
Then the MEPSystem of the created Element is null.
The System Type is displayed as "Undefined" in the Properties Palette.
Is there any way to create a default system for it?
Solved! Go to Solution.
Solved by tatepoon. Go to Solution.
Hi,
The documentation says that a Duct that don't belong to any system will return MEPSystem as NULL/Nothing. Also, this property is read-only, so even by creating a new system, you cannot set it to the Duct.
Hope this clarifies.
The 2013 don't have many alternatives, the NewDuct method don't offer a parameter for it...
It may be possible on 2014 as the Duct.Create have more options, in case you would like to try.
@augusto.goncalves wrote:The 2013 don't have many alternatives, the NewDuct method don't offer a parameter for it...
It may be possible on 2014 as the Duct.Create have more options, in case you would like to try.
Yes, the following API can solve the problem in Revit 2014. In Revit 2013, I can only create such a duct by copying an existing duct instance.
public static Duct Create( Document document, ElementId systemTypeId, ElementId ductTypeId, ElementId levelId, XYZ firstPoint, XYZ secondPoint )