Home Image-Pro Automation (Macros, Apps, Reports)

Retrieve name for VISIBLE FEATURE CLASS . . .

2017-08-02-163627

All --

Within PREMIER, if there are two classes (lets say "GOOD" and "BAD"), if the CODE below is used to SHOW CLASS 1, is there a way to get the NAME of CLASS 1 ("GOOD" in this case)?

Thanks in advance.

-- Matt

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

        With Measure.MeasurementsCommands.ShowClass(Nothing)
            .Action = McMeasurements.enumShowMeasFlags.smfShowAll
            .FeatureClass = 1
            .Run(doc1)
        End With

Best Answer

  • Answer ✓
    Matt,

    Here is the macro that prints name of the first class:

        Sub PrintClassName
            'print name of the first class
            Debug.Print Mediacy.Addins.Measurements.McMeasurements.ThisAddin.Options.Classes(1).DisplayName
        End Sub

    Yuri

Answers

Sign In or Register to comment.