{"id":113,"date":"2015-07-03T02:02:22","date_gmt":"2015-07-03T02:02:22","guid":{"rendered":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/2015\/07\/03\/adding-depth-to-invert-pipe-labels-to-profile-view\/"},"modified":"2015-07-03T02:02:22","modified_gmt":"2015-07-03T02:02:22","slug":"adding-depth-to-invert-pipe-labels-to-profile-view","status":"publish","type":"post","link":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/2015\/07\/03\/adding-depth-to-invert-pipe-labels-to-profile-view\/","title":{"rendered":"Adding &lsquo;Depth To Invert&rsquo; Pipe Labels to Profile View"},"content":{"rendered":"<p>A common standard in Australia when it comes to annotating pipe longsections is to add a band showing the depth from the surface to the invert of the pipe.<\/p>\n<p>Civil 3D has the ability to annotate a pipes cover, pipe thickness and diameter into a data band (i.e. to the top of pipe), but no option currently exists to annotate the invert depth to the pipe.<\/p>\n<p>As Civil 3D data bands cannot currently utilise expressions, we can overcome this by using expressions with pipe labels.<\/p>\n<p>The first thing we need to do is to change some of the default settings. In the Settings tab in the toolspace, right-click on the \u2018Pipe Network\u2019 section and select \u2018Edit Feature Settings\u2019<\/p>\n<p>Expand the \u2018Default Profile Label Placement\u2019 and change the \u2018Dimension Anchor Option for Pipes\u2019 value from Fixed to \u2018Graph View Bottom\u2019 (if it\u2019s not already done)<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca638970d-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b8d131ffb2970c-pi\" width=\"479\" height=\"295\" \/><\/a><\/p>\n<p><strong>Creating expressions<\/strong><\/p>\n<p>Expand the \u2018Pipe\u2019 category \u2013&gt; Label Styles \u2013&gt; Plan Profile \u2013&gt; Expressions<\/p>\n<p>Right-click and create a new expression called \u2018Depth To Invert \u2013 Start\u2019, and add the following formula (Select the calculator icon to add the pipe parameters):<\/p>\n<p>{Start Cover} + {Inner Pipe Diameter} + {Wall Thickness}<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a89522970b-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca63c970d-pi\" width=\"222\" height=\"244\" \/><\/a><\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca640970d-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;float: right;padding-top: 0px;padding-left: 0px;margin: 0px 0px 0px 8px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" align=\"right\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a89526970b-pi\" width=\"222\" height=\"244\" \/><\/a>Repeat the process for the end of the pipe, call the expression \u2018Depth To Invert \u2013 End\u2019.<\/p>\n<p>Use a formula similar to the start of the pipe, change the first parameter to \u2018End Cover\u2019<\/p>\n<p>{End Cover} + {Inner Pipe Diameter} + {Wall Thickness}<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>That covers the pipe data values, now we need to add a few more expressions to locate the value relative to the pipe.<\/p>\n<p>Firstly, create an X Offset value for the Start of the pipe (call it \u2018Depth To Invert \u2013 Start X Offset\u2019), and add the following formula<\/p>\n<p>\u00b7 ( ( ( {2D Length &#8211; To Inside Edges} \/ 2 ) &#8211; 1.5 ) \/ {Drawing Scale Conversion} ) * -1.0<\/p>\n<p>What this is doing is simply taking the 2D length of the pipe, dividing it by two, then offsetting a small distance back so it does not clash with the vertical line in the data band. The *-1.0 a the end simple means to negate the value (i.e. offset it to the left)<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a8952a970b-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;margin: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca646970d-pi\" width=\"244\" height=\"187\" \/><\/a><\/p>\n<p>Repeat and create a \u2018Depth To Invert \u2013 End X Offset\u2019 and add the formula&#160; (same as the Start X Offset, without the negative multiplier at the end)<\/p>\n<p>( ( ( {2D Length &#8211; To Inside Edges} \/ 2 ) &#8211; 1.5 ) \/ {Drawing Scale Conversion} )<\/p>\n<p>With our expressions in place, we can now move onto creating the new pipe label using all of the previously defined expressions<\/p>\n<p><strong>Create a new Profile Pipe Label<\/strong><\/p>\n<p>Expand the \u2018Pipe\u2019 category \u2013&gt; Label Styles \u2013&gt; Plan Profile<\/p>\n<p>Right-click and create a new label called \u2018_ANZ Depth To Invert\u2019 (from the Information tab)<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a8952f970b-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;float: left;padding-top: 0px;padding-left: 0px;margin: 0px 10px 0px 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" align=\"left\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a89533970b-pi\" width=\"292\" height=\"231\" \/><\/a>In the \u2018General\u2019 tab, Change the Orientation Reference to \u2018World Coordinate System\u2019 \u2013 this ensures the text will align with the WCS, not the selected object.<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a89537970b-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;float: left;padding-top: 0px;padding-left: 0px;margin: 0px 10px 0px 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" align=\"left\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b8d131ffb7970c-pi\" width=\"299\" height=\"206\" \/><\/a>In the \u2018Layout\u2019 tab, Remove any existing components with the red \u2018X\u2019 button.<\/p>\n<p>Add a new \u2018Text\u2019 component and rename this \u2018Pipe Start\u2019<\/p>\n<p>Change \u2018Anchor Point\u2019 to \u2018Pipe Dimension\u2019<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>In the Text Contents, select the ellipses to enter the \u2018Text Component Editor \u2013 Contents\u2019 dialog. Delete the existing text (if there is any).<\/p>\n<p>From the properties pull-down, select our new expression \u2018Depth To Invert \u2013 Start\u2019, and click the \u2018right\u2019 arrow to insert the text into the editor&#160; (this is the step most people forget).<\/p>\n<p>Click OK to exit the Text Component Editor<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca64d970d-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca651970d-pi\" width=\"477\" height=\"250\" \/><\/a><\/p>\n<p>Change the text rotation angle to 90 degrees and the attachment point to Middle&#160; Left. In the X Offset, Click the Value box, and from the pull-down menu, select \u2018Depth To Invert \u2013 Start X Offset\u2019.<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a8953b970b-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca655970d-pi\" width=\"475\" height=\"330\" \/><\/a><\/p>\n<p>That\u2019s the start of the pipe done, now we simply repeat the process for the end point. Add a new Text Component in the Layout tab, and call this one \u2018Pipe End\u2019<\/p>\n<p>Repeat the steps from the Start Pipe, but using the \u2018End\u2019 expressions in the Text Contents and X Offset (see image below). Click OK to exit.<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca659970d-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b8d131ffbb970c-pi\" width=\"481\" height=\"336\" \/><\/a><\/p>\n<p>From the \u2018Annotate\u2019 tab on the ribbon, select Add Labels. Change the Feature to \u2018Pipe Network\u2019, and the \u2018Label Type\u2019 to \u2018Single Part Profile\u2019.<\/p>\n<p>Change the \u2018Pipe Label Style\u2019 to our new \u2018_ANZ Depth To Invert\u2019, then click \u2018Add\u2019<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a89541970b-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a89545970b-pi\" width=\"473\" height=\"461\" \/><\/a><\/p>\n<p>&#160;<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401bb084ca65e970d-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;float: left;padding-top: 0px;padding-left: 0px;margin: 0px 10px 0px 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" align=\"left\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b8d131ffbf970c-pi\" width=\"326\" height=\"195\" \/><\/a>Select the pipes in the profile view, noting that the new pipe labels are&#160; located a the bottom of the profile graph view.<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>&#160;<\/p>\n<p>Select all of the pipe labels (or select one, right-click and \u2018Select Similar\u2019), then open the Properties window (Ctrl-1). Change the \u2018Dimension Anchor Value\u2019 to the required negative value to locate the text values in the correct location within the band (-104mm in the example). Note that I have setup a blank data band called \u2018Depth To Invert\u2019 to accommodate the new profile label text.<\/p>\n<p><a href=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b7c7a89549970b-pi\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/fromthegroundup.typepad.com\/.a\/6a01127918d1ef28a401b8d131ffc4970c-pi\" width=\"472\" height=\"224\" \/><\/a><\/p>\n<p>This should be a one-time setup, once the pipe label and expressions are in your template, you are good to go for future projects.<\/p>\n<p>As you can see, a combination of expressions and labels can be a really powerful addition to your Civil 3D templates.<\/p>\n<p>Regards<\/p>\n<p>Andrew<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A common standard in Australia when it comes to annotating pipe longsections is to add a band showing the depth from the surface to the invert of the pipe.<\/p>\n<p>Civil 3D has the ability to annotate a pipes cover, pipe thickness and diameter into a data band (i.e.<\/p>\n","protected":false},"author":338,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-from-the-ground-up"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/users\/338"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.autodesk.com\/from-the-ground-up\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}