Hi Jonathon, regarding this… I have a script to generate Revit pipes. This creates regular native pipes in revit but in the speckle viewer I only see lines not pipes. Is there a way to see the pipes as pipes in the viewer? Thanks in advance.
The Speckle viewer doesn’t implicitly know what a pipe is, and the lines you see are the correct parametric definition of a Revit pipe.
However, a displayable object in the viewer has an additional displayValue
prop, an array of displayable geometries, usually meshes. The Speckle Revit connector generates a mesh representation of Pipe when publishing from native revit.
It would be best to do this with a library referenced by your automate function. In most cases, I have found the greatest success with Trimesh (Python) and Helix (Csharp). These both have a singular method for “mystifying” an extrusion along a vector. Trimesh also has meshing from an extrusion along a path.
Jonathan, on the same topic. Pipes generated by Python come into Revit as reinforcement bars. Are there any watch its when generating Revit native objects in Speckle with Python?
That sounds curiously suspicious - I’d need to know a bunch more to understand why!!
Thanks for the response Jonathon. We have a Python algorithm that creates pipes to serve fire sprinklers (see the image, in the image elevation of the pipe is wrong - we will fix that later). After we placed the pipes and send the model back to Revit, pipes are coming in as rebar.
Pipes are created using a custom Pipe class we have written.
Gotcha - Im travelling pst SpeckleCon but I can POC something quickly later to see if we can work around this.
Thank you. Talk to you next week.
I think you might like our Private Automate announcement also !!!