Hi all, There’s been some nodes created for Revit but not C3D. I’m new to Dynamo and Python but I’d like to give this a shot in a Python script. I’ve looked thru the Civil API but found nothing for rotating a Pressure Fitting. Just like the revit node, I want to roll the fitting along/around the pipe at its first connection most likely. Rolling offsets are rare but they are necessary at times. If you look at T_Pover’s post (Pipe Fitting Rotation Around Pipe - #23 by jmmiller) you’ll get the idea.
What would be a way to solve this since there is no ‘method’ to rotate fittings? Can we cast to something that has a method to rotate itself?
As you said nothing for rotating a Pressure Fitting method
Can you attached example drawing [ before & after]
I’m not familiar with C3D or its API but my first assumption is that it’s possible to rotate a pressure fitting within the UI. Otherwise it’s just a limitation of the object and there’s nothing Dynamo can do about that.
My second assumption is that the C3D database is structured similarly to Revit and everything is class based. If that’s the case, there’s likely nothing specific about a Pressure Fitting that would require a rotation method. Typically this would happen at the Element level. A Pressure Fitting may or may not be its own class, but it would likely inherit the Element class and its rotation method. So you need to be looking at the right class to find the method you’re looking for.
Thanks for the response guys. Yes, @Nick_Boyts. That’s what I’m thinking as well. I’ll dig around the api and see if and how that works. In the meantime, @hosneyalaa, here’s a brief depiction of what I’m after.