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
I am using Creo Parametric Release 6.0 and Datecode6.0.6.0
问题:如何在3D模型中创建与屏幕平齐并带有引线的注释
使用代码示例:第9行错误
Translated by the community team using Microsoft Translator
Problem: How do I create a note in a 3D model that is flush with the screen and has a leader
Example code used: Line 9 error
ProNote note;
status = ProSolidNoteCreate(mdl, NULL, pTextArray, ¬e);
ProNoteAttach noteAttach = nullptr;
status = ProNoteAttachAlloc(¬eAttach);
status = ProAnnotationplaneFlatToScreenCreate((ProSolid)mdl, PRO_B_FALSE, &plane);
status = ProNoteAttachPlaneSet(noteAttach, &annoPlane);
status = ProNoteAttachFreeSet(noteAttach,note_pos[0], note_pos[1], note_pos[2]);
status = ProNoteAttachAddend(noteAttach, selSurfaces[0], PRO_NOTE_ATT_NONE);
status = ProNotePlacementSet(¬e, noteAttach);--------// return PRO_TK_BAD_CONTEXT-----------
status = ProNoteAttachRelease(¬eAttach);
status = ProAnnotationShow((ProAnnotation*)¬e, NULL, NULL);
status = ProSolidRegenerate((ProSolid)mdl, PRO_REGEN_NO_FLAGS);