<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting label's displayed text in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6663538#M13336</link>
    <description>&lt;P&gt;At this moment, I adopted Augosto's approach as my solution, with some enhancement. I summarised my experience on this in my blog here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://drive-cad-with-code.blogspot.ca/2016/11/extract-autocad-civil3ds-label-text.html" target="_self"&gt;http://drive-cad-with-code.blogspot.ca/2016/11/extract-autocad-civil3ds-label-text.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it would be of benefit to others.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2016 21:04:50 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2016-11-02T21:04:50Z</dc:date>
    <item>
      <title>Getting label's displayed text</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6642503#M13335</link>
      <description>&lt;P&gt;Not having very much experience of working with Civil3D API, I am facing a challenge: programmatically retrieving Civil #D label's text string (the actual text content the label shows in AutoCAD editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first, the base class Autodesk.Civil&amp;gt;DatabaseServices.Label has a method GetTextComponentOverride(ObjectId) looks like the one I need, but it returns the code/formular (similar to Field code) that generate the actually displayed text string of a label. The code/formular is much more difficult "translate" than field code to, or not possible to translate/parse to third party/outsider programmer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have fonnd a &lt;A href="http://adndevblog.typepad.com/infrastructure/2013/04/get-cogopoint-label-text.html" target="_self"&gt;post&lt;/A&gt; by ADN support member Augusto Goncalves on this topic (actually on CogoPoint label, but I assume it basically applies to general label in Civil3D). It was 3 years ago. In the comments to that post, BlackBox asked the same question I am wanting to ask: has the Civil3D API been updated to include a way to get actual displayed text of a label. Since AutoCAD has no problem display a label with dynamic value, I just do not see why making it available into API is so difficult, however, I cannot find it anywhere. (I am current working with Civil3D 2015, but has 2017 available, if needed). Do I still have to use the method presented in that post (recursively exploding) as workaround?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:40:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6642503#M13335</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2016-10-24T20:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting label's displayed text</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6663538#M13336</link>
      <description>&lt;P&gt;At this moment, I adopted Augosto's approach as my solution, with some enhancement. I summarised my experience on this in my blog here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://drive-cad-with-code.blogspot.ca/2016/11/extract-autocad-civil3ds-label-text.html" target="_self"&gt;http://drive-cad-with-code.blogspot.ca/2016/11/extract-autocad-civil3ds-label-text.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it would be of benefit to others.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 21:04:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6663538#M13336</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2016-11-02T21:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting label's displayed text</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6988921#M13337</link>
      <description>&lt;P&gt;I want to extract the text in the label,&lt;/P&gt;
&lt;P&gt;Its a civil 3D label (example pipe, structure, etc)&lt;/P&gt;
&lt;P&gt;I am able to get the style name and the text. But the issue is text which i get using he current code is all text so I am not able to get component wise text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the attached screen grab,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;My label contains three components,&lt;/P&gt;
&lt;P&gt;KN, Top and Bot, I want to extract the text within each of those component.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get that?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 10:06:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6988921#M13337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-01T10:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting label's displayed text</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6989154#M13338</link>
      <description>&lt;P&gt;@Anonymous, you will need to follow the same course that&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;did. He documented the the steps he took, and even provided the code he developed. The only other option, at this time, would be to read the property string of the style and get the property from the object..applying the formatting as set in that property string. The Explode method is much simpler.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 15:02:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/getting-label-s-displayed-text/m-p/6989154#M13338</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2017-04-01T15:02:53Z</dc:date>
    </item>
  </channel>
</rss>

