• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D

    Reply
    Contributor
    JimAU
    Posts: 16
    Registered: 07-14-2010

    Globally changing pipe diameters

    291 Views, 2 Replies
    09-15-2010 01:19 AM
    I would like to change the pipe diameters of a pipe network. Is there a way of globally achieving this without individually swapping each pipe part?
    Using 2011.
    Thanks.
    Valued Mentor
    Posts: 390
    Registered: 09-29-2008

    Re: Globally changing pipe diameters

    09-15-2010 05:45 AM in reply to: JimAU

    Not OTB, you can do it two ways:

     

    LAndXMLHack: export the network to LandMXL and edit each pipe diameter to be the required then re-import (Longwinded but use find and replace to speed up).

     

    Export the network as a Windes file using UKIE CKit windes out function. Edit the Standard parts list so that it only contains the pipe diameter you want then import the file (Quick). [Reconmended]

     

    Other way would be to use the Pipes to Excel Vba sample (C:\Program Files\Autodesk\AutoCAD Civil 3D 2011\Sample\Civil 3D API\COM\Vba\Pipe\PipeSample.dvb) you can change the Pipes using oPipe.ResizeByInnerDiaOrWidth(guid, dia, True). but this requires some code. Not easy and about as quick to do as the first option but you only need to make it once, next time you can just run it again.

     

    Distinguished Mentor
    Posts: 859
    Registered: 03-24-2009

    Re: Globally changing pipe diameters

    09-15-2010 08:36 AM in reply to: JimAU

    It doesn't appear that I've updated the compiled code for 2011, but the code to swap parts may be found here: http://blog.civil3dreminders.com/2009/10/civil-3d-2010-swap-parts-part-ii.html