Home Image-Pro General Discussions
Options

Update Issue with POINTS from MANUAL TAG TOOL not RE-CLASSIFYING properly . . .

All --

I have an IPP 9.1.4 APPLICATION that has a little issue.

This APP works with the user to create and count points in two CLASSES.  The first CLASS is C and is represented by a BLUE UP TRIANGLE.  The second CLASS is P and is represented by a GREEN DOWN TRIANGLE.

I have created a routine that uses the following code to RE-TAG a C CLASS POINT as a P CLASS POINT if the user selects the point before triggering the routine

    Private Sub button_RetagP_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles button_RetagP.Click

        With Measure.MeasurementsCommands.Options(Nothing)
            .ActiveClass = 2
            .Run(ThisApplication.ActiveDocument)
        End With

        With Measure.MeasurementsCommands.ApplyClass(Nothing)
            .Run(ThisApplication.ActiveDocument)
        End With

    End Sub
Everything works well except that often the C BLUE UP TRIANGLE is not replaced by the P GREEN DOWN TRIANGLE.  The DATA TABLES are right but the IMAGE shows the wrong overlay.

If I continue SELECT and RETAG, sometimes I'll retag a point that seems to trigger an update of that fixes all of the other points with their correct overlays.

Can someone please suggest a way to resolve this issue?

Thanks.

-- Matt

P.S.  The FORUM is blocking my attaching the IQO file that contains the CLASSIFICATION otherwise I would do that to make duplicating this issue easier. -- MMB





Best Answer

  • Options
    edited September 2015 Answer ✓
    Hi Matt,

    That is a refresh problem in 9.1.4, it will be fixed in the next version. You can force Refresh in the current version as a workaround. The macro below will update tags properly:

        Public Sub Retag
            With Measure.MeasurementsCommands.Options(Nothing)
                .ActiveClass = 2
                .Run(ThisApplication.ActiveDocument)
            End With
    
            With Measure.MeasurementsCommands.ApplyClass(Nothing)
                .Run(ThisApplication.ActiveDocument)
            End With
    
            'refresh graphic elements
            ThisApplication.ActiveImage.MeasurementsData.Refresh
        End Sub
    

    Regards,

    Yuri

Answers

  • Options
    Yuri --

    Thank you for your response.

    I've added

            'Refresh graphic elements
            ThisApplication.ActiveImage.MeasurementsData.Refresh
    
    
    to the RETAG ROUTINES within the APPLICATION and this issue has been resolved.

    Thanks again.

    -- Matt


Sign In or Register to comment.