<?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: Civil 3d Expressions in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6054257#M14531</link>
    <description>&lt;P&gt;I'm trying to evaluate expressions by myself,&amp;nbsp;and I have an additional question:&lt;/P&gt;&lt;P&gt;I created the expression, for testing purposes (for pipes) :&amp;nbsp;&lt;STRONG&gt;{Inner Pipe Height}-2 / {Flow Rate}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, when I&amp;nbsp;open that expression entity from code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;foreach (Autodesk.Civil.DatabaseServices.Styles.Expression lblExp in lblStyleColl)
{
&amp;nbsp; &amp;nbsp; ed.WriteMessage("\n Expression String : " + lblExp.ExpressionString);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this as a expressoin string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;{aecc00080000ffff0000ccaeccae0000 Inner Pipe Height}-2/{Flow Rate}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have no problem detecting pipe data like&amp;nbsp;&lt;EM&gt;{Flow Rate},&amp;nbsp;&lt;/EM&gt;or any other that is enclosed in {}, but I do not know what means&amp;nbsp;&lt;STRONG&gt;aecc00080000ffff0000ccaeccae0000 &lt;/STRONG&gt;in Inner Pipe Height&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;? Is it always the same, or it can change?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2016 12:58:15 GMT</pubDate>
    <dc:creator>damir_vidakovic</dc:creator>
    <dc:date>2016-02-24T12:58:15Z</dc:date>
    <item>
      <title>Civil 3d Expressions</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6039118#M14527</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get created expressions for pipe like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ExpressionCollection lblStyleColl = civilDoc.Styles.LabelStyles.PipeLabelStyles.PlanProfileLabelStyles.Expressions;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, is there a way to get evaluated value for the given expression, for certain pipe&amp;nbsp;entity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 09:30:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6039118#M14527</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2016-02-15T09:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3d Expressions</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6039325#M14528</link>
      <description>Unfortunately there is no API to 'evaluate' these expressions.</description>
      <pubDate>Mon, 15 Feb 2016 12:43:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6039325#M14528</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2016-02-15T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3d Expressions</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6042780#M14529</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;What exactly are you trying to create?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 06:03:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6042780#M14529</guid>
      <dc:creator>tony1978</dc:creator>
      <dc:date>2016-02-17T06:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3d Expressions</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6042818#M14530</link>
      <description>&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing an app that has a possibility to show all entity data, something&amp;nbsp;like properties or panorama, but with all possible&amp;nbsp;data included, like pipe properties, object data, basically everything that can be read from pipe or structure. Civil3d has non unified data for entities (properties from catalog, object data, property sets, properties for entity, and also expressions, that are also a kind of data). Each type&amp;nbsp;is&amp;nbsp;in different place of the program.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 07:09:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6042818#M14530</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2016-02-17T07:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3d Expressions</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6054257#M14531</link>
      <description>&lt;P&gt;I'm trying to evaluate expressions by myself,&amp;nbsp;and I have an additional question:&lt;/P&gt;&lt;P&gt;I created the expression, for testing purposes (for pipes) :&amp;nbsp;&lt;STRONG&gt;{Inner Pipe Height}-2 / {Flow Rate}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But, when I&amp;nbsp;open that expression entity from code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;foreach (Autodesk.Civil.DatabaseServices.Styles.Expression lblExp in lblStyleColl)
{
&amp;nbsp; &amp;nbsp; ed.WriteMessage("\n Expression String : " + lblExp.ExpressionString);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this as a expressoin string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;{aecc00080000ffff0000ccaeccae0000 Inner Pipe Height}-2/{Flow Rate}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have no problem detecting pipe data like&amp;nbsp;&lt;EM&gt;{Flow Rate},&amp;nbsp;&lt;/EM&gt;or any other that is enclosed in {}, but I do not know what means&amp;nbsp;&lt;STRONG&gt;aecc00080000ffff0000ccaeccae0000 &lt;/STRONG&gt;in Inner Pipe Height&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;? Is it always the same, or it can change?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:58:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/6054257#M14531</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2016-02-24T12:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3d Expressions</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/7133423#M14532</link>
      <description>&lt;P&gt;I add the expression to a label as a text override, explode the label, and then grab the exploded contents to find the value.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 23:27:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/7133423#M14532</guid>
      <dc:creator>Civil3DReminders_com</dc:creator>
      <dc:date>2017-06-06T23:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Civil 3d Expressions</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/7134143#M14533</link>
      <description>&lt;P&gt;I believe that this approach could work in some scenarios, but if you have a larger system,&amp;nbsp;this operation would be slow. And if I have multiple expressions for an entity, it could get very bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally implemented my own expression solver, by parsing expression formulas and substituting variables with actual values, by using NCalc expression solver.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 08:41:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/civil-3d-expressions/m-p/7134143#M14533</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2017-06-07T08:41:29Z</dc:date>
    </item>
  </channel>
</rss>

