<?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>[ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/products/3d_imaging_and_point_cloud_software/f/contextcapture-descartes-pointools-forum/222234/ccmasterkernel-how-to-set-only-one-positioning-method-for-adjustment-constraints-for-at-settings-using-the-sdk</link><description>I&amp;#39;m having difficulty modifying settings for the AT in the python SDK, more precisely on how to only set positioning with control points to the adjustment constraints. Do you have an example for that? 
 I&amp;#39;m always getting 2 methods instead of only having</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683894?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 18:44:58 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:dca6bf7e-63e5-4a96-b405-023b499b4b8e</guid><dc:creator>Charles Brunelle</dc:creator><description>&lt;p&gt;I have double checked and tried other presets. It seems that when I load presets from the python scripts, I am not able to change the positioning settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683599?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 13:40:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:20eb32d8-4db5-4065-8266-6d1ea1e11238</guid><dc:creator>Nicolas Gros</dc:creator><description>&lt;p&gt;I&amp;#39;m really not able to reproduce the issue: the last option set (through the preset file or directly in the python script) is the last one that is actually used and I get the same information in&amp;nbsp;ContextCapture and on the script output in all the cases.&lt;/p&gt;
&lt;p&gt;Could you double-check on your side?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683318?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 16:09:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d478441d-68ac-4c1a-9f62-1f6be9d083e0</guid><dc:creator>Nicolas Gros</dc:creator><description>&lt;p&gt;You can simply add them, like numbers:&lt;/p&gt;
&lt;p&gt;settings.adjustmentConstraints=ccmasterkernel.AdjustmentAndPositioning.Positioning_ControlPoints&lt;br /&gt;settings.adjustmentConstraints+=ccmasterkernel.AdjustmentAndPositioning.Positioning_PositionMetadata&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683316?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 16:03:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b46c5eb7-944e-4597-8604-1a674f51e392</guid><dc:creator>Charles Brunelle</dc:creator><description>&lt;p&gt;Can you also check on how to combine the multiple values? Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683313?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 16:00:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2f095a21-49ed-40d6-aba0-2cf7f5c09f3b</guid><dc:creator>Nicolas Gros</dc:creator><description>&lt;p&gt;Ok, thanks for the feedback, I&amp;#39;m gonna investigate and I&amp;#39;ll let you know.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683310?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 15:56:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:75c563dc-995a-45de-ac4e-f8f41921dcd8</guid><dc:creator>Charles Brunelle</dc:creator><description>&lt;p&gt;Even if I run loadPreset before setting the&amp;nbsp;&lt;span&gt;adjustementConstraints, it still doesn&amp;#39;t set only one option.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683304?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 15:47:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1529a47e-fb3a-49b2-ac91-8963543f7e77</guid><dc:creator>Nicolas Gros</dc:creator><description>&lt;p&gt;Adjustment constraints and rigid registration options are also defined in the AT settings file so loading it before updating some options should solve your problem.&lt;/p&gt;
&lt;p&gt;The python script should not print &amp;quot;Positioning_ControlPoints&amp;quot; only... I&amp;#39;ll check this on my side.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683301?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 15:40:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:68c16d4b-3c62-4657-87ed-29252b34cae5</guid><dc:creator>Charles Brunelle</dc:creator><description>&lt;p&gt;Yes it works... But shouldn&amp;#39;t only affect the second part of the settings?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343228/ATSettings.cfg"&gt;communities.bentley.com/.../ATSettings.cfg&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683299?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 15:38:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:db233fd3-7a26-4a18-b5e7-2e685fb52d4f</guid><dc:creator>Nicolas Gros</dc:creator><description>&lt;p&gt;It works fine on my side when I check the project settings in ccmaster...&lt;/p&gt;
&lt;p&gt;Could you try to skip the &amp;quot;loadPreset&amp;quot; line and see if it&amp;nbsp;fixes the issue?&lt;br /&gt;If yes, could you share the preset file you load?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/683278?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 14:49:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:556cd96b-2d7b-4fa3-a520-94bd96d7755e</guid><dc:creator>Charles Brunelle</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;try&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;import&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;ccmasterkernel&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;except&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Exception&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;as&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;e&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;e&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;ccmasterkernel&lt;/span&gt;&lt;span&gt;.Project()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;.readFromFile(&lt;/span&gt;&lt;span&gt;pathtToProject&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;not&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;.isNone():&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Failed&amp;nbsp;to&amp;nbsp;load&amp;nbsp;project.&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span&gt;err&lt;/span&gt;&lt;span&gt;.message)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;block&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;.getBlock(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;ccmasterkernel&lt;/span&gt;&lt;span&gt;.Block(&lt;/span&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;.addBlock(&lt;/span&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;.setBlockTemplate(&lt;/span&gt;&lt;span&gt;ccmasterkernel&lt;/span&gt;&lt;span&gt;.BlockTemplate.Template_adjusted,&amp;nbsp;&lt;/span&gt;&lt;span&gt;block&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;.getBlock(&lt;/span&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;.getNumBlocks()&amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;atSettings&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;.getAT().getSettings()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;atSettings&lt;/span&gt;&lt;span&gt;.adjustementConstraints&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;ccmasterkernel&lt;/span&gt;&lt;span&gt;.bindings.AdjustmentAndPositioning.Positioning_ControlPoints&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;atSettings&lt;/span&gt;&lt;span&gt;.rigidRegistration&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;ccmasterkernel&lt;/span&gt;&lt;span&gt;.bindings.AdjustmentAndPositioning.Positioning_None&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;atSettings&lt;/span&gt;&lt;span&gt;.loadPreset(pathToPreset&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;atSettings&lt;/span&gt;&lt;span&gt;.adjustementConstraints)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;.getAT().setSettings(&lt;/span&gt;&lt;span&gt;atSettings&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;atSubmitError&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;.getAT().submitProcessing()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;not&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;atSubmitError&lt;/span&gt;&lt;span&gt;.isNone():&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;print&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Error:&amp;nbsp;Failed&amp;nbsp;to&amp;nbsp;submit&amp;nbsp;aerotriangulation.&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span&gt;atSubmitError&lt;/span&gt;&lt;span&gt;.message)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;blockAT&lt;/span&gt;&lt;span&gt;.setChanged()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;project&lt;/span&gt;&lt;span&gt;.writeToFile()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;It prints:&amp;nbsp;Positioning_ControlPoints but when i open the project in ccmaster it still has the two options selected.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343228/pastedimage1637333225074v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [ccmasterkernel] How to set only one positioning method for adjustment constraints for AT settings using the SDK?</title><link>https://communities.bentley.com/thread/682811?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 15:08:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:7b946243-f6e2-4623-86b8-05a73c2982cb</guid><dc:creator>Nicolas Gros</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this issue, can you share you script? I have good results using the following functions:&lt;/p&gt;
&lt;p&gt;blockAT=ccmasterkernel.Block(project)&lt;br /&gt;project.addBlock(blockAT)&lt;br /&gt;blockAT.setBlockTemplate(ccmasterkernel.BlockTemplate.Template_adjusted, block)&lt;br /&gt;settings=blockAT.getAT().getSettings()&lt;br /&gt;settings.adjustmentConstraints=ccmasterkernel.AdjustmentAndPositioning.Positioning_ControlPoints&lt;br /&gt;print(settings.adjustmentConstraints)&lt;br /&gt;blockAT.getAT().setSettings(settings)&lt;br /&gt;blockAT.getAT().submitProcessing()&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>