Need help validating a selection within a macro

Hi All,

working on a Macro to edit the properties of a selected note. and when a note is selected, it works as expected. now working on error handling.

  1. what is a good way to check that *something* is selected?
  2. what is a good way to check that the thing selected is an annotation?
    1. once it is narrowed down to an annotation, if have the check that it is a note sorted out.

thanks!

GetSelectedObjectCount2

Just check if it is greater than zero.

GetSelectedObjectType3

Check if equal to swSelectType_e.swSelNOTES

thanks, Jim!

got it working.