Tee and TapAdjustable PartType in IDuctFittingAndAccessoryPressureDropServer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I am trying to realize some specific pressure drop calculation rules for taps and tees.
The problem is to recognize what is tee and what is tap in IDuctFittingAndAccessoryPressureDropServer.Calculate method.
For any tees and taps data.GetDuctFittingAndAccessoryData().PartType is PartType.Tee
There are two items in data.GetPresureDropItems() and three connectors in data.GetDuctFittingAndAccessoryData().GetAllConnectorData()
The only difference is there is a connector with connector index equals to -1 in the tap. In the tee all connectors' indexes are non-negative.
I suppose it is enough, because there are three connectors in the tee (you can see it as ConnectorElements in family editor), two connectors in the tap and two "air ways", so there is one "virtual" connector without corresponding ConnectorElement in the tap, so it's index equals to -1.
What do you think about it?