Over 1.091.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and variables.
Discussion forum
?CAD discussions, advices, exchange of experience

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply ![]() |
Author | |
nham ![]() Newbie ![]() Joined: 01.Jul.2014 Location: Philippines Using: Autocad2010 Status: Offline Points: 7 |
![]() Posted: 02.Jul.2014 at 14:47 |
Please help me to calculate the volume of pipe. Please see attached drawinguploads/483549/pipe_3.dwg
|
|
![]() |
|
Kent Cooper ![]() Senior Member ![]() Joined: 12.Mar.2013 Location: United States Using: AutoCAD2020, 2023 Status: Offline Points: 685 |
![]() |
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 |
|
![]() |
|
John Connor ![]() Senior Member ![]() Joined: 01.Feb.2011 Location: United States Using: AutoCAD 2018 Status: Offline Points: 7175 |
![]() |
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>> |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,058 seconds.