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

Creo note in 3D plat-to-screen

HX_9879205
1-Visitor

Creo note in 3D plat-to-screen

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, &note);
ProNoteAttach noteAttach = nullptr;
status = ProNoteAttachAlloc(&noteAttach);
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(&note, noteAttach);--------// return PRO_TK_BAD_CONTEXT-----------
status = ProNoteAttachRelease(&noteAttach);
status = ProAnnotationShow((ProAnnotation*)&note, NULL, NULL);
status = ProSolidRegenerate((ProSolid)mdl, PRO_REGEN_NO_FLAGS);

0 REPLIES 0
Announcements


Top Tags