Pressurepart.addtoprofileview

Hi, I have problem in using “pressurepart.addtoprofileview” node from camber, I have attached screenshot, dwg and dyn files, help me out in evaluating error, from screenshot I want to add selected pressurepipe (4606) to profile view

error - Warning: PressurePart.AddToProfileView operation failed.
Method not found: ‘Void Autodesk.Civil.DatabaseServices.PressurePart.AddToProfileView(Autodesk.AutoCAD.DatabaseServices.ObjectId)’.

Thanks in advance

pressure pipe to profile.dyn (21.6 KB)
dwg file link - WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free

2 Likes

Which version of Civil 3D are you using?

I tested the files that you have uploaded and I can’t reproduce the error neither in Civil 3D 2021 nor in 2023.
I changed the index for the code block that you have added after the List.Flatten because it had a higher index than available Parts and I could run the script for all parts in the list or just for one and it works fine for me.

Try to update to latest version of Camber Package, I have the latest 4.2.5 and your script where 4.2.1. It might help

Regards,
Patrick

2 Likes