Delete Last 'x' Drawing Notes
I'm new to Pro/ENGINEER customizations and I am having some trouble. I am trying to figure out how to delete the last 'x' notes that have been added to the drawing. I've been successful in deleting the last note on the last sheet however none of the others are deleted. Any assistance would be appreciated.
//to find all detail notes on drawing
int intNumSheets = drw.GetNumberOfSheets();
int intNoteCount;
intNoteCount = 0;
int intArraySize = noteList.getarraysize();
while (intNoteCount < intNumSheets){
System.out.println("Note to be deleted: " + (intArraySize - intNoteCount));
noteList.get(intArraySize - 1 - intNoteCount).Delete();
intNoteCount = intNoteCount + 1;
}
drw.Regenerate(); // so that drawing is back in state prior to printing
Thanks,
Mark Bohannon
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

