Select to view content in your preferred language

RMS Error through code

634
2
Jump to solution
02-14-2012 03:00 AM
VinayanMP
Deactivated User



I want to do a small spatial adjustment automation..it will be an affine transformation. I have generated the displacement links.

To set the transformation to affine i used the below code..

Dim pAdjust As esriEditorExt.IAdjustment Set pAdjust.CurrentTransformationMethod = pAdjust.TransformationMethod(0)


I plan to adjust the selected features by using the below method..

ThisDocument.CommandBars.Find("esriEditorExt.TransformCommand").Execute



I have two questions here

how do i know the existing RMS error for the existing links programmatically?
how do i set the features to be adjusted as selected features?

Any help is greatly appreciated..




0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Vinayan,
You can get the RMS errors through the ITransformationMethodRMSError Interface

You can set 'adjust selected features' via the IAdjustLayers Interface

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable
Vinayan,
You can get the RMS errors through the ITransformationMethodRMSError Interface

You can set 'adjust selected features' via the IAdjustLayers Interface
0 Kudos
VinayanMP
Deactivated User


Hi Sean,

Your solution worked like a charm..i spent around 2 hrs searching for a solution..thank you..below is my working code..

Set pAdjust.CurrentTransformationMethod = pAdjust.TransformationMethod(0)
 

Dim pTransformMethod As ITransformationMethod
Set pTransformMethod = pAdjust.CurrentTransformationMethod

Dim pTransformMethodRMS As ITransformationMethodRMSError
Set pTransformMethodRMS = pTransformMethod
Dim rmsError As Double
pTransformMethodRMS.GetRMSError rmsError

MsgBox rmsError









0 Kudos