AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Active Member
tadunkaroo
Posts: 7
Registered: ‎03-23-2010
Message 1 of 6 (229 Views)

Expression in structure labels for survey

229 Views, 5 Replies
09-06-2013 10:33 AM

I am trying to make a single point label style that will return a blank line in the label if no data is provided.

 

The way i have it coded now my label for a structure with only two inverts comes out looking like this:

STCB 500 Rim=300.00

12" CONC N IE=295.00

12" CONC S IE=296.00

                     IE=300.00

                     IE=300.00

 

I would like the number of lines returned to match the actual number of inverts in the structure and leave out the place holders.:

STCB 500 Rim=300.00

12" CONC N IE=295.00

12" CONC S IE=296.00

 

I can work around this by having a label style for each number of pipes, but i would also like this code to be inseted into a table style and in that case i don't know of any way to assign multiple styles to one table.

 

 

My current code looks like this:

RIM=<[Point Elevation(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

<[1 SIZE(CP)]> <[1 TYPE(CP)]> <[1 DIR(CP)]> <[IE TEXT(CP)]><[1 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

<[2 SIZE(CP)]> <[2 TYPE(CP)]> <[2 DIR(CP)]> <[IE TEXT(CP)]><[2 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

<[3 SIZE(CP)]> <[3 TYPE(CP)]> <[3 DIR(CP)]> <[IE TEXT(CP)]><[3 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

<[4 SIZE(CP)]> <[4 TYPE(CP)]> <[4 DIR(CP)]> <[IE TEXT(CP)]><[4 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

LADDER <[LADDER(CP)]>

 

The problem is that 1 INV-4 INV are being defined by an expression that reads like

{Point Elevation}-{1 MD}

so when no data is intered for my UDP "1 MD"  it returns the point elevation. I want an equation that says if rpoitn elevation -measure down=point elevation then no data is shown.

*Expert Elite*
troma
Posts: 2,525
Registered: ‎05-21-2008
Message 2 of 6 (223 Views)

Re: Expression in structure labels for survey

09-06-2013 10:53 AM in reply to: tadunkaroo
The only way I know would be to use a separate component for each invert. Then, for each one, you have an expression that you use to set the text height of that component. The expression does the test you explained:
if (rpoitn elevation -measure down=point elevation, 0, [text height] )

So the text height of that component will be set to zero when you don't want to see it.
I don't know how this will work in a table though.


Credit where credit is due! Give kudos or accept as solution whenever you can.

Active Member
tadunkaroo
Posts: 7
Registered: ‎03-23-2010
Message 3 of 6 (220 Views)

Re: Expression in structure labels for survey

09-06-2013 11:04 AM in reply to: troma

Sorry, i do have the components separated in my point label styles as such:

component 1: STCB <[Point Number(GC|UN)]> RIM=<[Point Elevation(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

component 2:<[1 SIZE(CP)]> <[1 TYPE(CP)]> <[1 DIR(CP)]> IE=<[1 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

component 3:<[2 SIZE(CP)]> <[2 TYPE(CP)]> <[2 DIR(CP)]> IE=<[2 INV(Uft|P2|RN|AP|GC|UN|Sn|OF)]>

 

I do however have them combined for the Table style so all the structure data shows up in one cell.

 

How exactly do i write the text size expression you are talking about? my current invert expression is

{Point Elevation}-{1 Measure Down}

 

*Expert Elite*
troma
Posts: 2,525
Registered: ‎05-21-2008
Message 4 of 6 (212 Views)

Re: Expression in structure labels for survey

09-06-2013 11:35 AM in reply to: tadunkaroo
IF({Point Elevation}-{1 Measure Down}={Point Elevation},0,xxx)

For xxx you need to enter your text height. Please note that this needs to be in modelspae units (metres or feet), not paperspace units (millimetres or inches).


Credit where credit is due! Give kudos or accept as solution whenever you can.

Active Member
tadunkaroo
Posts: 7
Registered: ‎03-23-2010
Message 5 of 6 (202 Views)

Re: Expression in structure labels for survey

09-06-2013 11:55 AM in reply to: troma
I must not be doing something correct because when I enter "IF({Point
Elevation}-{4 MD}={Point Elevation},0,xxx)" all it does is change
displayed invert to whatever number I have types in the XXX portion of
the expression



Tyler Duncan | Survey Technician

________________________________

AHBL, Inc. TACOMA * SEATTLE * SPOKANE * TRI-CITIES

253.383.2422 TEL | 253.383.2572 FAX | www.ahbl.com
WEB


Civil Engineers * Structural Engineers * Landscape Architects *
Community Planners * Land Surveyors * Neighbors

CONFIDENTIALITY NOTE: The information contained in this email and any
files transmitted with it may contain confidential or privileged
information intended only for the use of the intended recipient(s). If
you are not the intended recipient, please permanently delete the
original message and all attachments and notify the sender immediately.
> Please consider the environment before printing this email.
*Expert Elite*
troma
Posts: 2,525
Registered: ‎05-21-2008
Message 6 of 6 (195 Views)

Re: Expression in structure labels for survey

09-06-2013 12:05 PM in reply to: tadunkaroo
Sorry, I probably didn't explain myself clearly. You need to use this expression to control the text height, not the contents of the component. Use the same old expression you were using to set the contents.
In the text height box, you should be able to drop down and select this new expression. This way the text height is set by the results of one expression, but the contents set by the same old expression as it was.


Credit where credit is due! Give kudos or accept as solution whenever you can.

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.