PDA

View Full Version : Grade Check expression, can't find it



caddjockey2000
2007-12-04, 02:06 AM
I was at AU2007, which was awesome, and I saw one of the instructors use an expression called "Grade Check" which can be used to set the rotation of the arrow in a slope label to always point downhill. The only information I found about it says it should be in my template already but no such luck for me. Could someone let me know what the expression is or point to an article with the information. He said I could find it in the whitepapers "Grading Best Practices" but I have had no luck finding that as well.

brian.hailey933139
2007-12-04, 07:33 PM
It's available in the "Grading Best Practices" white paper available from the Autodesk website.

http://images.autodesk.com/adsk/files/civil3d2008_grading_best_practice.pdf

caddjockey2000
2007-12-04, 07:53 PM
Thanks for the link to the file I was looking for. I am not sure why I could not find that exact file. But, the file does not show the expression itself, it only shows where you apply the expression. My templates which came in the install package do not contain this expression. I just need the expression code. If you or anyone out there have it or now were I can get the actual expression code that would be great. Again, thanks for all you help.

brian.hailey933139
2007-12-04, 11:22 PM
The expression is in the line label section, not the surface slope label.
Settings tab->General->Label Styles->Line->Expressions

The expression looks like this:
IF({General Segment Grade}<0,0,pi)

If you want to use this for the slope label, replace "{General Segment Grade}" with the appropriate value.

caddjockey2000
2007-12-05, 12:37 AM
Thanks so much! This will be a great help.

jlord.108497
2008-07-11, 04:43 PM
Could this expression be used for Slope Labels on Pipes?

I have tried this:

IF({{Pipe Slope}<0,0,pi)

but that gives me a Parse Error. What format should I use, I tried the Grade/Slope result?

brian.hailey933139
2008-07-13, 11:37 PM
Could this expression be used for Slope Labels on Pipes?

I have tried this:

IF({{Pipe Slope}<0,0,pi)

but that gives me a Parse Error. What format should I use, I tried the Grade/Slope result?

I haven't tried your expression but you do have an extra { in there.

jlord.108497
2008-07-15, 10:37 PM
FIxed it but STILL get the same Parse Error!