Measurement limits
Hi Guys,
Is there any method to set by macro the Measurements limits (eg Area min / Max)?
I need to change them dinamically during the macro execution.
I tried to do manually recording the operation but nothing has been saved in the macro editor.
Thank you
Ciao
Maurizio
Is there any method to set by macro the Measurements limits (eg Area min / Max)?
I need to change them dinamically during the macro execution.
I tried to do manually recording the operation but nothing has been saved in the macro editor.
Thank you
Ciao
Maurizio
0
Best Answer
-
Hi Maurizio,
Yes, this command is recordable when you adjust ranges in the Edit range dialog.
Here is my recorded macro:Public Function SetRanges() As SimpleScript SetRanges = New SimpleScript Dim doc1 With Application.DocumentCommands.Active(SetRanges) .Run(doc1) End With With Measure.MeasurementsCommands.Options(SetRanges) .Segmentation.ApplyFilters = True .Segmentation.FilterRanges = New System.Collections.Generic.List(Of MeasFilterEntry) .Segmentation.FilterRanges.Add( New MeasFilterEntry(eMeasures.RgnArea,201.150999790646R,792.57957015754R)) .Run(doc1) End With With Measure.MeasurementsCommands.ApplyFilters(SetRanges) .Run(doc1) End With End Function
Regards,
Yuri0
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