Bug Report: there are some bugs in Pipe::Create() API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
When I use a PipeType to create a new pipe, and I use the biggest diameter of that PipeType, and ensure the biggest diameter is smaller than 152 mm. I don't add insulation for this new pipe.
Let's see the property of the new pipe in the following picture: the diameter is correct, but the overall size is not correct, so we see the shape of this new pipe is much big than it should be.
In the picture, the left-top pipe is created by Revit ribbon drawing tool and it is correct. the right-bottom pipe is created by API and it is not correct.
There is also some strange tips:
- If I don't use the biggest diameter, it is always correct.
- If the biggest diameter is bigger than 152 mm, it is always correct.
- If the new pipe created by API is connected to other pipes, it is always correct.
- If I first add insulation for the new pipe, and then remove the insulation, then the shape of the new pipe become correct.
I guess there are something wrong of updating the overall size parameter value when setting diameter for the new pipe.
The Pipe::Create() API I used is:
public static Pipe Create(
Document document,
ElementId systemTypeId,
ElementId pipeTypeId,
ElementId levelId,
XYZ startPoint,
XYZ endPoint
)
Best Regards,
Zhigang Zhang