<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is there  any method to set ArcModes programly?</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/17966/is-there-any-method-to-set-arcmodes-programly</link><description>In Geospatial sample code , the way to set the arcmodes using by StartPlaceCompCurveOperation
 
 
 method is by the predefined operation named &amp;quot;CompCurv_Ops&amp;quot;.
 
 
So ,How to set the object &amp;quot;CompCurveParams&amp;quot; programly to enable the the function as</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: Is there  any method to set ArcModes programly?</title><link>https://communities.bentley.com/thread/41956?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2009 17:49:33 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:95ace9b2-ff40-4a5c-84de-ce714cbd6e52</guid><dc:creator>cdalesandro</dc:creator><description>&lt;p&gt;
Hello sphinxo,
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;The Road feature placement code is available in ..\Workspace\Projects\Examples\Geospatial\geo_example\designer\vba\example.mvba.&amp;nbsp; See PlaceRoad subroutine in SimpleExamples module.&amp;nbsp; (You may already have seen this, but thought I would mention it for completeness)
&lt;/p&gt;
&lt;p&gt;
You can see the &amp;quot;CompCurv_Ops/ArcModes&amp;quot; property definition in Map\xml\operations\required\CompCurv_Ops.xml.&amp;nbsp; In each &amp;quot;button&amp;quot; definition, note the &amp;quot;checked&amp;quot; attribute value.&amp;nbsp; The CompCurveOp code reads this property's value and compares the value to the possible &amp;quot;checked&amp;quot; values. So, you do not need to set anything in CompCurveParams to instruct the CompCurveOp code to use this property.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
To change the value of ArcModes, you can use the PropMgr::SetProperty method.&amp;nbsp; In the example below, I set the &amp;quot;Segment Mode&amp;quot; to &amp;quot;Arc By Center&amp;quot; no matter what the client's preference previously was. (ArcModes property stores the last used value in &amp;quot;client&amp;quot; preferences and the&amp;nbsp;InitializeOperationProperties call will set CompCurv_Ops/ArcModes to this last used value, so I set the property to my value after the InitializeOperationProperties call.).
&lt;/p&gt;
&lt;code&gt;If False = xft.PropMgr.OperationCached(&amp;quot;CompCurv_Ops&amp;quot;) Then&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xft.PropMgr.InitializeOperationProperties &amp;quot;CompCurv_Ops&amp;quot;, &amp;quot;placing&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xft.PropMgr.SetProperty &amp;quot;CompCurv_Ops/ArcModes&amp;quot;, &amp;quot;ArcByCenter&amp;quot;&lt;br /&gt;
End If&lt;br /&gt;
&lt;/code&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Regards,
&lt;/p&gt;
&lt;p&gt;
Chris
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Is there  any method to set ArcModes programly?</title><link>https://communities.bentley.com/thread/41874?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2009 11:18:24 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b2444aef-a8db-4dc8-852a-3f10c14ed4ae</guid><dc:creator>sphinxo</dc:creator><description>&lt;p&gt;
Hi ,jerry:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm sorry for delaying to write back your message.My question is how to change the drawmode between linemode,arcmode and BSLine mode . In the geo_sample. The Road feature charting method give three charting ways in the 'Segment Modes' frame.I want to know how to do that funtionality programmly.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The XFT assembly give the 'PlaceCompCurveOp' operation.&amp;nbsp;This operation can&amp;nbsp;tell how to draw arc line by setting the parameters in your article above?
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Is there  any method to set ArcModes programly?</title><link>https://communities.bentley.com/thread/37214?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2009 16:35:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2d70f53f-9777-4168-8ddf-218a315dd4fa</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;
I think if you look in the Standard Ops library, in the Library module, under the ProcessPlaceCompCurve function, you will see the code as follows :
&lt;/p&gt;
&lt;p&gt;
' --- if all options are shown in tool settings then use their values, else set default ---&lt;br /&gt;
If (showAllOptions) Then&lt;br /&gt;
oUseRadius.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/useRadius&amp;quot;&lt;br /&gt;
oForceTangent.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/forceTangent&amp;quot;&lt;br /&gt;
oUseArcLength.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/useArcLength&amp;quot;&lt;br /&gt;
oRadius.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/radius&amp;quot;&lt;br /&gt;
oArcLength.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/arcLength&amp;quot;&lt;br /&gt;
oRevertToLinear.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/revertToLinear&amp;quot;&lt;br /&gt;
oClosed.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/closed&amp;quot;&lt;br /&gt;
oReversed.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/reversed&amp;quot;&lt;br /&gt;
oSeparated.SetTypeAndValue ValueType_PROPERTY, &amp;quot;CompCurv_Ops/separateComponents&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
oUseRadius.SetTypeAndValue ValueType_VALUE, &amp;quot;0&amp;quot;&lt;br /&gt;
oForceTangent.SetTypeAndValue ValueType_VALUE, &amp;quot;0&amp;quot;&lt;br /&gt;
oUseArcLength.SetTypeAndValue ValueType_VALUE, &amp;quot;0&amp;quot;&lt;br /&gt;
oRadius.SetTypeAndValue ValueType_VALUE, &amp;quot;10&amp;quot;&lt;br /&gt;
oArcLength.SetTypeAndValue ValueType_VALUE, &amp;quot;10&amp;quot;&lt;br /&gt;
oRevertToLinear.SetTypeAndValue ValueType_VALUE, &amp;quot;1&amp;quot;&lt;br /&gt;
oClosed.SetTypeAndValue ValueType_VALUE, &amp;quot;0&amp;quot;&lt;br /&gt;
oReversed.SetTypeAndValue ValueType_VALUE, &amp;quot;0&amp;quot;&lt;br /&gt;
oSeparated.SetTypeAndValue ValueType_VALUE, &amp;quot;0&amp;quot;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
So, using the else block as a example, it sets the values directly, the first part of the if statement gets these from the form values.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
HTH
&lt;/p&gt;
&lt;p&gt;
Jerry
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>