Note Positioning
Hi,
We are trying to delete all the existing notes on a particular sheet of drawing and creating notes on the same sheet. On doing so, deleting the existing notes is happening. We are able to create the notes as well. But on positioning the notes based on co ordinate system is not happening correctly. Since its an automation project , we are not supposed to do anything manually, everything is to be done through coding.
// Allocate and initialize the memory for a detail attachment.
status= ProDtlattachAlloc(PRO_DTLATTACHTYPE_FREE, views_flatpattern, pos, NULL, &p_attachment); // pos refers to x, y and z co ordinates. Null is being passed for proselection in the above function. May be this particular function is not being used properly
// Sets an attachment for the specified note.
status = ProDtlnotedataAttachmentSet(notedata, p_attachment);
// convert a text to notedata
ProStringToWstring(wtext, text);
ProDtlnotetextStringSet(dtl_text, wtext);
status = ProDtlnotelineTextAdd(dtl_line, dtl_text);
status = ProDtlnotedataLineAdd(notedata, dtl_line);
// creates note
status = ProDtlnoteShow(¬e);
May the code for positioning of notes is not being properly written. Kindly guide us on this.

