I have tried all of the expressions below to add the the vertical curve elevation at the pvi to my curve crest & sag labels on my profile and all I get is ??? for the value. Can someone please tell me what I am doing wrong? I am currently running Civil 3D 2012.
Thank you,
Rich
IF({Grade In}<{Grade Out}, ({PVI Elevation}+{Tangent Offset at PVI}), ({PVI Elevation}-{Tangent Offset at PVI}))
{PVI Elevation}+{Tangent Offset at PVI}
{PVI Elevation}-{Tangent Offset at PVI}
Hi Rich, for future reference this forum is for questions pertaining to customizing C3D via lisp, VB.NET, c#, etc. You should ask your general questions in the main C3D forum where you will have far more exposure to people who could possibly answer the question.
Now for your question. My guess is these is an issue with how you are creating the label style. I have a style that uses the exact expression you show:
IF({Grade In}<{Grade Out}, ({PVI Elevation}+{Tangent Offset at PVI}), ({PVI Elevation}-{Tangent Offset at PVI}))
which works fine. So be sure it is set to return a Double. Mine has been named Corrected PVI Elevation and you can see it in use here: