MEP Pipe with fittings from CAD. Error : "str" object has no attribute "Id"

revit
dynamo

#1

Hello,

As its a popular topic, I tried to get this to work but I am unable to do so. I have followed those two threads below.
Pipe from cad
Pipe from Cad 2

  1. I tried creating the pipes from CAD using Pipe.ByLine(found also here) and it worked as intented but couldnt get them to connect, hence creating more than one Fire protection Wet System.

  2. As an alternative method, I have followed the Python Script provided on those two threads and tweaked them a bit but I am unable to create any piping.

My question is :
Coold you help me debug the code?Script and code below with the error.
BONUS: If possible, a hint in how can I create any fittings and connect to sprinklers? I Have already put the sprinklers using DataExtraction from AutoCAD.

Cant upload my .DYN so,


#2

Could you show the dropdowns of all the nodes in your script so we can verify your inputs into the node?


#3

Yes. Here you go.

Here is another one of the ones to the left.


#4

For the Pipe Type and PipeSystemType you are inputting strings instead of the actual types. Try bypassing the Element.Name node.


#5

I guess out of all things, I didnt try that. That did the trick, but now I get the error shown below. Is it possible that it can create the pipes but with fittings and as a network?Because every single pipe creates a new system and I am trying to make all of these a Piping Network. Thanks in advance


#6

@T_Pover has a few nodes in MEPover to delete system, add a new system, and add elements to a system. I would use those in some fashion.


#7

Which are those? I am still struggling to get any fittings or put them in network. There are too many pipes to do this individually.

The one that could work is MEPFittings.ByMEPCurves but it takes two lists as inputs, but I dont know how I could split the list into the closest pipes.


#8

Under the MEPover > Revit > Systems