Station Format (00+000.00) in expression

Station Format (00+000.00) in expression

neam
Collaborator Collaborator
1,849 Views
7 Replies
Message 1 of 8

Station Format (00+000.00) in expression

neam
Collaborator
Collaborator

Hi everyone

How to show station format e.g "00+000.00" in result expression?

IF({High Point Elevation}>{Profile Curve End Elevation},{High Point Station},0)

0 Likes
Accepted solutions (1)
1,850 Views
7 Replies
Replies (7)
Message 2 of 8

MSchille-1994
Collaborator
Collaborator

Can you sketch up an example manually?

Attitude, not Aptitude, Determines Altitude
0 Likes
Message 3 of 8

andrewpuller3811
Advisor
Advisor

Generally the expressions only return numbers - you do the formatting in the label style component that you show the label in.

In the label style, edit the contents to pick the expression and then set the formatting to the output format you desire. 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023
0 Likes
Message 4 of 8

neam
Collaborator
Collaborator

Thank you for reply.

Please look at the submitted file.

0 Likes
Message 5 of 8

neam
Collaborator
Collaborator

Thank you for reply.

Please look at the submitted file.

0 Likes
Message 6 of 8

neam
Collaborator
Collaborator

Does anyone have any comments?

0 Likes
Message 7 of 8

andrewpuller3811
Advisor
Advisor
Accepted solution

Would be useful if you provided a bit of information on what you want us to look at.

 

If you look at you expression HP, the Format result as: is set to double - change that to station.

Then edit your crest only label style, edit the PVI Sta and Elev label component, select the HP part of the label in the right side of the editor window, then update the hp label so that the formatting is now station format.

If you don't update the label component, the formatting in the label style will not change and you will still get the station value without the + in it.

 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023
0 Likes
Message 8 of 8

neam
Collaborator
Collaborator

Thank you dear Andrew for reply to solve my problem.

Like your tip in my previous post With your help, I found my problem.
Thank you very much again.

0 Likes