<?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: Use Attribute Rules to create a buffer around a line in Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249404#M64384</link>
    <description>&lt;P&gt;The buffer is a polygon, so you have to write it into a polygon feature class (Line 4).&lt;/P&gt;&lt;P&gt;Leave the field empty.&lt;/P&gt;&lt;P&gt;Just so we talk about the same thing: The rule will take your new line, create a 5 meter buffer around it and write that buffer into a polygon feature class. So you will have the line feature class with the line features and a polygon feature class with the buffers. Is that what you're trying to do?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 10:54:49 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-01-19T10:54:49Z</dc:date>
    <item>
      <title>Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249374#M64379</link>
      <description>&lt;P&gt;I need to use attribute rules to create a buffer around a line when a new feature is created.&lt;/P&gt;&lt;P&gt;I need some code that allows me to specify the size of the buffer too in either an area or % terms&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 08:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249374#M64379</guid>
      <dc:creator>AndrewReynoldsDevon</dc:creator>
      <dc:date>2023-01-19T08:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249382#M64380</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The most basic form:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Calculation attribute rule on the line fc
// field: empty
// triggers: insert
// exclude from application evaluation

var buffer_polygon = Buffer($feature, 10, "meters")
return {
    edit: [{
        className: "NameOfThePolygonFC",
        adds: [{geometry: buffer_polygon}]
    }]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This makes use of the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank"&gt;Attribute rule dictionary keywords—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;to edit another feature class.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;specify the size of the buffer too in either an area or % terms&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;The "normal" way to define a buffer is by buffer distance ("10 meters on either side of this feature"). What do you mean with "area" and "percent"?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 09:08:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249382#M64380</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-19T09:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249392#M64381</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm going to create a 5m buffer around the line feature so have updated the code below to change from polygon to line in 3 places in that correct?&lt;/P&gt;&lt;P&gt;When I've created attribute rules before I've specified a field but what would I select on this occasion&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="buffer.JPG" style="width: 357px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60714i903D141D508B8072/image-size/large?v=v2&amp;amp;px=999" role="button" title="buffer.JPG" alt="buffer.JPG" /&gt;&lt;/span&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var buffer_line = Buffer($feature, 5, "meters")
return {
    edit: [{
        className: "NameOfTheLineFC",
        adds: [{geometry: buffer_line}]
    }]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 09:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249392#M64381</guid>
      <dc:creator>AndrewReynoldsDevon</dc:creator>
      <dc:date>2023-01-19T09:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249404#M64384</link>
      <description>&lt;P&gt;The buffer is a polygon, so you have to write it into a polygon feature class (Line 4).&lt;/P&gt;&lt;P&gt;Leave the field empty.&lt;/P&gt;&lt;P&gt;Just so we talk about the same thing: The rule will take your new line, create a 5 meter buffer around it and write that buffer into a polygon feature class. So you will have the line feature class with the line features and a polygon feature class with the buffers. Is that what you're trying to do?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 10:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249404#M64384</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-19T10:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249405#M64385</link>
      <description>&lt;P&gt;I selected the shape field with the code below &amp;amp; I get an error after I create a feature&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="buffer error.JPG" style="width: 414px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60716iF5D80E18E79ACE46/image-size/large?v=v2&amp;amp;px=999" role="button" title="buffer error.JPG" alt="buffer error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var buffer_line = Buffer($feature, 5, "meters")
return {
    edit: [{
        className: "HWDataCollectionLines",
        adds: [{geometry: buffer_line}]
    }]
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 10:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249405#M64385</guid>
      <dc:creator>AndrewReynoldsDevon</dc:creator>
      <dc:date>2023-01-19T10:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249406#M64386</link>
      <description>&lt;P&gt;Yes, that is expected. You told the rule that you want to calculate the feature's geometry, but then you did not return a geometry. Leave the field empty.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 10:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249406#M64386</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-19T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249412#M64387</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="can't save.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60718iD3B6762453205449/image-size/large?v=v2&amp;amp;px=999" role="button" title="can't save.JPG" alt="can't save.JPG" /&gt;&lt;/span&gt;I tried to create a rule without selecting the field but it wouldn't save the rule so I selected 'Shape'&lt;/P&gt;&lt;P&gt;The code below is a copy of your original - I've changed the distance to 5m &amp;amp; have set&amp;nbsp;the polygon fc to Highways.HIGHWAYMGR.HWDataCollectionPol&amp;nbsp; &amp;amp; HWDataCollectionPoly which is an existing Polygon FC. but the application won't save the new rule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var buffer_polygon = Buffer($feature, 5, "meters")
return {
    edit: [{
        className: "Highways.HIGHWAYMGR.HWDataCollectionPoly",
        adds: [{geometry: buffer_polygon}]
    }]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="buffer wizard.JPG" style="width: 366px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60717i961D77E83FB69C7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="buffer wizard.JPG" alt="buffer wizard.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 11:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249412#M64387</guid>
      <dc:creator>AndrewReynoldsDevon</dc:creator>
      <dc:date>2023-01-19T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249421#M64390</link>
      <description>&lt;P&gt;If you hover over the red square on the left, it will tell you what's wrong.&lt;/P&gt;&lt;P&gt;In this case, it will probably tell you that you have to check the "Exclude from application evaluation" checkbox.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 12:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249421#M64390</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-19T12:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use Attribute Rules to create a buffer around a line in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249437#M64394</link>
      <description>&lt;P&gt;See the error below - there is no field selected so it won't let me save it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was reading this article &amp;amp; they just use a field called 'Field' to create a buffered polygon so if I have to choose a field does it matter which from the list above? There are 6 current fields to choose from&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="red error.JPG" style="width: 501px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60722i4246FBE90A1A0318/image-size/large?v=v2&amp;amp;px=999" role="button" title="red error.JPG" alt="red error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Going back to the % buffer - the line feature is being created with polygon's underneath so I need to '&lt;SPAN&gt;buffer the line to establish which polygon say 80% falls within' is that possible using attribute rules &amp;amp; if so what would the code look like?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 13:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-attribute-rules-to-create-a-buffer-around-a/m-p/1249437#M64394</guid>
      <dc:creator>AndrewReynoldsDevon</dc:creator>
      <dc:date>2023-01-19T13:19:55Z</dc:date>
    </item>
  </channel>
</rss>

