Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pipe Labels with Direction

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
ToddRogers-WPM
1739 Views, 9 Replies

Pipe Labels with Direction

If you are labeling a pipe, the Pipe Start Direction and Pipe End Direction is fine.  However, I am looking for it to label just the direction (SW, N, etc.).  As it is, it labels it (N70°E), I want it to read (NE).

 

 



Todd Rogers
BIM Manager
Blog | Twitter | LinkedIn

9 REPLIES 9
Message 2 of 10
odoshi
in reply to: ToddRogers-WPM

Might it be possible with an Expression?

 

They support IF statements, so you could test the direction and replace it with NE, SE, NW, SW.

 

Regards,

Mike

 

Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com
Message 3 of 10
ToddRogers-WPM
in reply to: odoshi

I tried that, but I was unsuccessful.



Todd Rogers
BIM Manager
Blog | Twitter | LinkedIn

Message 4 of 10
odoshi
in reply to: ToddRogers-WPM

Check this thread. The workaround would be to include 4 text components in the pipe label. NW, NE, SW, SE.

 

Then set their hieght to .1" or .00001" using the Expression.

 

http://forums.autodesk.com/t5/autocad-civil-3d-general/expressions-if-statement/td-p/2498497

 

It isn't pretty.....

 

Mike

 

Mike Caruso
Autodesk Certified Instructor 2014
AutoCAD/Civil 3D Autodesk Certified Professional 2014, 2015, 2018
www.whitemountaincad.com
Message 5 of 10
Bill_Myron
in reply to: ToddRogers-WPM

Just did this for a structure rotation. Your ranges might be different, depending on how you set up your drawings. As well you will need more of them if you want NE, SW, etc.

 

 

http://forums.autodesk.com/t5/autocad-civil-3d-general/pipe-network-structure-label/m-p/5179837#M254...

 

 

From the help on on expressions under operators:

 

Logical operators return 1.0 for true and 0.0 for false. Since they return values, you can perform logical AND and OR with addition and multiplication. For example: ((a<b) + (b>c)) tests for a < b or b > c. ((a<b)*(b>c)) tests for a<b and b>c.

So if we apply these in our IF statement we will get the desired result. Our North is 90 so these are written for that direction. If your directions are different, adjust accordingly.

 

 

 

Ranges:

East - 315 to 45

North - 45 to 135

West - 135 to 225

South - 225 to 315

 

Expression:

 

IF(({Structure Rotation Angle}>DEG2RAD(135))*({Structure Rotation Angle}<DEG2RAD(225)),TEXT HEIGHT,0.000001) 

 

This tests if the angle is greater thatn 135 AND less than 225.

  

For the range that crosses th 0 degree you will ahve to change the "AND" to an "OR".

  

IF(({Structure Rotation Angle}>DEG2RAD(315))+({Structure Rotation Angle}<DEG2RAD(45)),TEXT HEIGHT,0.000001)

  

Each direction will need its own text component and expression.

 

Message 6 of 10
ToddRogers-WPM
in reply to: Bill_Myron

Not sure if I'm grasping the expression correctly.  I have attached the drawing with the label in question...



Todd Rogers
BIM Manager
Blog | Twitter | LinkedIn

Message 7 of 10
gbondoc
in reply to: ToddRogers-WPM

Here is a thought, Possibly two expressions

 

if 0 to 180 N otherwise S

 

if 90 to 270 W otherwise E

 

written in the right "expressions" syntax of course.

Message 8 of 10
Bill_Myron
in reply to: ToddRogers-WPM

I made a quick label that you can take from.

 

You will jsut need to insert the components in that label so they apear correct.

Might need some fine tuning in there.

 

 

Hope this helps.

Message 9 of 10
ToddRogers-WPM
in reply to: Bill_Myron

Thanks Bill.  That is awesome!



Todd Rogers
BIM Manager
Blog | Twitter | LinkedIn

Message 10 of 10
Brekke99
in reply to: Bill_Myron

Bill, I would love to be able to apply your solution to revise my pipe direction. But I am having trouble understanding what you mean by inserting the componets to in the label.

 

Thanks,

 

ROn

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

Post to forums  

Rail Community


Autodesk Design & Make Report