Community Tip - You can change your system assigned username to something more personal in your community settings. X
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: -
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: -