<?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 Multiplying Attributes in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/multiplying-attributes/m-p/202019#M2664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just like to multiply 2 attributes together.&lt;/P&gt;&lt;P&gt;I need some help because I'm apparently doing something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//First, I am defining an attribute which is linked to the initial shape's area attribute from the imported Shapefile:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;attr SHAPE_Area = ""&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Then I am setting the maximum coverage permitted in the zoning by-law:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;attr maxCoverage = 0.65&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//And I simply want to generate the maximum building footprint area by multiplying these two attributes together, like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;attr buildingFootprint = maxCoverage * SHAPE_Area&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just not sure what the correct syntax is to do this. &amp;nbsp;I am getting this error:&lt;/P&gt;&lt;P&gt;No such function: float *(a:float,b:str)&lt;BR /&gt;Unused function:buildingFootprint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Cheers!#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 21:14:37 GMT</pubDate>
    <dc:creator>GeoffAbma</dc:creator>
    <dc:date>2017-02-24T21:14:37Z</dc:date>
    <item>
      <title>Multiplying Attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/multiplying-attributes/m-p/202019#M2664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just like to multiply 2 attributes together.&lt;/P&gt;&lt;P&gt;I need some help because I'm apparently doing something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//First, I am defining an attribute which is linked to the initial shape's area attribute from the imported Shapefile:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;attr SHAPE_Area = ""&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Then I am setting the maximum coverage permitted in the zoning by-law:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;attr maxCoverage = 0.65&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//And I simply want to generate the maximum building footprint area by multiplying these two attributes together, like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;attr buildingFootprint = maxCoverage * SHAPE_Area&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just not sure what the correct syntax is to do this. &amp;nbsp;I am getting this error:&lt;/P&gt;&lt;P&gt;No such function: float *(a:float,b:str)&lt;BR /&gt;Unused function:buildingFootprint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Cheers!#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 21:14:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/multiplying-attributes/m-p/202019#M2664</guid>
      <dc:creator>GeoffAbma</dc:creator>
      <dc:date>2017-02-24T21:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying Attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/multiplying-attributes/m-p/202020#M2665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're defining&amp;nbsp;SHAPE_Area as text. Either define it as float (&lt;STRONG&gt;SHAPE_Area&amp;nbsp;= 0&lt;/STRONG&gt;) or cast it as float later (&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;attr buildingFootprint = &lt;/STRONG&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;maxCoverage &lt;/STRONG&gt;&lt;STRONG&gt;*float(SHAPE_Area)&lt;/STRONG&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 10:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/multiplying-attributes/m-p/202020#M2665</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2017-02-25T10:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying Attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/multiplying-attributes/m-p/202021#M2666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this. &amp;nbsp;I finally realized that I was defining it as text instead of float myself late last night. &amp;nbsp;Made all the difference in the world!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 12:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/multiplying-attributes/m-p/202021#M2666</guid>
      <dc:creator>GeoffAbma</dc:creator>
      <dc:date>2017-02-25T12:54:41Z</dc:date>
    </item>
  </channel>
</rss>

