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
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
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
0
Best 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
Yuri0
Answers
Yuri --
Super.
Perfect.
Thanks.
-- Matt