CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 3611
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The information that you provide in this form will make up your forum profile which can be viewed by other forum members. Your email address will only be visible by forum admin and moderators and will be used to send you Forum Notifications. To cancel your account, use the page Opt-out or contact webmaster@cadforum.cz.

Topic ClosedVolume of Pipe

 Post Reply Post Reply
Author
nham View Drop Down
Newbie
Newbie


Joined: 01.Jul.2014
Location: Philippines
Using: Autocad2010
Status: Offline
Points: 7
Direct Link To This Post Topic: Volume of Pipe
    Posted: 02.Jul.2014 at 14:47
Please help me to calculate the volume of pipe. Please see attached drawinguploads/483549/pipe_3.dwg
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2019
Status: Offline
Points: 546
Direct Link To This Post Posted: 03.Jul.2014 at 15:12

Let's say [for the generic case, including this specific example] the pipe diameter is in a variable called 'dia', the angle in a variable called 'ang', and the wall thickness in a variable called 'thk'.  In AutoLISP terms:

The cross-sectional area of the pipe is pi times the square of the radius:
(* pi (expt (/ dia 2) 2))
 
The distance along the pipe as it goes through the wall is a function of the thickness and the angle:
(/ thk (sin ang))
 
The volume of the pipe inside the wall is just the product of those:
(* pi (expt (/ dia 2) 2) (/ thk (sin ang)))
 
As for constructing it in 3D, that's a process of using Extrude on a Circle, or [shortcut to the same thing] drawing a Cylinder, longer than you need, and using Slice twice on it at the appropriate angle and spacing.  Some changes of User Coordinate System will make it easier, though it could be done without that.  It could presumably be automated in a Lisp routine, if this is something that is needed often enough.
 
EDIT:  Actually, in a quick trial, I find you can construct it without making it too long and using Slice, by using Extrude along a 3D-diagonal Line as a path.  In this example, to get the shape [though not in the same orientation], draw a Circle with 300 radius, and a Line diagonally up off the page, from the Circle's center to @0,300,300 [or any combination with either the X or Y coordinate 0 and the other two 300 or -300].  Then Extrude the Circle, using the Path option and selecting the Line.  With a UCS change you can draw it directly in the orientation of the wall and pipe.


Edited by Kent Cooper - 03.Jul.2014 at 15:44
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7123
Direct Link To This Post Posted: 03.Jul.2014 at 16:11
Create the pipe and wall in 3D.

Subtract the pipe from the wall.

Use the Separate command to unjoin (is that a word?) the main wall from the portion of the wall contained within the interior of the pipe.

Use the Massprop command to get the volume.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,063 seconds.