CODE to return the number of SELECTED FEATURES . . .
2017-08-08-100611
All --
What CODE can I use to learn the number of SELECTED FEATURES in an IMAGE.
In the IMAGES below I would like the CODE to show me the SELECTED FEATURES for
A = 0
B = 2
C = 4
Thanks in advance.
-- Matt
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

All --
What CODE can I use to learn the number of SELECTED FEATURES in an IMAGE.
In the IMAGES below I would like the CODE to show me the SELECTED FEATURES for
A = 0
B = 2
C = 4
Thanks in advance.
-- Matt
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

0
Best Answer
-
Hi Matt,
Select features are in SelectedSubFeatures collection, here is the macro that prints Count:Public Sub PrintSelectedCount Dim md As McMMData=ThisApplication.ActiveImage.MeasurementsData Debug.Print md.SelectedSubFeatures.Count End Sub
Yuri0
Answers
-
2017-08-08-120959
Yuri --
Thank you for your reply and the the CODE within.
-- Matt
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions