<?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 Can I link laneWidth to streetWidth attribute? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595709#M8047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to evaluate my 'user errors' on 1400 segments by reducing the number of variations in the shape creation. [does that make sense?]&lt;/P&gt;&lt;P&gt;So basically I only have 5 different streetwidths and need to ensure that the lanewidth is half of the streetwidth. &lt;/P&gt;&lt;P&gt;Aside from the obvious issue of selecting them and keeping track which ones I already 'fixed', I'd like to select all segments and just link to a rule that cycles through all the segments and sets the lanewidth to half the streetwidth. [I believe I can manage that with my limited knowledge].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the cga manual doesn't show me how to get the streetwidth attr and set lanewidth attr.&amp;nbsp; I noticed an earlier post about a similar question but don't understand the solution.&amp;nbsp; Can anyone elaborate please?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS I'm using the complete streets rule and will regenerate the scene with the new lanewidth hoping that the script updates it's own setting. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 17:41:47 GMT</pubDate>
    <dc:creator>ErwinVervacke</dc:creator>
    <dc:date>2015-04-28T17:41:47Z</dc:date>
    <item>
      <title>Can I link laneWidth to streetWidth attribute?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595709#M8047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to evaluate my 'user errors' on 1400 segments by reducing the number of variations in the shape creation. [does that make sense?]&lt;/P&gt;&lt;P&gt;So basically I only have 5 different streetwidths and need to ensure that the lanewidth is half of the streetwidth. &lt;/P&gt;&lt;P&gt;Aside from the obvious issue of selecting them and keeping track which ones I already 'fixed', I'd like to select all segments and just link to a rule that cycles through all the segments and sets the lanewidth to half the streetwidth. [I believe I can manage that with my limited knowledge].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the cga manual doesn't show me how to get the streetwidth attr and set lanewidth attr.&amp;nbsp; I noticed an earlier post about a similar question but don't understand the solution.&amp;nbsp; Can anyone elaborate please?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS I'm using the complete streets rule and will regenerate the scene with the new lanewidth hoping that the script updates it's own setting. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595709#M8047</guid>
      <dc:creator>ErwinVervacke</dc:creator>
      <dc:date>2015-04-28T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I link laneWidth to streetWidth attribute?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595710#M8048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A CGA rule can only be run on one shape. To control multiple shapes, you will need to use CityEngine's Python. I can't offer further insight into that process at the moment. &lt;A href="https://community.esri.com/migrated-users/60037"&gt;David Wasserman&lt;/A&gt;​ might be able to shed more light on this. (or &lt;A href="https://community.esri.com/migrated-users/103901"&gt;David Wasserman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- David you have two logins.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 20:05:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595710#M8048</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-01T20:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can I link laneWidth to streetWidth attribute?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595711#M8049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The largest issue is that with the complete street rule, the lanewidth is a CGA rule parameter, but the street width is a shape parameter ( as in it is inherent to all streets rather than inherent to a rule). When creating mapped attributes it is is best to do the pre-processing in ArcGIS using calculate field or cursors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this case create two fields for&amp;nbsp; your center lines in ArcGIS and then calculate your street widths. Then I would suggest creating GIS fields for lanewidth and then divides the street width by two. To be safe also subtract -.1 or so from your divided lane width (to avoid floating point error leading to an over-allocation of lanes.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes doing everything in CE does not make sense, and I really believe that is the case with mapped parameters. ArcPy is much more robust in dealing with field calculations related to geometry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 20:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595711#M8049</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-05-01T20:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I link laneWidth to streetWidth attribute?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595712#M8050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the other one is tied to my ESRI email. Notice it has the little ESRI symbol on it. I am not sure I can access that one anymore honestly. =/ I will try to access it and delete it later. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 20:37:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-link-lanewidth-to-streetwidth-attribute/m-p/595712#M8050</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2015-05-01T20:37:42Z</dc:date>
    </item>
  </channel>
</rss>

