-
1. Re: How to add multiple annotation in selection one by one
lrosenth Nov 3, 2009 6:51 AM (in response to arvindg007)Correct - there is no way to "add to selection", you have to reset the selection to encompass all things you want selected.
-
2. Re: How to add multiple annotation in selection one by one
arvindg007 Nov 4, 2009 1:27 AM (in response to lrosenth)Hi,
But I am also getting problem when I try to select/highlight multiple annotations in one shot. I am using below code to do that.
PDAnnot pdAnnots =( PDAnnot)ASmalloc( numAnnots* sizeof(PDAnnot));
for(int i=0; i< numAnnots;i++)
{
pdAnnots+ = list+;
}
if(numAnnots > 0)
{
AVDocSetSelection (avDoc, ASAtomFromString("Annotation"), (void*)pdAnnots, true);
}
But this selects only ONE annotation instead of all. Could you please help me why it is doing like that?
Thanks in advance,
Arvind
-
3. Re: How to add multiple annotation in selection one by one
lrosenth Nov 4, 2009 11:25 AM (in response to arvindg007)Because that's not how you would do it. Annotation is singular, you can only specify a single one.
-
4. Re: How to add multiple annotation in selection one by one
arvindg007 Nov 4, 2009 8:15 PM (in response to lrosenth)Then how we can select multiple annotations by code. ?
-
5. Re: How to add multiple annotation in selection one by one
lrosenth Nov 5, 2009 9:20 AM (in response to arvindg007)At this time, it is not possible to select multiple annotations from a plugin. The information needed to create an "Authoring" selection (which is what is required) is not public. I am seeing what can be done in the future...


