- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
At first, the base class Autodesk.Civil>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.
I have fonnd a post 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?
Solved! Go to Solution.