Retrieve name for VISIBLE FEATURE CLASS . . .


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
        End With

Best Answer

  • Accepted Answer

    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



Sign In or Register to comment.