cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

ProDtlnoteCreate() and ProDtlnoteShow() in an async Toolkit app

AndreasHellmann
12-Amethyst

ProDtlnoteCreate() and ProDtlnoteShow() in an async Toolkit app

Hello,


does anyone have experience with this:


I am developing an asnyc Toolkit app and I'm creating new drawings with views and notes.


The application is running in non graphic mode.
Creating views and moving views is working fine, but I have problems in displaying new detail notes.


The notes are created at the correct position with ProDtlnoteCreate(), but they aren't displayed.
I am on Creo2 M040 and whenI have a look at the drawing later,the drawing tree contains the notes, but they are greyed out likebeing "erased". I can manually display them by right click and "unerase".


The API doc says that ProDtlnoteShow() work on a drawing in the current window only which I don't have in non-graphics mode. Using ProDtlnotedataDisplayedSet() and a regeneration of the drw sheet (as stated in the doc) doesn't seem to help.


Any ideas? Thanks!


Regards,


Andreas




ProDtlnotedataDisplayedSet



________________________________


Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany


phone: +49 6145 598296
mail: -


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.
2 REPLIES 2

Andreas,

Although you can't see the window, you still have to show the drawing in a
window. Many of the drawing API functions require that since forever.

Bob

Bob Monat
Jerand Technical Services, Inc.
bob@jerand.com
www.jerand.com
1-317-875-6087


Thanks for the answers.


Found the solution to my problem this morning... it's not reallycomplex.


Just in case someone needs this in the future:


Toolkit API doc is telling the truth when it says that for displaying a note on a drw that's not in the current window you have to use ProDtlnotedataDisplayedSet().


But because this works on the note DATA and not on the note you have to call ProDtlnotedataDisplayedSet() before creating the note.


Something like this:


status = ProDtlnotedataDisplayedSet (hDtlNoteData, PRO_B_TRUE);
status = ProDtlnoteCreate (hDrw, NULL, hDtlNoteData, &hNote);



In a sync app with the drw in the current window it works like this:



status = ProDtlnoteCreate (hDrw, NULL, hDtlNoteData, &hNote);
status = ProDtlnoteShow (&hNote);



Andreas


__________________________________


Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Am Wartfeld 7
D-61169 Friedberg / GERMANY


phone: +49 151 21259910
mail: -

Announcements


Top Tags