Revit_Toolkit icon indicating copy to clipboard operation
Revit_Toolkit copied to clipboard

Pipe diameter issue on pull

Open pawelbaran opened this issue 5 years ago • 8 comments

Description:

On pull of pipes, the diameters seem to come out mismatched:

image

pawelbaran avatar Mar 08 '21 18:03 pawelbaran

@pawelbaran Thank you for identifying the issue and you assistance with replicating it. The screenshot below shows a replicated issue with the appearance of diameters. image I am investigating the cause of the problem.

AndreBalasian avatar Mar 18 '21 13:03 AndreBalasian

Insulation diameter check: With the exception of some rounding of decimal places and having different units, the outer diameter of insulation checks out as shown below: Large pipe: image image

Small pipe: image image

Will check the pipe diameters to see if the problem originates there.

AndreBalasian avatar Mar 18 '21 15:03 AndreBalasian

Pipe diameter test:

Based on the screenshots below, it appears that we are pulling the "nominal" pipe size and placing it in the Diameter property, which the description refers to as an Outer diameter. This may explain why the Grasshopper visualisation looks different, as the nominal size is neither an inner or outer diameter.

image

Large pipe: image image

Small pipe: image image

AndreBalasian avatar Mar 18 '21 16:03 AndreBalasian

This observation is confirmed in the code: image

AndreBalasian avatar Mar 19 '21 09:03 AndreBalasian

Well spotted @AndreBalasian. From what I can see it should be RBS_PIPE_OUTER_DIAMETER

image

pawelbaran avatar Mar 19 '21 11:03 pawelbaran

After the discussion with @AndreBalasian, we decided to park this issue until the nominal and physical dimensions are distinguished on the oM side (see my comment).

pawelbaran avatar Mar 19 '21 11:03 pawelbaran

@pawelbaran

Reviving this issue.

Only just saw your linked comment after having made this, so please mind the overlap in ideas.

We are unable to pull pipes of type Cast Iron at 1" due thickness being "inconceivable"

MicrosoftTeams-image (1)

I propose a simple change from: image

to: image

this would mean that any method that calls Create.TubeProfile would be using the outside diameter as it's diameter. Given that the thickness is also passed along, it is not apparent that the nominal diameter should be used since it is often not correct except for when ordering the pipe.

"Diameter" parameter on the pipe Pipe.SectionProperty.SectionProfile.ElementProfile should be loaded with the outside diameter value as this is an actual value relevant to the element profile image

And the pipe object definition should include a "Nominal Diameter" parameter which pulls from Revit Diameter/Size property: image image

Example from EngineeringToolbox: image

travispotterBH avatar Jun 24 '22 00:06 travispotterBH

Thanks @travispotterBH for picking this up. Looks like we are on the same page: let's first sort out https://github.com/BHoM/BHoM/issues/1139 (tricky bit for you guys - possibly something to brainstorm around and map out in the coming milestone?), then this issue should become super simple.

pawelbaran avatar Jun 28 '22 16:06 pawelbaran

@pawelbaran : I ran the Pipe-pulling script again and looks like it gave the correct pipe sizes compared to your screenshot in this issue's description. Have you already fixed this issue?

image

image

vietle-bh avatar Jan 04 '24 17:01 vietle-bh

Hmm, we may have fixed it in the process, happy to close then.

@travispotterBH I am not sure whether the issue raised in your comment about cast iron still occurs, but if so, then I would suggest raising a separate, dedicated issue - discussion here started becoming a bit messy plus the originally reported problem does not exist any more.

pawelbaran avatar Jan 04 '24 17:01 pawelbaran