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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! 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);

1 REPLY 1
AndrewK
Community Manager
(To:HX_9879205)


Hi HX_9879205,

Thank you for your question. I’d like to recommend bringing more details and context to your initial inquiry. It also helps to have screenshots to better understand what you are trying to do in your process. 

This will increase your chances to receive meaningful help from other Community members. 

Announcements


Top Tags