I am wondering if there is an equivalent to IBufferConstruction in the PRO SDK. It is necessary that for a given line for one of my tools, that the user be allowed to buffer left/right/full and to have round/flat endpoints. I am essentially getting drawing line from user and then prompting them with how they want it buffered?
Does this exist in PRO like in ArcObjects Below?
<SPAN class="comment token">//Setup the Buffer Constructor and its Properties</SPAN>
IBufferConstruction BufferConstructor <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">BufferConstruction</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">try</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//Buffer Properties</SPAN>
IBufferConstructionProperties bcProps <SPAN class="operator token">=</SPAN> BufferConstructor <SPAN class="keyword token">as</SPAN> IBufferConstructionProperties2<SPAN class="punctuation token">;</SPAN>
bcProps<SPAN class="punctuation token">.</SPAN>EndOption <SPAN class="operator token">=</SPAN> esriBufferConstructionEndEnum<SPAN class="punctuation token">.</SPAN>esriBufferRound<SPAN class="punctuation token">;</SPAN>
bcProps<SPAN class="punctuation token">.</SPAN>SideOption <SPAN class="operator token">=</SPAN> esriBufferConstructionSideEnum<SPAN class="punctuation token">.</SPAN>esriBufferFull<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">string</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">Equals</SPAN><SPAN class="punctuation token">(</SPAN>endType<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Square"</SPAN><SPAN class="punctuation token">,</SPAN> StringComparison<SPAN class="punctuation token">.</SPAN>OrdinalIgnoreCase<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
bcProps<SPAN class="punctuation token">.</SPAN>EndOption <SPAN class="operator token">=</SPAN> esriBufferConstructionEndEnum<SPAN class="punctuation token">.</SPAN>esriBufferFlat<SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">string</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">Equals</SPAN><SPAN class="punctuation token">(</SPAN>sideType<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"1-Sided"</SPAN><SPAN class="punctuation token">,</SPAN> StringComparison<SPAN class="punctuation token">.</SPAN>OrdinalIgnoreCase<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
bcProps<SPAN class="punctuation token">.</SPAN>SideOption <SPAN class="operator token">=</SPAN> esriBufferConstructionSideEnum<SPAN class="punctuation token">.</SPAN>esriBufferRight<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">string</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="token function">Equals</SPAN><SPAN class="punctuation token">(</SPAN>directionType<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Left"</SPAN><SPAN class="punctuation token">,</SPAN> StringComparison<SPAN class="punctuation token">.</SPAN>OrdinalIgnoreCase<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
bcProps<SPAN class="punctuation token">.</SPAN>SideOption <SPAN class="operator token">=</SPAN> esriBufferConstructionSideEnum<SPAN class="punctuation token">.</SPAN>esriBufferLeft<SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="comment token">//Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");</SPAN>
<SPAN class="comment token">//System.Object obj = Activator.CreateInstance(factoryType);</SPAN>
<SPAN class="comment token">//ISpatialReferenceFactory3 spatialReferenceFactory = obj as ISpatialReferenceFactory3;</SPAN>
<SPAN class="comment token">//IUnit meterUnit = spatialReferenceFactory.CreateUnit((int)esriSRUnitType.esriSRUnit_Meter);</SPAN>
<SPAN class="comment token">//bcProps.Unit = meterUnit;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>