Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! 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);
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.
I manually created 3D annotation place flat to screen using Creo's note function;
the annotation is placed flush with the screen in the model viewer and its position rotates around the model.
How can I achieve the same effect generically via the Toolkit API?