AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*Expert Elite*
AllenJessup
Posts: 6,170
Registered: ‎05-21-2003
Message 1 of 9 (264 Views)
Accepted Solution

Profile Middle Ordinate Expression

264 Views, 8 Replies
04-09-2012 06:10 AM

I'm trying to build an expression to display the Middle Ordinate for profile curves. I don't usually do this but it's required for this project.

 

The first thought was to subtract the PVI elevation from the profile elevation. The PVI elevation is easy but I don't see an easy way to get the profile elevation. I can go through the whole formula for calculating the grade. But that will probably take some debugging.

 

Does anyone know a better way.

 

Allen

Use the "Tangent Offset at PVI" label property. This is the distance from PVI to the profile elevation. Here is the expression I use to get the midpoint elevation.

IF({Grade In}<{Grade Out}, ({PVI Elevation}+{Tangent Offset at PVI}), ({PVI Elevation}-{Tangent Offset at PVI}))

 

*Expert Elite*
Jeff_M
Posts: 4,510
Registered: ‎07-22-2003
Message 2 of 9 (262 Views)

Re: Profile Middle Ordinate Expression

04-09-2012 06:23 AM in reply to: AllenJessup

Use the "Tangent Offset at PVI" label property. This is the distance from PVI to the profile elevation. Here is the expression I use to get the midpoint elevation.

IF({Grade In}<{Grade Out}, ({PVI Elevation}+{Tangent Offset at PVI}), ({PVI Elevation}-{Tangent Offset at PVI}))

 

Jeff_M, also a frequent Swamper
*Expert Elite*
AllenJessup
Posts: 6,170
Registered: ‎05-21-2003
Message 3 of 9 (258 Views)

Re: Profile Middle Ordinate Expression

04-09-2012 06:36 AM in reply to: Jeff_M

Very nice Jeff. Thank you. I'll see if I'm talented enough to use it in a few minutes.

 

Allen

*Expert Elite*
AllenJessup
Posts: 6,170
Registered: ‎05-21-2003
Message 4 of 9 (253 Views)

Re: Profile Middle Ordinate Expression

04-09-2012 06:53 AM in reply to: Jeff_M

Worked very well. Thank you.

 

I'm going a little batty trying to match the labels on the attached.

 

Allen

Active Contributor
Kenth_Kristoffer
Posts: 30
Registered: ‎09-25-2014
Message 5 of 9 (66 Views)

Re: Profile Middle Ordinate Expression

11-25-2014 12:45 AM in reply to: AllenJessup

Hi,
I am using Civil 3D 2014.
When I try to use this expression, it tells me "undefined property".

Please help.

*Expert Elite*
Jeff_M
Posts: 4,510
Registered: ‎07-22-2003
Message 6 of 9 (58 Views)

Re: Profile Middle Ordinate Expression

11-25-2014 07:16 AM in reply to: Kenth_Kristoffer
Kenth, this expression works fine for me in C3D2014 (and all other versions I have installed). Which label style are you trying to apply it to?
Jeff_M, also a frequent Swamper
Active Contributor
Kenth_Kristoffer
Posts: 30
Registered: ‎09-25-2014
Message 7 of 9 (48 Views)

Re: Profile Middle Ordinate Expression

11-25-2014 04:43 PM in reply to: Jeff_M
I tried to apply it under:
Profile>Label Styles>Station>Major Station>Expressions
and
Profile View>Label Styles>Station Elevation>Expressions
*Expert Elite*
Jeff_M
Posts: 4,510
Registered: ‎07-22-2003
Message 8 of 9 (45 Views)

Re: Profile Middle Ordinate Expression

11-25-2014 05:15 PM in reply to: Kenth_Kristoffer

This is only applicable for vertical curves. Therefor, you will only find the needed items in the Profile Label Styles->Curve expression builder.

Jeff_M, also a frequent Swamper
Active Contributor
Kenth_Kristoffer
Posts: 30
Registered: ‎09-25-2014
Message 9 of 9 (40 Views)

Re: Profile Middle Ordinate Expression

11-25-2014 05:31 PM in reply to: Jeff_M

Thank you, I found it.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.