AutoCAD Civil 3D Wishes (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pipe Depth Quantities

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
731 Views, 6 Replies

Pipe Depth Quantities

I am looking for a way to determine the amount of pipe in given depth ranges. For example I need to know how much pipe is in the 0-6 foot range 6-8,8-8-10 and greater than 10. This is used when pricing out construction costs for the pipe. It seems I have all the information but I don't see anyway of reporting that type of information. The table options give me min/max cover or start/end cover but I need more than just that.
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

That probably wouldn't be too hard to write a tool for.

If I had any free time I'd do it for fun. The coding would not be horribly
difficult.

wrote in message news:6011146@discussion.autodesk.com...
I am looking for a way to determine the amount of pipe in given depth
ranges. For example I need to know how much pipe is in the 0-6 foot range
6-8,8-8-10 and greater than 10. This is used when pricing out construction
costs for the pipe. It seems I have all the information but I don't see
anyway of reporting that type of information. The table options give me
min/max cover or start/end cover but I need more than just that.
Message 3 of 7
Anonymous
in reply to: Anonymous

I am a fairly good VB.net programmer but I just can't seem to get the hang of programming with Civil 3D objects. You're right it doesn't seem too difficult but I can't seem to get started.
Message 4 of 7
Anonymous
in reply to: Anonymous

Pipes have starting X,Y and Z/elevation. Divide it however tightly you
want, calculate the surface elevation and pipe invert. The rest is simple
math.

You can provide a list of networks, then process whichever one the user
selects. If you have the network, it's a for each pipe in network kind of
thing.

The hard part (for my simple mind) is reporting the results. If I get a
chance, I'll dig up what I was working on for this. The only part left was
the above stuff (which is easy). It's VBA, but that can mostly transfer
over into .net.


wrote in message news:6011818@discussion.autodesk.com...
I am a fairly good VB.net programmer but I just can't seem to get the hang
of programming with Civil 3D objects. You're right it doesn't seem too
difficult but I can't seem to get started.
Message 5 of 7
Anonymous
in reply to: Anonymous

That would be very helpful. My biggest problem is usually the syntax. I can do the math and the loop and all that I just have a tough time working with the actually access the objects and getting user input for objects. Really it's more working with the Civil 3D object model. But if you have something for me to work with that would be great.
Message 6 of 7
Anonymous
in reply to: Anonymous

DISCLAIMER: I may have mentioned already, but this is something I was
playing around with. It is not fully tested and does not include the depth
stuff, though I wasn't concerned with that part. My idea was to collect the
pipe sizes on the first iteration through, then for each pipe size, collect
the depth info. As you can see, I stopped after collecting total length of
each size.

This is for 2009........you'd have to change the 6.0 part near the bottom
for others.

Option Explicit
Dim oAlignment As AeccAlignment
Dim oPartDataField As AeccPartDataField
Dim oPartDataRecord As AeccPartDataRecord
Dim oAcadObject As Object
Dim entbasepnt As Variant
Dim oPipeID As AeccPipe
Dim found As Boolean

Dim oNetworks As AeccPipeNetworks
Dim oNetwork As AeccPipeNetwork
Dim workingNetwork As AeccPipeNetwork

Dim oApp As AcadApplication

Dim sAppName As String
'Next TWO lines were not in pilfered code
Dim g_oPipeApplication As AeccXUiPipeLib.AeccPipeApplication
Dim g_oPipeDocument As AeccXUiPipeLib.AeccPipeDocument
Dim yeahright As Variant

Dim oColPipes As Collection
Dim oColPipeSizes As Collection

Private Sub cbtGetQuantities_Click()
Dim oNetwork As AeccPipeNetwork
Set oNetwork = g_oPipeDocument.PipeNetworks(Me.cbxPipeNetworks.Text)

Dim oPipe As AeccPipe
Set oColPipes = New Collection
Set oColPipeSizes = New Collection
For Each oPipe In oNetwork.Pipes
'Me.tbxOutput.Text = Me.tbxOutput.Text & vbCrLf & oPipe.Name
oColPipes.Add oPipe
On Error Resume Next
oColPipeSizes.Add oPipe.InnerDiameterOrWidth,
Format(oPipe.InnerDiameterOrWidth, "0.00000000")
On Error GoTo 0
Next oPipe

Dim icnt As Integer
Me.tbxOutput.Text = "Quantities for network: " & oNetwork.Name & vbCrLf &
vbCrLf & _
"Pipes"
For icnt = 1 To oColPipeSizes.Count
Dim sSize As String
'sSize = Format(oColPipeSizes(iCnt) * 12#, "0") & "\"""
sSize = Format(oColPipeSizes(icnt) * 12#, "0") & "\"""
Dim dTotalLength As Double
dTotalLength = 0#
For Each oPipe In oColPipes
If oPipe.InnerDiameterOrWidth = oColPipeSizes(icnt) Then
dTotalLength = dTotalLength + oPipe.Length2D
End If
Next oPipe
Me.tbxOutput.Text = Me.tbxOutput.Text & vbCrLf & sSize & " <> " &
Format(dTotalLength, "0.00")
Next icnt

Me.tbxOutput.Text = Me.tbxOutput & vbCrLf & vbCrLf & "Structures" & vbCrLf
Dim oStruct As AeccStructure
For Each oStruct In oNetwork.Structures
Dim sOut As String
sOut = oStruct.Name & " <> " & oStruct.Description & " <> " & _
oStruct.RimElevation & " <> " & oStruct.SumpElevation & vbCrLf
Me.tbxOutput.Text = Me.tbxOutput & sOut
Next oStruct



End Sub

Private Sub UserForm_Initialize()
Set oApp = ThisDrawing.Application
' NOTE - Always specify the version number.
sAppName = "AeccXUiPipe.AeccPipeApplication.6.0"
Set g_oPipeApplication = oApp.GetInterfaceObject(sAppName)
Set g_oPipeDocument = g_oPipeApplication.ActiveDocument
Set oNetworks = g_oPipeDocument.PipeNetworks
Set oNetwork = Nothing

Me.cbxPipeNetworks.Clear
For Each oNetwork In oNetworks
Me.cbxPipeNetworks.AddItem oNetwork.Name
Next oNetwork
Me.cbxPipeNetworks.ListIndex = 0

End Sub

wrote in message news:6012340@discussion.autodesk.com...
That would be very helpful. My biggest problem is usually the syntax. I
can do the math and the loop and all that I just have a tough time working
with the actually access the objects and getting user input for objects.
Really it's more working with the Civil 3D object model. But if you have
something for me to work with that would be great.
Message 7 of 7
Anonymous
in reply to: Anonymous

There is a routine in Pipe Tools, Pipe epth Report. that gives you the depth
along the top or bottom of the pipe to any surface at user defined
intervals. it also includes the depths at each manhole. Pipe Tools is
part of the Civil Essentials suite of
routines that enhances C3D

View pipe tools avi
http://www.rsteltman.com/content/downloads/pipec3d.avi
Download the FREE 30 day fully functioning evaluation version
http://www.rsteltman.com/

wrote in message news:6011146@discussion.autodesk.com...
I am looking for a way to determine the amount of pipe in given depth
ranges. For example I need to know how much pipe is in the 0-6 foot range
6-8,8-8-10 and greater than 10. This is used when pricing out construction
costs for the pipe. It seems I have all the information but I don't see
anyway of reporting that type of information. The table options give me
min/max cover or start/end cover but I need more than just that.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report