<?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: Intermediate Labelling Expressions in Map 3D in AutoCAD Map 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11524864#M2517</link>
    <description>&lt;P&gt;OK, using 2 Thematic Rules works this way:&lt;BR /&gt;&lt;STRONG&gt;STNAME LIKE '%PRIVATE%'&lt;/STRONG&gt; [Feature Label:None]&lt;BR /&gt;&lt;STRONG&gt;NOT STNAME LIKE '%PRIVATE%'&lt;/STRONG&gt; [Feature Label:Text]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 09:17:25 GMT</pubDate>
    <dc:creator>Pointdump</dc:creator>
    <dc:date>2022-11-02T09:17:25Z</dc:date>
    <item>
      <title>Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11521489#M2511</link>
      <description>&lt;P&gt;I have a SHP file of a road network in AutoCAD Map 3D where I want to exclude road name labelling with the word 'private' or that of a particular value (which I can access in a list). Basically, any street name with the word "private" I do not want labelled. In ArcGIS Pro, this is easy: I choose the property I want (`STNAME`) and then in the SQL tab I choose the same expression where `STNAME` does not include the text `PRIVATE`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;STNAME NOT LIKE '%PRIVATE%'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Map 3D, this same expression returns an error "The operator syntax: 'NOT' is invalid. Click here to move the cursor to the error(9)". When I remove `NOT`, I get the error "Error: Result types are mismatched: the validation operation expected 'Text' but the expression returned 'Boolean'".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any solutions on how to omit the entries I want that contain the specific words?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 22:56:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11521489#M2511</guid>
      <dc:creator>AllDayBreakfast</dc:creator>
      <dc:date>2022-10-31T22:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11522458#M2512</link>
      <description>&lt;P&gt;can you post the data or a screen shot of a portion of the data table so we can see the format of STNAME?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 10:48:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11522458#M2512</guid>
      <dc:creator>parkr4st</dc:creator>
      <dc:date>2022-11-01T10:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11522524#M2513</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11791764"&gt;@AllDayBreakfast&lt;/a&gt;&amp;nbsp;Wrote&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&amp;lt;&amp;lt;….&lt;SPAN&gt;Result types are mismatched: the validation operation expected 'Text' but the expression returned '&lt;FONT color="#FF0000"&gt;Boolean&lt;/FONT&gt;'".&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Boolean sounds strange because Boolean should be ‘this’ or ‘that.’ For example, yes or no, 0 or 1. Another example is data attribute attribute named ‘Is_Private’ with values either TRUE or FALSE.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;if your ‘STNAME’ attribute has names like Main St., County Blvd., City Ave. and River Rd (Private), then that’s not Boolean.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I’m with&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/59562"&gt;@parkr4st&lt;/a&gt;. Upload a screenshot, or the columns and rows, of the &lt;I&gt;list&lt;/I&gt;, the database file (dbf). Even better would be to upload the shp, shx, dbf and prj files for evaluation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 11:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11522524#M2513</guid>
      <dc:creator>ChicagoLooper</dc:creator>
      <dc:date>2022-11-01T11:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11522849#M2514</link>
      <description>&lt;P&gt;Sorry, I may have been confusing in my first post. There is no field/attribute named "In_Private". The field is STNAME and it contains text data of road names (which I'm using to label the data on the map). Some of the road names contain the word "private" in them. See picture below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2022-11-01 091804.png" style="width: 692px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1134598iE324EEF31A7C3BD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-11-01 091804.png" alt="Screenshot 2022-11-01 091804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that some of the names contain the word "private", and some don't. So when labelling my map, I'd like to exclude the road names that have that word in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SHP file I'm using can be found here:&amp;nbsp;&lt;A href="https://opendata.citywindsor.ca/Uploads/Street%20Centreline_UTM83.zip" target="_blank"&gt;https://opendata.citywindsor.ca/Uploads/Street%20Centreline_UTM83.zip&lt;/A&gt;&amp;nbsp;(note that this link will download the zip file). The main site is here:&amp;nbsp;&lt;A href="https://opendata.citywindsor.ca/details/215" target="_blank"&gt;City of Windsor Open Data Catalogue (citywindsor.ca)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying and trying to help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 13:24:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11522849#M2514</guid>
      <dc:creator>AllDayBreakfast</dc:creator>
      <dc:date>2022-11-01T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11524134#M2515</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11791764"&gt;@AllDayBreakfast&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try it like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="103.PNG" style="width: 666px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1134928i5F60129275CAF3E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="103.PNG" alt="103.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the &lt;I&gt;BEFORE&lt;/I&gt;&amp;nbsp;and &lt;I&gt;AFTER&lt;/I&gt; using the shapefile you uploaded in Post #4 of this thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before....&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="102.png" style="width: 897px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1134929i67D32F547704767F/image-size/large?v=v2&amp;amp;px=999" role="button" title="102.png" alt="102.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="101.PNG" style="width: 880px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1134930i940C6FCF31A7C295/image-size/large?v=v2&amp;amp;px=999" role="button" title="101.PNG" alt="101.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 01:40:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11524134#M2515</guid>
      <dc:creator>ChicagoLooper</dc:creator>
      <dc:date>2022-11-02T01:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11524674#M2516</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11791764"&gt;@AllDayBreakfast&lt;/a&gt;,&lt;BR /&gt;Following along with interest. Thanks for posting your data.&lt;BR /&gt;I tried just now to create 2 Thematic Rules, one without labels, one with:&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;NOT STNAME LIKE ' - PRIVATE' &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;STNAME LIKE ' - PRIVATE'&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Seems to work.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT: Zooming in, it still shows "- PRIVATE " Streets, so nope, this doesn't work.&lt;/STRONG&gt;&lt;BR /&gt;Dave&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 07:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11524674#M2516</guid>
      <dc:creator>Pointdump</dc:creator>
      <dc:date>2022-11-02T07:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11524864#M2517</link>
      <description>&lt;P&gt;OK, using 2 Thematic Rules works this way:&lt;BR /&gt;&lt;STRONG&gt;STNAME LIKE '%PRIVATE%'&lt;/STRONG&gt; [Feature Label:None]&lt;BR /&gt;&lt;STRONG&gt;NOT STNAME LIKE '%PRIVATE%'&lt;/STRONG&gt; [Feature Label:Text]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 09:17:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11524864#M2517</guid>
      <dc:creator>Pointdump</dc:creator>
      <dc:date>2022-11-02T09:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11525071#M2518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11791764"&gt;@AllDayBreakfast&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct expression in labelling is :&lt;/P&gt;
&lt;LI-CODE lang="general"&gt; If ( ' STNAME LIKE ''%PRIVATE%'' '  , '', STNAME ) &lt;/LI-CODE&gt;
&lt;P&gt;You should enclose boolean expression with '&amp;nbsp; '&amp;nbsp; to convert it into text format, and because you have a string in your condition, you need to double ' before and after it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Olivier&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 10:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11525071#M2518</guid>
      <dc:creator>O_Eckmann</dc:creator>
      <dc:date>2022-11-02T10:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11525699#M2519</link>
      <description>&lt;P&gt;Thank you for the instructions! Although it isn't the label expression I'm looking for, I can see how it solves the problem because you're querying out the data I don't need anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 14:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11525699#M2519</guid>
      <dc:creator>AllDayBreakfast</dc:creator>
      <dc:date>2022-11-02T14:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11525703#M2520</link>
      <description>&lt;P&gt;Copied and pasted the code into the expression window and it worked! Thank you so much! I just wish I knew how to read the code so I can change aspects of it in the future. Regardless, I'm making this as solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 14:32:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11525703#M2520</guid>
      <dc:creator>AllDayBreakfast</dc:creator>
      <dc:date>2022-11-02T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Labelling Expressions in Map 3D</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11526688#M2521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11791764"&gt;@AllDayBreakfast&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For exemple with numeric boolean test&amp;nbsp; :&amp;nbsp; &amp;nbsp; NOLANE = 2&amp;nbsp; &amp;nbsp;it could be written&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if&amp;nbsp; &amp;nbsp;NOLANE = 2&lt;/P&gt;
&lt;P&gt;then&amp;nbsp; write label as text = '2'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;else write label as text empty ( = '')&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but Map 3D need only string info in the 3 members of condition if. So it should be written&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if (' NOLANE = 2 ', '2', '')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Every term is enclosed with quote to ensure it's treated as string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your boolean condition works with string value, you should use double quote to enclose string value and keep quote to enclose boolean condition&lt;/P&gt;
&lt;P&gt;For exemple to test&amp;nbsp; &amp;nbsp; &amp;nbsp;ST_NAME = 'BROADWAY'&amp;nbsp; &amp;nbsp; &amp;nbsp;you should write&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if ('&amp;nbsp; ST_NAME = ''BROADWAY''&amp;nbsp; '&amp;nbsp; , 'BROAD', 'NOT BROAD')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it was clear enough.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Olivier&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 20:20:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-forum/intermediate-labelling-expressions-in-map-3d/m-p/11526688#M2521</guid>
      <dc:creator>O_Eckmann</dc:creator>
      <dc:date>2022-11-02T20:20:15Z</dc:date>
    </item>
  </channel>
</rss>

