Closed JoelvanHerwaarden closed 4 years ago
@JoelvanHerwaarden thanks for reaching out. The MEP part is under major review. What happened is that there was a wrong call to dispose of the total transform. The Curve input is supposed to be derived from a Corridor Featureline, therefore in World Coordinate System, that is why the Total Transform is necessary to create the pipes in the Revit project local coordinates. Can you please try to not transform the geometry of the curve before.
And what if, in this instance, the curves are not derived from a corridor feature line? I should translate them away from the origin first and then use the node?
As you can see in the screenshot of the topic, I tried that with the Inverse Document Total Transform, made with OOTB nodes, because the RevitUtils.DocumentTotalTransform kept returning nothing. Now we are hitting a roadblock with one node, because another node doens't return anything. I had to close Revit and Dynamo and restart again to make it work.
I understand that the lines should be in WCS, but the why is still unknown, since I am not deriving the lines from Civil for now.
The reason is because it was designed to create MEP curves following Corridor Featurelines, they are in WCS and I'm not going to change that. If restarting solved the issue confirms my assumption that the TotalTransform was disposed before.
Which version are you using? Revit 2020, Dynamo 2.3, Civil Connection 4.04
What did you do? (Steps to reproduce) Tried making pipes from a bunch of lines Got the Pipe Type (All PipeTypes in Revit doc, filtered By name) Got the Pipe System Type (All PipeSystemTypes in Revit doc, filtered By name) Got a Level
Result is a warning: Pipe.ByCurve operation Failed
What did you expect to happen? To create a bunch of pipes.
Suggested Solution Remove the DocumentTotalTransform function from the Pipe.ByCurve node, because it is not helpful if the lines don't come from Civil and are already translated to Revit Coordinate System.
Also check what went wrong in the Document Total Transform function and Log the Errors.