PDA

View Full Version : Flip Direction for Pipes?



mdemint
2009-07-29, 04:18 PM
I was wondering if there was any way to flip the direction of a pipe. I'm not talking about the flow direction, but rather the flip direction effect that could be done in LDT with lines.

It's annoying to have to pull the pipes off and manually change which end they go to just to get the linetype facing the right direction.

(Sorry if this has been asked before, I did a search and didn't see anything about this)

chris805_1996
2009-07-29, 07:07 PM
http://style.civil3dreminders.com/flippipe or http://au.autodesk.com/?nd=class&session_id=830 you'd have to change the references based on what version Civil 3D you are using. http://blog.civil3dreminders.com/2008/09/updating-references.html It doesn't work well for curved pipes, you'll have to drag the curve to the correct location.

mdemint
2009-07-29, 08:37 PM
Awesome... exactly what I'm looking for. Now I have to find an hour to put aside to watch your video for more little tricks...

chris805_1996
2009-07-30, 12:10 AM
Before you spend an hour watching it, here are the reviews from the class (attached).

brian.hailey933139
2009-08-01, 09:58 PM
I don't get some of the comments AU attendees leave - "I don't use civil 3d did not help me at all", then why were you in a Civil 3D Power Track class?

I've been meaning to watch your session, and now I'm going to make sure I take the time to watch it. I don't think your technical skills are at all in question, probably just a combination of nerves and inexperience in speaking that got you the bad comments.

mdemint
2009-08-20, 02:48 PM
Chris, I finally got around to testing your vba code and when I select a pipe, I get an error message telling me what I selected was not a pipe. I'm using C3D 2009...

EDIT: I can't get into the VBA to check the code because it's password protected.

chris805_1996
2009-08-21, 04:28 AM
I removed the password protection, you should be able to change the references now.
http://style.civil3dreminders.com/FlipPipe.dvb

mdemint
2009-08-21, 05:27 PM
Chris, thanks for the unprotected file... I noticed references to excel in your declarations. Perhaps I am getting the error because it is not recognizing a reference to excel? Does it copy the pipe to an instance of excel, flip things around, then import them to C3D?

I have Civil 3D 2009, and Excel 2003 & 2007... when I run the macro, it prompts me to select a pipe. I select the pipe and it returns the coded error message: "You did not select a pipe."

chris805_1996
2009-08-24, 01:12 AM
Chris, thanks for the unprotected file... I noticed references to excel in your declarations. Perhaps I am getting the error because it is not recognizing a reference to excel? Does it copy the pipe to an instance of excel, flip things around, then import them to C3D?

I have Civil 3D 2009, and Excel 2003 & 2007... when I run the macro, it prompts me to select a pipe. I select the pipe and it returns the coded error message: "You did not select a pipe."

The Excel reference is because I started it with the sample that ships with the program, you should be able to remove it without it affecting the code. You do have to flip the pipe in plan view, it won't work on a pipe shown in a profile view.

mdemint
2009-08-24, 03:13 PM
Chris, thanks again for your help and providing this vba code. For some reason the FlipPipe macro doesn't work for me. It runs, but doesn't recognize the pipes I select (in plan view). After looking at this code and some of your other macros, I'm wondering if it needs to reference "AeccPipeApplication.6.0" (in my case for C3D 2009). Perhaps the code doesn't identify the network and that's why it's not working for me? I dunno...

mdemint
2009-08-25, 12:50 PM
Okay, Chris helped me figure out how to get the macro to work. I had a bad reference in vba. When I went to Tools > References, at the top of the list there appeared to be the references I needed:

Autodesk Civil Engineering Pipe 6.0 Object Library
Autodesk Civil Engineering UI Pipe 6.0 Object Library

Apparently these references were bad even though C3D 2009 users need to reference 6.0. Chris had me uncheck these anyways and recheck them below. Now it works well. If anyone was having the same problem as I was I hope this helps.

THANKS CHRIS!!! "You must spread Reputation around before giving it to chris805_1996 again."

davidk412502
2013-08-20, 05:22 PM
I'm having troubles with this VBA command, I'm using 2012 civil 3d and it seem just to lock up.

daguilera6788252
2020-02-27, 04:38 PM
does this still work in Civil 2019? if so what's the command to run it? i type in "Flippipe" on the command line... but it gives me command unknown?