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).
Solved! Go to Solution.
Solved by Bill_Myron. Go to Solution.
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
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
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.
From the help on on expressions under operators:
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.
Not sure if I'm grasping the expression correctly. I have attached the drawing with the label in question...
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.
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.
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