|
@@ -32,7 +32,7 @@ namespace SAGA.RevitUtils.MEP
|
|
|
reference.Add(element);
|
|
|
foreach (Connector connector in element.GetAllConnectors())
|
|
|
{
|
|
|
- if ((connector.ConnectorType != ConnectorType.Logical) && connector.IsConnected)
|
|
|
+ if ((ConnectorType.Physical.HasFlag(connector.ConnectorType)) && connector.IsConnected)
|
|
|
{
|
|
|
foreach (Connector connector2 in connector.AllRefs.GetList())
|
|
|
{
|
|
@@ -62,7 +62,7 @@ namespace SAGA.RevitUtils.MEP
|
|
|
List<Connector> list = (baseConnector == null) ? element.Current.GetAllConnectors() : new List<Connector> { baseConnector };
|
|
|
foreach (Connector connector in list)
|
|
|
{
|
|
|
- if ((connector.ConnectorType != ConnectorType.Logical) && connector.IsConnected)
|
|
|
+ if (ConnectorType.Physical.HasFlag(connector.ConnectorType) && connector.IsConnected)
|
|
|
{
|
|
|
foreach (Connector connector2 in connector.AllRefs.GetList())
|
|
|
{
|
|
@@ -97,7 +97,7 @@ namespace SAGA.RevitUtils.MEP
|
|
|
ConnectorSetIterator iterator = connectorSet.ForwardIterator();
|
|
|
while (iterator.MoveNext())
|
|
|
{
|
|
|
- if (((iterator.Current is Connector current) && (current.ConnectorType != ConnectorType.Logical)) && domain == current.Domain)
|
|
|
+ if (((iterator.Current is Connector current) && (ConnectorType.Physical.HasFlag(current.ConnectorType))) && domain == current.Domain)
|
|
|
{
|
|
|
list.Add(current);
|
|
|
}
|
|
@@ -119,7 +119,7 @@ namespace SAGA.RevitUtils.MEP
|
|
|
ConnectorSetIterator iterator = connectorSet.ForwardIterator();
|
|
|
while (iterator.MoveNext())
|
|
|
{
|
|
|
- if (((iterator.Current is Connector current) && (current.ConnectorType != ConnectorType.Logical)))
|
|
|
+ if (((iterator.Current is Connector current) && ConnectorType.Physical.HasFlag(current.ConnectorType)))
|
|
|
{
|
|
|
list.Add(current);
|
|
|
}
|
|
@@ -170,7 +170,7 @@ namespace SAGA.RevitUtils.MEP
|
|
|
while (iterator.MoveNext())
|
|
|
{
|
|
|
Connector current = iterator.Current as Connector;
|
|
|
- if ((current.ConnectorType != ConnectorType.Logical) || (current.ConnectorType == ConnectorType.Curve))
|
|
|
+ if (current!=null&&ConnectorType.Physical.HasFlag(current.ConnectorType))
|
|
|
{
|
|
|
list.Add(current);
|
|
|
}
|
|
@@ -215,7 +215,7 @@ namespace SAGA.RevitUtils.MEP
|
|
|
{
|
|
|
List<Element> list = new List<Element>();
|
|
|
Element owner = connector.Owner;
|
|
|
- if ((connector.ConnectorType != ConnectorType.Logical) && connector.IsConnected)
|
|
|
+ if ((ConnectorType.Physical.HasFlag(connector.ConnectorType)) && connector.IsConnected)
|
|
|
{
|
|
|
foreach (Connector connector2 in connector.AllRefs.GetList())
|
|
|
{
|